@@ -820,6 +820,10 @@ public Aligner findValueByNumber(int number) {
820820 };
821821
822822 public final com .google .protobuf .Descriptors .EnumValueDescriptor getValueDescriptor () {
823+ if (this == UNRECOGNIZED ) {
824+ throw new java .lang .IllegalStateException (
825+ "Can't get the descriptor of an unrecognized enum value." );
826+ }
823827 return getDescriptor ().getValues ().get (ordinal ());
824828 }
825829
@@ -1312,6 +1316,10 @@ public Reducer findValueByNumber(int number) {
13121316 };
13131317
13141318 public final com .google .protobuf .Descriptors .EnumValueDescriptor getValueDescriptor () {
1319+ if (this == UNRECOGNIZED ) {
1320+ throw new java .lang .IllegalStateException (
1321+ "Can't get the descriptor of an unrecognized enum value." );
1322+ }
13151323 return getDescriptor ().getValues ().get (ordinal ());
13161324 }
13171325
@@ -1365,6 +1373,7 @@ private Reducer(int value) {
13651373 *
13661374 * @return Whether the alignmentPeriod field is set.
13671375 */
1376+ @ java .lang .Override
13681377 public boolean hasAlignmentPeriod () {
13691378 return alignmentPeriod_ != null ;
13701379 }
@@ -1387,6 +1396,7 @@ public boolean hasAlignmentPeriod() {
13871396 *
13881397 * @return The alignmentPeriod.
13891398 */
1399+ @ java .lang .Override
13901400 public com .google .protobuf .Duration getAlignmentPeriod () {
13911401 return alignmentPeriod_ == null
13921402 ? com .google .protobuf .Duration .getDefaultInstance ()
@@ -1409,6 +1419,7 @@ public com.google.protobuf.Duration getAlignmentPeriod() {
14091419 *
14101420 * <code>.google.protobuf.Duration alignment_period = 1;</code>
14111421 */
1422+ @ java .lang .Override
14121423 public com .google .protobuf .DurationOrBuilder getAlignmentPeriodOrBuilder () {
14131424 return getAlignmentPeriod ();
14141425 }
@@ -1439,6 +1450,7 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
14391450 *
14401451 * @return The enum numeric value on the wire for perSeriesAligner.
14411452 */
1453+ @ java .lang .Override
14421454 public int getPerSeriesAlignerValue () {
14431455 return perSeriesAligner_ ;
14441456 }
@@ -1466,6 +1478,7 @@ public int getPerSeriesAlignerValue() {
14661478 *
14671479 * @return The perSeriesAligner.
14681480 */
1481+ @ java .lang .Override
14691482 public com .google .monitoring .v3 .Aggregation .Aligner getPerSeriesAligner () {
14701483 @ SuppressWarnings ("deprecation" )
14711484 com .google .monitoring .v3 .Aggregation .Aligner result =
@@ -1497,6 +1510,7 @@ public com.google.monitoring.v3.Aggregation.Aligner getPerSeriesAligner() {
14971510 *
14981511 * @return The enum numeric value on the wire for crossSeriesReducer.
14991512 */
1513+ @ java .lang .Override
15001514 public int getCrossSeriesReducerValue () {
15011515 return crossSeriesReducer_ ;
15021516 }
@@ -1522,6 +1536,7 @@ public int getCrossSeriesReducerValue() {
15221536 *
15231537 * @return The crossSeriesReducer.
15241538 */
1539+ @ java .lang .Override
15251540 public com .google .monitoring .v3 .Aggregation .Reducer getCrossSeriesReducer () {
15261541 @ SuppressWarnings ("deprecation" )
15271542 com .google .monitoring .v3 .Aggregation .Reducer result =
@@ -2339,6 +2354,7 @@ public com.google.protobuf.DurationOrBuilder getAlignmentPeriodOrBuilder() {
23392354 *
23402355 * @return The enum numeric value on the wire for perSeriesAligner.
23412356 */
2357+ @ java .lang .Override
23422358 public int getPerSeriesAlignerValue () {
23432359 return perSeriesAligner_ ;
23442360 }
@@ -2368,6 +2384,7 @@ public int getPerSeriesAlignerValue() {
23682384 * @return This builder for chaining.
23692385 */
23702386 public Builder setPerSeriesAlignerValue (int value ) {
2387+
23712388 perSeriesAligner_ = value ;
23722389 onChanged ();
23732390 return this ;
@@ -2396,6 +2413,7 @@ public Builder setPerSeriesAlignerValue(int value) {
23962413 *
23972414 * @return The perSeriesAligner.
23982415 */
2416+ @ java .lang .Override
23992417 public com .google .monitoring .v3 .Aggregation .Aligner getPerSeriesAligner () {
24002418 @ SuppressWarnings ("deprecation" )
24012419 com .google .monitoring .v3 .Aggregation .Aligner result =
@@ -2490,6 +2508,7 @@ public Builder clearPerSeriesAligner() {
24902508 *
24912509 * @return The enum numeric value on the wire for crossSeriesReducer.
24922510 */
2511+ @ java .lang .Override
24932512 public int getCrossSeriesReducerValue () {
24942513 return crossSeriesReducer_ ;
24952514 }
@@ -2517,6 +2536,7 @@ public int getCrossSeriesReducerValue() {
25172536 * @return This builder for chaining.
25182537 */
25192538 public Builder setCrossSeriesReducerValue (int value ) {
2539+
25202540 crossSeriesReducer_ = value ;
25212541 onChanged ();
25222542 return this ;
@@ -2543,6 +2563,7 @@ public Builder setCrossSeriesReducerValue(int value) {
25432563 *
25442564 * @return The crossSeriesReducer.
25452565 */
2566+ @ java .lang .Override
25462567 public com .google .monitoring .v3 .Aggregation .Reducer getCrossSeriesReducer () {
25472568 @ SuppressWarnings ("deprecation" )
25482569 com .google .monitoring .v3 .Aggregation .Reducer result =
0 commit comments