code: public com.google.type.DayOfWeek getDayOfWeekValue() {
      if (typeCase_ == 8) {
        @SuppressWarnings("deprecation")
        com.google.type.DayOfWeek result =
            com.google.type.DayOfWeek.valueOf((java.lang.Integer) type_);
        return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result;
      }
      return com.google.type.DayOfWeek.DAY_OF_WEEK_UNSPECIFIED;
    }
docs: <code>.google.type.DayOfWeek day_of_week_value = 8;</code>