• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/run/v2/condition.proto
18 
19 package com.google.cloud.run.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Defines a status condition for a resource.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.run.v2.Condition}
29  */
30 public final class Condition extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Condition)
33     ConditionOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use Condition.newBuilder() to construct.
Condition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private Condition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
Condition()40   private Condition() {
41     type_ = "";
42     state_ = 0;
43     message_ = "";
44     severity_ = 0;
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new Condition();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.run.v2.ConditionProto
60         .internal_static_google_cloud_run_v2_Condition_descriptor;
61   }
62 
63   @java.lang.Override
64   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()65       internalGetFieldAccessorTable() {
66     return com.google.cloud.run.v2.ConditionProto
67         .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable
68         .ensureFieldAccessorsInitialized(
69             com.google.cloud.run.v2.Condition.class,
70             com.google.cloud.run.v2.Condition.Builder.class);
71   }
72 
73   /**
74    *
75    *
76    * <pre>
77    * Represents the possible Condition states.
78    * </pre>
79    *
80    * Protobuf enum {@code google.cloud.run.v2.Condition.State}
81    */
82   public enum State implements com.google.protobuf.ProtocolMessageEnum {
83     /**
84      *
85      *
86      * <pre>
87      * The default value. This value is used if the state is omitted.
88      * </pre>
89      *
90      * <code>STATE_UNSPECIFIED = 0;</code>
91      */
92     STATE_UNSPECIFIED(0),
93     /**
94      *
95      *
96      * <pre>
97      * Transient state: Reconciliation has not started yet.
98      * </pre>
99      *
100      * <code>CONDITION_PENDING = 1;</code>
101      */
102     CONDITION_PENDING(1),
103     /**
104      *
105      *
106      * <pre>
107      * Transient state: reconciliation is still in progress.
108      * </pre>
109      *
110      * <code>CONDITION_RECONCILING = 2;</code>
111      */
112     CONDITION_RECONCILING(2),
113     /**
114      *
115      *
116      * <pre>
117      * Terminal state: Reconciliation did not succeed.
118      * </pre>
119      *
120      * <code>CONDITION_FAILED = 3;</code>
121      */
122     CONDITION_FAILED(3),
123     /**
124      *
125      *
126      * <pre>
127      * Terminal state: Reconciliation completed successfully.
128      * </pre>
129      *
130      * <code>CONDITION_SUCCEEDED = 4;</code>
131      */
132     CONDITION_SUCCEEDED(4),
133     UNRECOGNIZED(-1),
134     ;
135 
136     /**
137      *
138      *
139      * <pre>
140      * The default value. This value is used if the state is omitted.
141      * </pre>
142      *
143      * <code>STATE_UNSPECIFIED = 0;</code>
144      */
145     public static final int STATE_UNSPECIFIED_VALUE = 0;
146     /**
147      *
148      *
149      * <pre>
150      * Transient state: Reconciliation has not started yet.
151      * </pre>
152      *
153      * <code>CONDITION_PENDING = 1;</code>
154      */
155     public static final int CONDITION_PENDING_VALUE = 1;
156     /**
157      *
158      *
159      * <pre>
160      * Transient state: reconciliation is still in progress.
161      * </pre>
162      *
163      * <code>CONDITION_RECONCILING = 2;</code>
164      */
165     public static final int CONDITION_RECONCILING_VALUE = 2;
166     /**
167      *
168      *
169      * <pre>
170      * Terminal state: Reconciliation did not succeed.
171      * </pre>
172      *
173      * <code>CONDITION_FAILED = 3;</code>
174      */
175     public static final int CONDITION_FAILED_VALUE = 3;
176     /**
177      *
178      *
179      * <pre>
180      * Terminal state: Reconciliation completed successfully.
181      * </pre>
182      *
183      * <code>CONDITION_SUCCEEDED = 4;</code>
184      */
185     public static final int CONDITION_SUCCEEDED_VALUE = 4;
186 
getNumber()187     public final int getNumber() {
188       if (this == UNRECOGNIZED) {
189         throw new java.lang.IllegalArgumentException(
190             "Can't get the number of an unknown enum value.");
191       }
192       return value;
193     }
194 
195     /**
196      * @param value The numeric wire value of the corresponding enum entry.
197      * @return The enum associated with the given numeric wire value.
198      * @deprecated Use {@link #forNumber(int)} instead.
199      */
200     @java.lang.Deprecated
valueOf(int value)201     public static State valueOf(int value) {
202       return forNumber(value);
203     }
204 
205     /**
206      * @param value The numeric wire value of the corresponding enum entry.
207      * @return The enum associated with the given numeric wire value.
208      */
forNumber(int value)209     public static State forNumber(int value) {
210       switch (value) {
211         case 0:
212           return STATE_UNSPECIFIED;
213         case 1:
214           return CONDITION_PENDING;
215         case 2:
216           return CONDITION_RECONCILING;
217         case 3:
218           return CONDITION_FAILED;
219         case 4:
220           return CONDITION_SUCCEEDED;
221         default:
222           return null;
223       }
224     }
225 
internalGetValueMap()226     public static com.google.protobuf.Internal.EnumLiteMap<State> internalGetValueMap() {
227       return internalValueMap;
228     }
229 
230     private static final com.google.protobuf.Internal.EnumLiteMap<State> internalValueMap =
231         new com.google.protobuf.Internal.EnumLiteMap<State>() {
232           public State findValueByNumber(int number) {
233             return State.forNumber(number);
234           }
235         };
236 
getValueDescriptor()237     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
238       if (this == UNRECOGNIZED) {
239         throw new java.lang.IllegalStateException(
240             "Can't get the descriptor of an unrecognized enum value.");
241       }
242       return getDescriptor().getValues().get(ordinal());
243     }
244 
getDescriptorForType()245     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
246       return getDescriptor();
247     }
248 
getDescriptor()249     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
250       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(0);
251     }
252 
253     private static final State[] VALUES = values();
254 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)255     public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
256       if (desc.getType() != getDescriptor()) {
257         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
258       }
259       if (desc.getIndex() == -1) {
260         return UNRECOGNIZED;
261       }
262       return VALUES[desc.getIndex()];
263     }
264 
265     private final int value;
266 
State(int value)267     private State(int value) {
268       this.value = value;
269     }
270 
271     // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.State)
272   }
273 
274   /**
275    *
276    *
277    * <pre>
278    * Represents the severity of the condition failures.
279    * </pre>
280    *
281    * Protobuf enum {@code google.cloud.run.v2.Condition.Severity}
282    */
283   public enum Severity implements com.google.protobuf.ProtocolMessageEnum {
284     /**
285      *
286      *
287      * <pre>
288      * Unspecified severity
289      * </pre>
290      *
291      * <code>SEVERITY_UNSPECIFIED = 0;</code>
292      */
293     SEVERITY_UNSPECIFIED(0),
294     /**
295      *
296      *
297      * <pre>
298      * Error severity.
299      * </pre>
300      *
301      * <code>ERROR = 1;</code>
302      */
303     ERROR(1),
304     /**
305      *
306      *
307      * <pre>
308      * Warning severity.
309      * </pre>
310      *
311      * <code>WARNING = 2;</code>
312      */
313     WARNING(2),
314     /**
315      *
316      *
317      * <pre>
318      * Info severity.
319      * </pre>
320      *
321      * <code>INFO = 3;</code>
322      */
323     INFO(3),
324     UNRECOGNIZED(-1),
325     ;
326 
327     /**
328      *
329      *
330      * <pre>
331      * Unspecified severity
332      * </pre>
333      *
334      * <code>SEVERITY_UNSPECIFIED = 0;</code>
335      */
336     public static final int SEVERITY_UNSPECIFIED_VALUE = 0;
337     /**
338      *
339      *
340      * <pre>
341      * Error severity.
342      * </pre>
343      *
344      * <code>ERROR = 1;</code>
345      */
346     public static final int ERROR_VALUE = 1;
347     /**
348      *
349      *
350      * <pre>
351      * Warning severity.
352      * </pre>
353      *
354      * <code>WARNING = 2;</code>
355      */
356     public static final int WARNING_VALUE = 2;
357     /**
358      *
359      *
360      * <pre>
361      * Info severity.
362      * </pre>
363      *
364      * <code>INFO = 3;</code>
365      */
366     public static final int INFO_VALUE = 3;
367 
getNumber()368     public final int getNumber() {
369       if (this == UNRECOGNIZED) {
370         throw new java.lang.IllegalArgumentException(
371             "Can't get the number of an unknown enum value.");
372       }
373       return value;
374     }
375 
376     /**
377      * @param value The numeric wire value of the corresponding enum entry.
378      * @return The enum associated with the given numeric wire value.
379      * @deprecated Use {@link #forNumber(int)} instead.
380      */
381     @java.lang.Deprecated
valueOf(int value)382     public static Severity valueOf(int value) {
383       return forNumber(value);
384     }
385 
386     /**
387      * @param value The numeric wire value of the corresponding enum entry.
388      * @return The enum associated with the given numeric wire value.
389      */
forNumber(int value)390     public static Severity forNumber(int value) {
391       switch (value) {
392         case 0:
393           return SEVERITY_UNSPECIFIED;
394         case 1:
395           return ERROR;
396         case 2:
397           return WARNING;
398         case 3:
399           return INFO;
400         default:
401           return null;
402       }
403     }
404 
internalGetValueMap()405     public static com.google.protobuf.Internal.EnumLiteMap<Severity> internalGetValueMap() {
406       return internalValueMap;
407     }
408 
409     private static final com.google.protobuf.Internal.EnumLiteMap<Severity> internalValueMap =
410         new com.google.protobuf.Internal.EnumLiteMap<Severity>() {
411           public Severity findValueByNumber(int number) {
412             return Severity.forNumber(number);
413           }
414         };
415 
getValueDescriptor()416     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
417       if (this == UNRECOGNIZED) {
418         throw new java.lang.IllegalStateException(
419             "Can't get the descriptor of an unrecognized enum value.");
420       }
421       return getDescriptor().getValues().get(ordinal());
422     }
423 
getDescriptorForType()424     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
425       return getDescriptor();
426     }
427 
getDescriptor()428     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
429       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(1);
430     }
431 
432     private static final Severity[] VALUES = values();
433 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)434     public static Severity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
435       if (desc.getType() != getDescriptor()) {
436         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
437       }
438       if (desc.getIndex() == -1) {
439         return UNRECOGNIZED;
440       }
441       return VALUES[desc.getIndex()];
442     }
443 
444     private final int value;
445 
Severity(int value)446     private Severity(int value) {
447       this.value = value;
448     }
449 
450     // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.Severity)
451   }
452 
453   /**
454    *
455    *
456    * <pre>
457    * Reasons common to all types of conditions.
458    * </pre>
459    *
460    * Protobuf enum {@code google.cloud.run.v2.Condition.CommonReason}
461    */
462   public enum CommonReason implements com.google.protobuf.ProtocolMessageEnum {
463     /**
464      *
465      *
466      * <pre>
467      * Default value.
468      * </pre>
469      *
470      * <code>COMMON_REASON_UNDEFINED = 0;</code>
471      */
472     COMMON_REASON_UNDEFINED(0),
473     /**
474      *
475      *
476      * <pre>
477      * Reason unknown. Further details will be in message.
478      * </pre>
479      *
480      * <code>UNKNOWN = 1;</code>
481      */
482     UNKNOWN(1),
483     /**
484      *
485      *
486      * <pre>
487      * Revision creation process failed.
488      * </pre>
489      *
490      * <code>REVISION_FAILED = 3;</code>
491      */
492     REVISION_FAILED(3),
493     /**
494      *
495      *
496      * <pre>
497      * Timed out waiting for completion.
498      * </pre>
499      *
500      * <code>PROGRESS_DEADLINE_EXCEEDED = 4;</code>
501      */
502     PROGRESS_DEADLINE_EXCEEDED(4),
503     /**
504      *
505      *
506      * <pre>
507      * The container image path is incorrect.
508      * </pre>
509      *
510      * <code>CONTAINER_MISSING = 6;</code>
511      */
512     CONTAINER_MISSING(6),
513     /**
514      *
515      *
516      * <pre>
517      * Insufficient permissions on the container image.
518      * </pre>
519      *
520      * <code>CONTAINER_PERMISSION_DENIED = 7;</code>
521      */
522     CONTAINER_PERMISSION_DENIED(7),
523     /**
524      *
525      *
526      * <pre>
527      * Container image is not authorized by policy.
528      * </pre>
529      *
530      * <code>CONTAINER_IMAGE_UNAUTHORIZED = 8;</code>
531      */
532     CONTAINER_IMAGE_UNAUTHORIZED(8),
533     /**
534      *
535      *
536      * <pre>
537      * Container image policy authorization check failed.
538      * </pre>
539      *
540      * <code>CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 9;</code>
541      */
542     CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED(9),
543     /**
544      *
545      *
546      * <pre>
547      * Insufficient permissions on encryption key.
548      * </pre>
549      *
550      * <code>ENCRYPTION_KEY_PERMISSION_DENIED = 10;</code>
551      */
552     ENCRYPTION_KEY_PERMISSION_DENIED(10),
553     /**
554      *
555      *
556      * <pre>
557      * Permission check on encryption key failed.
558      * </pre>
559      *
560      * <code>ENCRYPTION_KEY_CHECK_FAILED = 11;</code>
561      */
562     ENCRYPTION_KEY_CHECK_FAILED(11),
563     /**
564      *
565      *
566      * <pre>
567      * At least one Access check on secrets failed.
568      * </pre>
569      *
570      * <code>SECRETS_ACCESS_CHECK_FAILED = 12;</code>
571      */
572     SECRETS_ACCESS_CHECK_FAILED(12),
573     /**
574      *
575      *
576      * <pre>
577      * Waiting for operation to complete.
578      * </pre>
579      *
580      * <code>WAITING_FOR_OPERATION = 13;</code>
581      */
582     WAITING_FOR_OPERATION(13),
583     /**
584      *
585      *
586      * <pre>
587      * System will retry immediately.
588      * </pre>
589      *
590      * <code>IMMEDIATE_RETRY = 14;</code>
591      */
592     IMMEDIATE_RETRY(14),
593     /**
594      *
595      *
596      * <pre>
597      * System will retry later; current attempt failed.
598      * </pre>
599      *
600      * <code>POSTPONED_RETRY = 15;</code>
601      */
602     POSTPONED_RETRY(15),
603     /**
604      *
605      *
606      * <pre>
607      * An internal error occurred. Further information may be in the message.
608      * </pre>
609      *
610      * <code>INTERNAL = 16;</code>
611      */
612     INTERNAL(16),
613     UNRECOGNIZED(-1),
614     ;
615 
616     /**
617      *
618      *
619      * <pre>
620      * Default value.
621      * </pre>
622      *
623      * <code>COMMON_REASON_UNDEFINED = 0;</code>
624      */
625     public static final int COMMON_REASON_UNDEFINED_VALUE = 0;
626     /**
627      *
628      *
629      * <pre>
630      * Reason unknown. Further details will be in message.
631      * </pre>
632      *
633      * <code>UNKNOWN = 1;</code>
634      */
635     public static final int UNKNOWN_VALUE = 1;
636     /**
637      *
638      *
639      * <pre>
640      * Revision creation process failed.
641      * </pre>
642      *
643      * <code>REVISION_FAILED = 3;</code>
644      */
645     public static final int REVISION_FAILED_VALUE = 3;
646     /**
647      *
648      *
649      * <pre>
650      * Timed out waiting for completion.
651      * </pre>
652      *
653      * <code>PROGRESS_DEADLINE_EXCEEDED = 4;</code>
654      */
655     public static final int PROGRESS_DEADLINE_EXCEEDED_VALUE = 4;
656     /**
657      *
658      *
659      * <pre>
660      * The container image path is incorrect.
661      * </pre>
662      *
663      * <code>CONTAINER_MISSING = 6;</code>
664      */
665     public static final int CONTAINER_MISSING_VALUE = 6;
666     /**
667      *
668      *
669      * <pre>
670      * Insufficient permissions on the container image.
671      * </pre>
672      *
673      * <code>CONTAINER_PERMISSION_DENIED = 7;</code>
674      */
675     public static final int CONTAINER_PERMISSION_DENIED_VALUE = 7;
676     /**
677      *
678      *
679      * <pre>
680      * Container image is not authorized by policy.
681      * </pre>
682      *
683      * <code>CONTAINER_IMAGE_UNAUTHORIZED = 8;</code>
684      */
685     public static final int CONTAINER_IMAGE_UNAUTHORIZED_VALUE = 8;
686     /**
687      *
688      *
689      * <pre>
690      * Container image policy authorization check failed.
691      * </pre>
692      *
693      * <code>CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED = 9;</code>
694      */
695     public static final int CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED_VALUE = 9;
696     /**
697      *
698      *
699      * <pre>
700      * Insufficient permissions on encryption key.
701      * </pre>
702      *
703      * <code>ENCRYPTION_KEY_PERMISSION_DENIED = 10;</code>
704      */
705     public static final int ENCRYPTION_KEY_PERMISSION_DENIED_VALUE = 10;
706     /**
707      *
708      *
709      * <pre>
710      * Permission check on encryption key failed.
711      * </pre>
712      *
713      * <code>ENCRYPTION_KEY_CHECK_FAILED = 11;</code>
714      */
715     public static final int ENCRYPTION_KEY_CHECK_FAILED_VALUE = 11;
716     /**
717      *
718      *
719      * <pre>
720      * At least one Access check on secrets failed.
721      * </pre>
722      *
723      * <code>SECRETS_ACCESS_CHECK_FAILED = 12;</code>
724      */
725     public static final int SECRETS_ACCESS_CHECK_FAILED_VALUE = 12;
726     /**
727      *
728      *
729      * <pre>
730      * Waiting for operation to complete.
731      * </pre>
732      *
733      * <code>WAITING_FOR_OPERATION = 13;</code>
734      */
735     public static final int WAITING_FOR_OPERATION_VALUE = 13;
736     /**
737      *
738      *
739      * <pre>
740      * System will retry immediately.
741      * </pre>
742      *
743      * <code>IMMEDIATE_RETRY = 14;</code>
744      */
745     public static final int IMMEDIATE_RETRY_VALUE = 14;
746     /**
747      *
748      *
749      * <pre>
750      * System will retry later; current attempt failed.
751      * </pre>
752      *
753      * <code>POSTPONED_RETRY = 15;</code>
754      */
755     public static final int POSTPONED_RETRY_VALUE = 15;
756     /**
757      *
758      *
759      * <pre>
760      * An internal error occurred. Further information may be in the message.
761      * </pre>
762      *
763      * <code>INTERNAL = 16;</code>
764      */
765     public static final int INTERNAL_VALUE = 16;
766 
getNumber()767     public final int getNumber() {
768       if (this == UNRECOGNIZED) {
769         throw new java.lang.IllegalArgumentException(
770             "Can't get the number of an unknown enum value.");
771       }
772       return value;
773     }
774 
775     /**
776      * @param value The numeric wire value of the corresponding enum entry.
777      * @return The enum associated with the given numeric wire value.
778      * @deprecated Use {@link #forNumber(int)} instead.
779      */
780     @java.lang.Deprecated
valueOf(int value)781     public static CommonReason valueOf(int value) {
782       return forNumber(value);
783     }
784 
785     /**
786      * @param value The numeric wire value of the corresponding enum entry.
787      * @return The enum associated with the given numeric wire value.
788      */
forNumber(int value)789     public static CommonReason forNumber(int value) {
790       switch (value) {
791         case 0:
792           return COMMON_REASON_UNDEFINED;
793         case 1:
794           return UNKNOWN;
795         case 3:
796           return REVISION_FAILED;
797         case 4:
798           return PROGRESS_DEADLINE_EXCEEDED;
799         case 6:
800           return CONTAINER_MISSING;
801         case 7:
802           return CONTAINER_PERMISSION_DENIED;
803         case 8:
804           return CONTAINER_IMAGE_UNAUTHORIZED;
805         case 9:
806           return CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED;
807         case 10:
808           return ENCRYPTION_KEY_PERMISSION_DENIED;
809         case 11:
810           return ENCRYPTION_KEY_CHECK_FAILED;
811         case 12:
812           return SECRETS_ACCESS_CHECK_FAILED;
813         case 13:
814           return WAITING_FOR_OPERATION;
815         case 14:
816           return IMMEDIATE_RETRY;
817         case 15:
818           return POSTPONED_RETRY;
819         case 16:
820           return INTERNAL;
821         default:
822           return null;
823       }
824     }
825 
internalGetValueMap()826     public static com.google.protobuf.Internal.EnumLiteMap<CommonReason> internalGetValueMap() {
827       return internalValueMap;
828     }
829 
830     private static final com.google.protobuf.Internal.EnumLiteMap<CommonReason> internalValueMap =
831         new com.google.protobuf.Internal.EnumLiteMap<CommonReason>() {
832           public CommonReason findValueByNumber(int number) {
833             return CommonReason.forNumber(number);
834           }
835         };
836 
getValueDescriptor()837     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
838       if (this == UNRECOGNIZED) {
839         throw new java.lang.IllegalStateException(
840             "Can't get the descriptor of an unrecognized enum value.");
841       }
842       return getDescriptor().getValues().get(ordinal());
843     }
844 
getDescriptorForType()845     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
846       return getDescriptor();
847     }
848 
getDescriptor()849     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
850       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(2);
851     }
852 
853     private static final CommonReason[] VALUES = values();
854 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)855     public static CommonReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
856       if (desc.getType() != getDescriptor()) {
857         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
858       }
859       if (desc.getIndex() == -1) {
860         return UNRECOGNIZED;
861       }
862       return VALUES[desc.getIndex()];
863     }
864 
865     private final int value;
866 
CommonReason(int value)867     private CommonReason(int value) {
868       this.value = value;
869     }
870 
871     // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.CommonReason)
872   }
873 
874   /**
875    *
876    *
877    * <pre>
878    * Reasons specific to Revision resource.
879    * </pre>
880    *
881    * Protobuf enum {@code google.cloud.run.v2.Condition.RevisionReason}
882    */
883   public enum RevisionReason implements com.google.protobuf.ProtocolMessageEnum {
884     /**
885      *
886      *
887      * <pre>
888      * Default value.
889      * </pre>
890      *
891      * <code>REVISION_REASON_UNDEFINED = 0;</code>
892      */
893     REVISION_REASON_UNDEFINED(0),
894     /**
895      *
896      *
897      * <pre>
898      * Revision in Pending state.
899      * </pre>
900      *
901      * <code>PENDING = 1;</code>
902      */
903     PENDING(1),
904     /**
905      *
906      *
907      * <pre>
908      * Revision is in Reserve state.
909      * </pre>
910      *
911      * <code>RESERVE = 2;</code>
912      */
913     RESERVE(2),
914     /**
915      *
916      *
917      * <pre>
918      * Revision is Retired.
919      * </pre>
920      *
921      * <code>RETIRED = 3;</code>
922      */
923     RETIRED(3),
924     /**
925      *
926      *
927      * <pre>
928      * Revision is being retired.
929      * </pre>
930      *
931      * <code>RETIRING = 4;</code>
932      */
933     RETIRING(4),
934     /**
935      *
936      *
937      * <pre>
938      * Revision is being recreated.
939      * </pre>
940      *
941      * <code>RECREATING = 5;</code>
942      */
943     RECREATING(5),
944     /**
945      *
946      *
947      * <pre>
948      * There was a health check error.
949      * </pre>
950      *
951      * <code>HEALTH_CHECK_CONTAINER_ERROR = 6;</code>
952      */
953     HEALTH_CHECK_CONTAINER_ERROR(6),
954     /**
955      *
956      *
957      * <pre>
958      * Health check failed due to user error from customized path of the
959      * container. System will retry.
960      * </pre>
961      *
962      * <code>CUSTOMIZED_PATH_RESPONSE_PENDING = 7;</code>
963      */
964     CUSTOMIZED_PATH_RESPONSE_PENDING(7),
965     /**
966      *
967      *
968      * <pre>
969      * A revision with min_instance_count &gt; 0 was created and is reserved, but
970      * it was not configured to serve traffic, so it's not live. This can also
971      * happen momentarily during traffic migration.
972      * </pre>
973      *
974      * <code>MIN_INSTANCES_NOT_PROVISIONED = 8;</code>
975      */
976     MIN_INSTANCES_NOT_PROVISIONED(8),
977     /**
978      *
979      *
980      * <pre>
981      * The maximum allowed number of active revisions has been reached.
982      * </pre>
983      *
984      * <code>ACTIVE_REVISION_LIMIT_REACHED = 9;</code>
985      */
986     ACTIVE_REVISION_LIMIT_REACHED(9),
987     /**
988      *
989      *
990      * <pre>
991      * There was no deployment defined.
992      * This value is no longer used, but Services created in older versions of
993      * the API might contain this value.
994      * </pre>
995      *
996      * <code>NO_DEPLOYMENT = 10;</code>
997      */
998     NO_DEPLOYMENT(10),
999     /**
1000      *
1001      *
1002      * <pre>
1003      * A revision's container has no port specified since the revision is of a
1004      * manually scaled service with 0 instance count
1005      * </pre>
1006      *
1007      * <code>HEALTH_CHECK_SKIPPED = 11;</code>
1008      */
1009     HEALTH_CHECK_SKIPPED(11),
1010     /**
1011      *
1012      *
1013      * <pre>
1014      * A revision with min_instance_count &gt; 0 was created and is waiting for
1015      * enough instances to begin a traffic migration.
1016      * </pre>
1017      *
1018      * <code>MIN_INSTANCES_WARMING = 12;</code>
1019      */
1020     MIN_INSTANCES_WARMING(12),
1021     UNRECOGNIZED(-1),
1022     ;
1023 
1024     /**
1025      *
1026      *
1027      * <pre>
1028      * Default value.
1029      * </pre>
1030      *
1031      * <code>REVISION_REASON_UNDEFINED = 0;</code>
1032      */
1033     public static final int REVISION_REASON_UNDEFINED_VALUE = 0;
1034     /**
1035      *
1036      *
1037      * <pre>
1038      * Revision in Pending state.
1039      * </pre>
1040      *
1041      * <code>PENDING = 1;</code>
1042      */
1043     public static final int PENDING_VALUE = 1;
1044     /**
1045      *
1046      *
1047      * <pre>
1048      * Revision is in Reserve state.
1049      * </pre>
1050      *
1051      * <code>RESERVE = 2;</code>
1052      */
1053     public static final int RESERVE_VALUE = 2;
1054     /**
1055      *
1056      *
1057      * <pre>
1058      * Revision is Retired.
1059      * </pre>
1060      *
1061      * <code>RETIRED = 3;</code>
1062      */
1063     public static final int RETIRED_VALUE = 3;
1064     /**
1065      *
1066      *
1067      * <pre>
1068      * Revision is being retired.
1069      * </pre>
1070      *
1071      * <code>RETIRING = 4;</code>
1072      */
1073     public static final int RETIRING_VALUE = 4;
1074     /**
1075      *
1076      *
1077      * <pre>
1078      * Revision is being recreated.
1079      * </pre>
1080      *
1081      * <code>RECREATING = 5;</code>
1082      */
1083     public static final int RECREATING_VALUE = 5;
1084     /**
1085      *
1086      *
1087      * <pre>
1088      * There was a health check error.
1089      * </pre>
1090      *
1091      * <code>HEALTH_CHECK_CONTAINER_ERROR = 6;</code>
1092      */
1093     public static final int HEALTH_CHECK_CONTAINER_ERROR_VALUE = 6;
1094     /**
1095      *
1096      *
1097      * <pre>
1098      * Health check failed due to user error from customized path of the
1099      * container. System will retry.
1100      * </pre>
1101      *
1102      * <code>CUSTOMIZED_PATH_RESPONSE_PENDING = 7;</code>
1103      */
1104     public static final int CUSTOMIZED_PATH_RESPONSE_PENDING_VALUE = 7;
1105     /**
1106      *
1107      *
1108      * <pre>
1109      * A revision with min_instance_count &gt; 0 was created and is reserved, but
1110      * it was not configured to serve traffic, so it's not live. This can also
1111      * happen momentarily during traffic migration.
1112      * </pre>
1113      *
1114      * <code>MIN_INSTANCES_NOT_PROVISIONED = 8;</code>
1115      */
1116     public static final int MIN_INSTANCES_NOT_PROVISIONED_VALUE = 8;
1117     /**
1118      *
1119      *
1120      * <pre>
1121      * The maximum allowed number of active revisions has been reached.
1122      * </pre>
1123      *
1124      * <code>ACTIVE_REVISION_LIMIT_REACHED = 9;</code>
1125      */
1126     public static final int ACTIVE_REVISION_LIMIT_REACHED_VALUE = 9;
1127     /**
1128      *
1129      *
1130      * <pre>
1131      * There was no deployment defined.
1132      * This value is no longer used, but Services created in older versions of
1133      * the API might contain this value.
1134      * </pre>
1135      *
1136      * <code>NO_DEPLOYMENT = 10;</code>
1137      */
1138     public static final int NO_DEPLOYMENT_VALUE = 10;
1139     /**
1140      *
1141      *
1142      * <pre>
1143      * A revision's container has no port specified since the revision is of a
1144      * manually scaled service with 0 instance count
1145      * </pre>
1146      *
1147      * <code>HEALTH_CHECK_SKIPPED = 11;</code>
1148      */
1149     public static final int HEALTH_CHECK_SKIPPED_VALUE = 11;
1150     /**
1151      *
1152      *
1153      * <pre>
1154      * A revision with min_instance_count &gt; 0 was created and is waiting for
1155      * enough instances to begin a traffic migration.
1156      * </pre>
1157      *
1158      * <code>MIN_INSTANCES_WARMING = 12;</code>
1159      */
1160     public static final int MIN_INSTANCES_WARMING_VALUE = 12;
1161 
getNumber()1162     public final int getNumber() {
1163       if (this == UNRECOGNIZED) {
1164         throw new java.lang.IllegalArgumentException(
1165             "Can't get the number of an unknown enum value.");
1166       }
1167       return value;
1168     }
1169 
1170     /**
1171      * @param value The numeric wire value of the corresponding enum entry.
1172      * @return The enum associated with the given numeric wire value.
1173      * @deprecated Use {@link #forNumber(int)} instead.
1174      */
1175     @java.lang.Deprecated
valueOf(int value)1176     public static RevisionReason valueOf(int value) {
1177       return forNumber(value);
1178     }
1179 
1180     /**
1181      * @param value The numeric wire value of the corresponding enum entry.
1182      * @return The enum associated with the given numeric wire value.
1183      */
forNumber(int value)1184     public static RevisionReason forNumber(int value) {
1185       switch (value) {
1186         case 0:
1187           return REVISION_REASON_UNDEFINED;
1188         case 1:
1189           return PENDING;
1190         case 2:
1191           return RESERVE;
1192         case 3:
1193           return RETIRED;
1194         case 4:
1195           return RETIRING;
1196         case 5:
1197           return RECREATING;
1198         case 6:
1199           return HEALTH_CHECK_CONTAINER_ERROR;
1200         case 7:
1201           return CUSTOMIZED_PATH_RESPONSE_PENDING;
1202         case 8:
1203           return MIN_INSTANCES_NOT_PROVISIONED;
1204         case 9:
1205           return ACTIVE_REVISION_LIMIT_REACHED;
1206         case 10:
1207           return NO_DEPLOYMENT;
1208         case 11:
1209           return HEALTH_CHECK_SKIPPED;
1210         case 12:
1211           return MIN_INSTANCES_WARMING;
1212         default:
1213           return null;
1214       }
1215     }
1216 
internalGetValueMap()1217     public static com.google.protobuf.Internal.EnumLiteMap<RevisionReason> internalGetValueMap() {
1218       return internalValueMap;
1219     }
1220 
1221     private static final com.google.protobuf.Internal.EnumLiteMap<RevisionReason> internalValueMap =
1222         new com.google.protobuf.Internal.EnumLiteMap<RevisionReason>() {
1223           public RevisionReason findValueByNumber(int number) {
1224             return RevisionReason.forNumber(number);
1225           }
1226         };
1227 
getValueDescriptor()1228     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
1229       if (this == UNRECOGNIZED) {
1230         throw new java.lang.IllegalStateException(
1231             "Can't get the descriptor of an unrecognized enum value.");
1232       }
1233       return getDescriptor().getValues().get(ordinal());
1234     }
1235 
getDescriptorForType()1236     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
1237       return getDescriptor();
1238     }
1239 
getDescriptor()1240     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
1241       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(3);
1242     }
1243 
1244     private static final RevisionReason[] VALUES = values();
1245 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)1246     public static RevisionReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1247       if (desc.getType() != getDescriptor()) {
1248         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
1249       }
1250       if (desc.getIndex() == -1) {
1251         return UNRECOGNIZED;
1252       }
1253       return VALUES[desc.getIndex()];
1254     }
1255 
1256     private final int value;
1257 
RevisionReason(int value)1258     private RevisionReason(int value) {
1259       this.value = value;
1260     }
1261 
1262     // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.RevisionReason)
1263   }
1264 
1265   /**
1266    *
1267    *
1268    * <pre>
1269    * Reasons specific to Execution resource.
1270    * </pre>
1271    *
1272    * Protobuf enum {@code google.cloud.run.v2.Condition.ExecutionReason}
1273    */
1274   public enum ExecutionReason implements com.google.protobuf.ProtocolMessageEnum {
1275     /**
1276      *
1277      *
1278      * <pre>
1279      * Default value.
1280      * </pre>
1281      *
1282      * <code>EXECUTION_REASON_UNDEFINED = 0;</code>
1283      */
1284     EXECUTION_REASON_UNDEFINED(0),
1285     /**
1286      *
1287      *
1288      * <pre>
1289      * Internal system error getting execution status. System will retry.
1290      * </pre>
1291      *
1292      * <code>JOB_STATUS_SERVICE_POLLING_ERROR = 1;</code>
1293      */
1294     JOB_STATUS_SERVICE_POLLING_ERROR(1),
1295     /**
1296      *
1297      *
1298      * <pre>
1299      * A task reached its retry limit and the last attempt failed due to the
1300      * user container exiting with a non-zero exit code.
1301      * </pre>
1302      *
1303      * <code>NON_ZERO_EXIT_CODE = 2;</code>
1304      */
1305     NON_ZERO_EXIT_CODE(2),
1306     /**
1307      *
1308      *
1309      * <pre>
1310      * The execution was cancelled by users.
1311      * </pre>
1312      *
1313      * <code>CANCELLED = 3;</code>
1314      */
1315     CANCELLED(3),
1316     /**
1317      *
1318      *
1319      * <pre>
1320      * The execution is in the process of being cancelled.
1321      * </pre>
1322      *
1323      * <code>CANCELLING = 4;</code>
1324      */
1325     CANCELLING(4),
1326     UNRECOGNIZED(-1),
1327     ;
1328 
1329     /**
1330      *
1331      *
1332      * <pre>
1333      * Default value.
1334      * </pre>
1335      *
1336      * <code>EXECUTION_REASON_UNDEFINED = 0;</code>
1337      */
1338     public static final int EXECUTION_REASON_UNDEFINED_VALUE = 0;
1339     /**
1340      *
1341      *
1342      * <pre>
1343      * Internal system error getting execution status. System will retry.
1344      * </pre>
1345      *
1346      * <code>JOB_STATUS_SERVICE_POLLING_ERROR = 1;</code>
1347      */
1348     public static final int JOB_STATUS_SERVICE_POLLING_ERROR_VALUE = 1;
1349     /**
1350      *
1351      *
1352      * <pre>
1353      * A task reached its retry limit and the last attempt failed due to the
1354      * user container exiting with a non-zero exit code.
1355      * </pre>
1356      *
1357      * <code>NON_ZERO_EXIT_CODE = 2;</code>
1358      */
1359     public static final int NON_ZERO_EXIT_CODE_VALUE = 2;
1360     /**
1361      *
1362      *
1363      * <pre>
1364      * The execution was cancelled by users.
1365      * </pre>
1366      *
1367      * <code>CANCELLED = 3;</code>
1368      */
1369     public static final int CANCELLED_VALUE = 3;
1370     /**
1371      *
1372      *
1373      * <pre>
1374      * The execution is in the process of being cancelled.
1375      * </pre>
1376      *
1377      * <code>CANCELLING = 4;</code>
1378      */
1379     public static final int CANCELLING_VALUE = 4;
1380 
getNumber()1381     public final int getNumber() {
1382       if (this == UNRECOGNIZED) {
1383         throw new java.lang.IllegalArgumentException(
1384             "Can't get the number of an unknown enum value.");
1385       }
1386       return value;
1387     }
1388 
1389     /**
1390      * @param value The numeric wire value of the corresponding enum entry.
1391      * @return The enum associated with the given numeric wire value.
1392      * @deprecated Use {@link #forNumber(int)} instead.
1393      */
1394     @java.lang.Deprecated
valueOf(int value)1395     public static ExecutionReason valueOf(int value) {
1396       return forNumber(value);
1397     }
1398 
1399     /**
1400      * @param value The numeric wire value of the corresponding enum entry.
1401      * @return The enum associated with the given numeric wire value.
1402      */
forNumber(int value)1403     public static ExecutionReason forNumber(int value) {
1404       switch (value) {
1405         case 0:
1406           return EXECUTION_REASON_UNDEFINED;
1407         case 1:
1408           return JOB_STATUS_SERVICE_POLLING_ERROR;
1409         case 2:
1410           return NON_ZERO_EXIT_CODE;
1411         case 3:
1412           return CANCELLED;
1413         case 4:
1414           return CANCELLING;
1415         default:
1416           return null;
1417       }
1418     }
1419 
internalGetValueMap()1420     public static com.google.protobuf.Internal.EnumLiteMap<ExecutionReason> internalGetValueMap() {
1421       return internalValueMap;
1422     }
1423 
1424     private static final com.google.protobuf.Internal.EnumLiteMap<ExecutionReason>
1425         internalValueMap =
1426             new com.google.protobuf.Internal.EnumLiteMap<ExecutionReason>() {
1427               public ExecutionReason findValueByNumber(int number) {
1428                 return ExecutionReason.forNumber(number);
1429               }
1430             };
1431 
getValueDescriptor()1432     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
1433       if (this == UNRECOGNIZED) {
1434         throw new java.lang.IllegalStateException(
1435             "Can't get the descriptor of an unrecognized enum value.");
1436       }
1437       return getDescriptor().getValues().get(ordinal());
1438     }
1439 
getDescriptorForType()1440     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
1441       return getDescriptor();
1442     }
1443 
getDescriptor()1444     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
1445       return com.google.cloud.run.v2.Condition.getDescriptor().getEnumTypes().get(4);
1446     }
1447 
1448     private static final ExecutionReason[] VALUES = values();
1449 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)1450     public static ExecutionReason valueOf(
1451         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
1452       if (desc.getType() != getDescriptor()) {
1453         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
1454       }
1455       if (desc.getIndex() == -1) {
1456         return UNRECOGNIZED;
1457       }
1458       return VALUES[desc.getIndex()];
1459     }
1460 
1461     private final int value;
1462 
ExecutionReason(int value)1463     private ExecutionReason(int value) {
1464       this.value = value;
1465     }
1466 
1467     // @@protoc_insertion_point(enum_scope:google.cloud.run.v2.Condition.ExecutionReason)
1468   }
1469 
1470   private int reasonsCase_ = 0;
1471   private java.lang.Object reasons_;
1472 
1473   public enum ReasonsCase
1474       implements
1475           com.google.protobuf.Internal.EnumLite,
1476           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
1477     REASON(6),
1478     REVISION_REASON(9),
1479     EXECUTION_REASON(11),
1480     REASONS_NOT_SET(0);
1481     private final int value;
1482 
ReasonsCase(int value)1483     private ReasonsCase(int value) {
1484       this.value = value;
1485     }
1486     /**
1487      * @param value The number of the enum to look for.
1488      * @return The enum associated with the given number.
1489      * @deprecated Use {@link #forNumber(int)} instead.
1490      */
1491     @java.lang.Deprecated
valueOf(int value)1492     public static ReasonsCase valueOf(int value) {
1493       return forNumber(value);
1494     }
1495 
forNumber(int value)1496     public static ReasonsCase forNumber(int value) {
1497       switch (value) {
1498         case 6:
1499           return REASON;
1500         case 9:
1501           return REVISION_REASON;
1502         case 11:
1503           return EXECUTION_REASON;
1504         case 0:
1505           return REASONS_NOT_SET;
1506         default:
1507           return null;
1508       }
1509     }
1510 
getNumber()1511     public int getNumber() {
1512       return this.value;
1513     }
1514   };
1515 
getReasonsCase()1516   public ReasonsCase getReasonsCase() {
1517     return ReasonsCase.forNumber(reasonsCase_);
1518   }
1519 
1520   public static final int TYPE_FIELD_NUMBER = 1;
1521 
1522   @SuppressWarnings("serial")
1523   private volatile java.lang.Object type_ = "";
1524   /**
1525    *
1526    *
1527    * <pre>
1528    * type is used to communicate the status of the reconciliation process.
1529    * See also:
1530    * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
1531    * Types common to all resources include:
1532    * * "Ready": True when the Resource is ready.
1533    * </pre>
1534    *
1535    * <code>string type = 1;</code>
1536    *
1537    * @return The type.
1538    */
1539   @java.lang.Override
getType()1540   public java.lang.String getType() {
1541     java.lang.Object ref = type_;
1542     if (ref instanceof java.lang.String) {
1543       return (java.lang.String) ref;
1544     } else {
1545       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1546       java.lang.String s = bs.toStringUtf8();
1547       type_ = s;
1548       return s;
1549     }
1550   }
1551   /**
1552    *
1553    *
1554    * <pre>
1555    * type is used to communicate the status of the reconciliation process.
1556    * See also:
1557    * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
1558    * Types common to all resources include:
1559    * * "Ready": True when the Resource is ready.
1560    * </pre>
1561    *
1562    * <code>string type = 1;</code>
1563    *
1564    * @return The bytes for type.
1565    */
1566   @java.lang.Override
getTypeBytes()1567   public com.google.protobuf.ByteString getTypeBytes() {
1568     java.lang.Object ref = type_;
1569     if (ref instanceof java.lang.String) {
1570       com.google.protobuf.ByteString b =
1571           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1572       type_ = b;
1573       return b;
1574     } else {
1575       return (com.google.protobuf.ByteString) ref;
1576     }
1577   }
1578 
1579   public static final int STATE_FIELD_NUMBER = 2;
1580   private int state_ = 0;
1581   /**
1582    *
1583    *
1584    * <pre>
1585    * State of the condition.
1586    * </pre>
1587    *
1588    * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
1589    *
1590    * @return The enum numeric value on the wire for state.
1591    */
1592   @java.lang.Override
getStateValue()1593   public int getStateValue() {
1594     return state_;
1595   }
1596   /**
1597    *
1598    *
1599    * <pre>
1600    * State of the condition.
1601    * </pre>
1602    *
1603    * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
1604    *
1605    * @return The state.
1606    */
1607   @java.lang.Override
getState()1608   public com.google.cloud.run.v2.Condition.State getState() {
1609     com.google.cloud.run.v2.Condition.State result =
1610         com.google.cloud.run.v2.Condition.State.forNumber(state_);
1611     return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result;
1612   }
1613 
1614   public static final int MESSAGE_FIELD_NUMBER = 3;
1615 
1616   @SuppressWarnings("serial")
1617   private volatile java.lang.Object message_ = "";
1618   /**
1619    *
1620    *
1621    * <pre>
1622    * Human readable message indicating details about the current status.
1623    * </pre>
1624    *
1625    * <code>string message = 3;</code>
1626    *
1627    * @return The message.
1628    */
1629   @java.lang.Override
getMessage()1630   public java.lang.String getMessage() {
1631     java.lang.Object ref = message_;
1632     if (ref instanceof java.lang.String) {
1633       return (java.lang.String) ref;
1634     } else {
1635       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1636       java.lang.String s = bs.toStringUtf8();
1637       message_ = s;
1638       return s;
1639     }
1640   }
1641   /**
1642    *
1643    *
1644    * <pre>
1645    * Human readable message indicating details about the current status.
1646    * </pre>
1647    *
1648    * <code>string message = 3;</code>
1649    *
1650    * @return The bytes for message.
1651    */
1652   @java.lang.Override
getMessageBytes()1653   public com.google.protobuf.ByteString getMessageBytes() {
1654     java.lang.Object ref = message_;
1655     if (ref instanceof java.lang.String) {
1656       com.google.protobuf.ByteString b =
1657           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1658       message_ = b;
1659       return b;
1660     } else {
1661       return (com.google.protobuf.ByteString) ref;
1662     }
1663   }
1664 
1665   public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 4;
1666   private com.google.protobuf.Timestamp lastTransitionTime_;
1667   /**
1668    *
1669    *
1670    * <pre>
1671    * Last time the condition transitioned from one status to another.
1672    * </pre>
1673    *
1674    * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
1675    *
1676    * @return Whether the lastTransitionTime field is set.
1677    */
1678   @java.lang.Override
hasLastTransitionTime()1679   public boolean hasLastTransitionTime() {
1680     return lastTransitionTime_ != null;
1681   }
1682   /**
1683    *
1684    *
1685    * <pre>
1686    * Last time the condition transitioned from one status to another.
1687    * </pre>
1688    *
1689    * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
1690    *
1691    * @return The lastTransitionTime.
1692    */
1693   @java.lang.Override
getLastTransitionTime()1694   public com.google.protobuf.Timestamp getLastTransitionTime() {
1695     return lastTransitionTime_ == null
1696         ? com.google.protobuf.Timestamp.getDefaultInstance()
1697         : lastTransitionTime_;
1698   }
1699   /**
1700    *
1701    *
1702    * <pre>
1703    * Last time the condition transitioned from one status to another.
1704    * </pre>
1705    *
1706    * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
1707    */
1708   @java.lang.Override
getLastTransitionTimeOrBuilder()1709   public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() {
1710     return lastTransitionTime_ == null
1711         ? com.google.protobuf.Timestamp.getDefaultInstance()
1712         : lastTransitionTime_;
1713   }
1714 
1715   public static final int SEVERITY_FIELD_NUMBER = 5;
1716   private int severity_ = 0;
1717   /**
1718    *
1719    *
1720    * <pre>
1721    * How to interpret failures of this condition, one of Error, Warning, Info
1722    * </pre>
1723    *
1724    * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
1725    *
1726    * @return The enum numeric value on the wire for severity.
1727    */
1728   @java.lang.Override
getSeverityValue()1729   public int getSeverityValue() {
1730     return severity_;
1731   }
1732   /**
1733    *
1734    *
1735    * <pre>
1736    * How to interpret failures of this condition, one of Error, Warning, Info
1737    * </pre>
1738    *
1739    * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
1740    *
1741    * @return The severity.
1742    */
1743   @java.lang.Override
getSeverity()1744   public com.google.cloud.run.v2.Condition.Severity getSeverity() {
1745     com.google.cloud.run.v2.Condition.Severity result =
1746         com.google.cloud.run.v2.Condition.Severity.forNumber(severity_);
1747     return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result;
1748   }
1749 
1750   public static final int REASON_FIELD_NUMBER = 6;
1751   /**
1752    *
1753    *
1754    * <pre>
1755    * A common (service-level) reason for this condition.
1756    * </pre>
1757    *
1758    * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
1759    *
1760    * @return Whether the reason field is set.
1761    */
hasReason()1762   public boolean hasReason() {
1763     return reasonsCase_ == 6;
1764   }
1765   /**
1766    *
1767    *
1768    * <pre>
1769    * A common (service-level) reason for this condition.
1770    * </pre>
1771    *
1772    * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
1773    *
1774    * @return The enum numeric value on the wire for reason.
1775    */
getReasonValue()1776   public int getReasonValue() {
1777     if (reasonsCase_ == 6) {
1778       return (java.lang.Integer) reasons_;
1779     }
1780     return 0;
1781   }
1782   /**
1783    *
1784    *
1785    * <pre>
1786    * A common (service-level) reason for this condition.
1787    * </pre>
1788    *
1789    * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
1790    *
1791    * @return The reason.
1792    */
getReason()1793   public com.google.cloud.run.v2.Condition.CommonReason getReason() {
1794     if (reasonsCase_ == 6) {
1795       com.google.cloud.run.v2.Condition.CommonReason result =
1796           com.google.cloud.run.v2.Condition.CommonReason.forNumber((java.lang.Integer) reasons_);
1797       return result == null ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED : result;
1798     }
1799     return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED;
1800   }
1801 
1802   public static final int REVISION_REASON_FIELD_NUMBER = 9;
1803   /**
1804    *
1805    *
1806    * <pre>
1807    * A reason for the revision condition.
1808    * </pre>
1809    *
1810    * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
1811    *
1812    * @return Whether the revisionReason field is set.
1813    */
hasRevisionReason()1814   public boolean hasRevisionReason() {
1815     return reasonsCase_ == 9;
1816   }
1817   /**
1818    *
1819    *
1820    * <pre>
1821    * A reason for the revision condition.
1822    * </pre>
1823    *
1824    * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
1825    *
1826    * @return The enum numeric value on the wire for revisionReason.
1827    */
getRevisionReasonValue()1828   public int getRevisionReasonValue() {
1829     if (reasonsCase_ == 9) {
1830       return (java.lang.Integer) reasons_;
1831     }
1832     return 0;
1833   }
1834   /**
1835    *
1836    *
1837    * <pre>
1838    * A reason for the revision condition.
1839    * </pre>
1840    *
1841    * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
1842    *
1843    * @return The revisionReason.
1844    */
getRevisionReason()1845   public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() {
1846     if (reasonsCase_ == 9) {
1847       com.google.cloud.run.v2.Condition.RevisionReason result =
1848           com.google.cloud.run.v2.Condition.RevisionReason.forNumber((java.lang.Integer) reasons_);
1849       return result == null
1850           ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED
1851           : result;
1852     }
1853     return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED;
1854   }
1855 
1856   public static final int EXECUTION_REASON_FIELD_NUMBER = 11;
1857   /**
1858    *
1859    *
1860    * <pre>
1861    * A reason for the execution condition.
1862    * </pre>
1863    *
1864    * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
1865    *
1866    * @return Whether the executionReason field is set.
1867    */
hasExecutionReason()1868   public boolean hasExecutionReason() {
1869     return reasonsCase_ == 11;
1870   }
1871   /**
1872    *
1873    *
1874    * <pre>
1875    * A reason for the execution condition.
1876    * </pre>
1877    *
1878    * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
1879    *
1880    * @return The enum numeric value on the wire for executionReason.
1881    */
getExecutionReasonValue()1882   public int getExecutionReasonValue() {
1883     if (reasonsCase_ == 11) {
1884       return (java.lang.Integer) reasons_;
1885     }
1886     return 0;
1887   }
1888   /**
1889    *
1890    *
1891    * <pre>
1892    * A reason for the execution condition.
1893    * </pre>
1894    *
1895    * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
1896    *
1897    * @return The executionReason.
1898    */
getExecutionReason()1899   public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() {
1900     if (reasonsCase_ == 11) {
1901       com.google.cloud.run.v2.Condition.ExecutionReason result =
1902           com.google.cloud.run.v2.Condition.ExecutionReason.forNumber((java.lang.Integer) reasons_);
1903       return result == null
1904           ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED
1905           : result;
1906     }
1907     return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED;
1908   }
1909 
1910   private byte memoizedIsInitialized = -1;
1911 
1912   @java.lang.Override
isInitialized()1913   public final boolean isInitialized() {
1914     byte isInitialized = memoizedIsInitialized;
1915     if (isInitialized == 1) return true;
1916     if (isInitialized == 0) return false;
1917 
1918     memoizedIsInitialized = 1;
1919     return true;
1920   }
1921 
1922   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1923   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1924     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
1925       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
1926     }
1927     if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) {
1928       output.writeEnum(2, state_);
1929     }
1930     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
1931       com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
1932     }
1933     if (lastTransitionTime_ != null) {
1934       output.writeMessage(4, getLastTransitionTime());
1935     }
1936     if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
1937       output.writeEnum(5, severity_);
1938     }
1939     if (reasonsCase_ == 6) {
1940       output.writeEnum(6, ((java.lang.Integer) reasons_));
1941     }
1942     if (reasonsCase_ == 9) {
1943       output.writeEnum(9, ((java.lang.Integer) reasons_));
1944     }
1945     if (reasonsCase_ == 11) {
1946       output.writeEnum(11, ((java.lang.Integer) reasons_));
1947     }
1948     getUnknownFields().writeTo(output);
1949   }
1950 
1951   @java.lang.Override
getSerializedSize()1952   public int getSerializedSize() {
1953     int size = memoizedSize;
1954     if (size != -1) return size;
1955 
1956     size = 0;
1957     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
1958       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
1959     }
1960     if (state_ != com.google.cloud.run.v2.Condition.State.STATE_UNSPECIFIED.getNumber()) {
1961       size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_);
1962     }
1963     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
1964       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
1965     }
1966     if (lastTransitionTime_ != null) {
1967       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastTransitionTime());
1968     }
1969     if (severity_ != com.google.cloud.run.v2.Condition.Severity.SEVERITY_UNSPECIFIED.getNumber()) {
1970       size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, severity_);
1971     }
1972     if (reasonsCase_ == 6) {
1973       size +=
1974           com.google.protobuf.CodedOutputStream.computeEnumSize(6, ((java.lang.Integer) reasons_));
1975     }
1976     if (reasonsCase_ == 9) {
1977       size +=
1978           com.google.protobuf.CodedOutputStream.computeEnumSize(9, ((java.lang.Integer) reasons_));
1979     }
1980     if (reasonsCase_ == 11) {
1981       size +=
1982           com.google.protobuf.CodedOutputStream.computeEnumSize(11, ((java.lang.Integer) reasons_));
1983     }
1984     size += getUnknownFields().getSerializedSize();
1985     memoizedSize = size;
1986     return size;
1987   }
1988 
1989   @java.lang.Override
equals(final java.lang.Object obj)1990   public boolean equals(final java.lang.Object obj) {
1991     if (obj == this) {
1992       return true;
1993     }
1994     if (!(obj instanceof com.google.cloud.run.v2.Condition)) {
1995       return super.equals(obj);
1996     }
1997     com.google.cloud.run.v2.Condition other = (com.google.cloud.run.v2.Condition) obj;
1998 
1999     if (!getType().equals(other.getType())) return false;
2000     if (state_ != other.state_) return false;
2001     if (!getMessage().equals(other.getMessage())) return false;
2002     if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false;
2003     if (hasLastTransitionTime()) {
2004       if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false;
2005     }
2006     if (severity_ != other.severity_) return false;
2007     if (!getReasonsCase().equals(other.getReasonsCase())) return false;
2008     switch (reasonsCase_) {
2009       case 6:
2010         if (getReasonValue() != other.getReasonValue()) return false;
2011         break;
2012       case 9:
2013         if (getRevisionReasonValue() != other.getRevisionReasonValue()) return false;
2014         break;
2015       case 11:
2016         if (getExecutionReasonValue() != other.getExecutionReasonValue()) return false;
2017         break;
2018       case 0:
2019       default:
2020     }
2021     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
2022     return true;
2023   }
2024 
2025   @java.lang.Override
hashCode()2026   public int hashCode() {
2027     if (memoizedHashCode != 0) {
2028       return memoizedHashCode;
2029     }
2030     int hash = 41;
2031     hash = (19 * hash) + getDescriptor().hashCode();
2032     hash = (37 * hash) + TYPE_FIELD_NUMBER;
2033     hash = (53 * hash) + getType().hashCode();
2034     hash = (37 * hash) + STATE_FIELD_NUMBER;
2035     hash = (53 * hash) + state_;
2036     hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
2037     hash = (53 * hash) + getMessage().hashCode();
2038     if (hasLastTransitionTime()) {
2039       hash = (37 * hash) + LAST_TRANSITION_TIME_FIELD_NUMBER;
2040       hash = (53 * hash) + getLastTransitionTime().hashCode();
2041     }
2042     hash = (37 * hash) + SEVERITY_FIELD_NUMBER;
2043     hash = (53 * hash) + severity_;
2044     switch (reasonsCase_) {
2045       case 6:
2046         hash = (37 * hash) + REASON_FIELD_NUMBER;
2047         hash = (53 * hash) + getReasonValue();
2048         break;
2049       case 9:
2050         hash = (37 * hash) + REVISION_REASON_FIELD_NUMBER;
2051         hash = (53 * hash) + getRevisionReasonValue();
2052         break;
2053       case 11:
2054         hash = (37 * hash) + EXECUTION_REASON_FIELD_NUMBER;
2055         hash = (53 * hash) + getExecutionReasonValue();
2056         break;
2057       case 0:
2058       default:
2059     }
2060     hash = (29 * hash) + getUnknownFields().hashCode();
2061     memoizedHashCode = hash;
2062     return hash;
2063   }
2064 
parseFrom(java.nio.ByteBuffer data)2065   public static com.google.cloud.run.v2.Condition parseFrom(java.nio.ByteBuffer data)
2066       throws com.google.protobuf.InvalidProtocolBufferException {
2067     return PARSER.parseFrom(data);
2068   }
2069 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2070   public static com.google.cloud.run.v2.Condition parseFrom(
2071       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2072       throws com.google.protobuf.InvalidProtocolBufferException {
2073     return PARSER.parseFrom(data, extensionRegistry);
2074   }
2075 
parseFrom(com.google.protobuf.ByteString data)2076   public static com.google.cloud.run.v2.Condition parseFrom(com.google.protobuf.ByteString data)
2077       throws com.google.protobuf.InvalidProtocolBufferException {
2078     return PARSER.parseFrom(data);
2079   }
2080 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2081   public static com.google.cloud.run.v2.Condition parseFrom(
2082       com.google.protobuf.ByteString data,
2083       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2084       throws com.google.protobuf.InvalidProtocolBufferException {
2085     return PARSER.parseFrom(data, extensionRegistry);
2086   }
2087 
parseFrom(byte[] data)2088   public static com.google.cloud.run.v2.Condition parseFrom(byte[] data)
2089       throws com.google.protobuf.InvalidProtocolBufferException {
2090     return PARSER.parseFrom(data);
2091   }
2092 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2093   public static com.google.cloud.run.v2.Condition parseFrom(
2094       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2095       throws com.google.protobuf.InvalidProtocolBufferException {
2096     return PARSER.parseFrom(data, extensionRegistry);
2097   }
2098 
parseFrom(java.io.InputStream input)2099   public static com.google.cloud.run.v2.Condition parseFrom(java.io.InputStream input)
2100       throws java.io.IOException {
2101     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2102   }
2103 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2104   public static com.google.cloud.run.v2.Condition parseFrom(
2105       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2106       throws java.io.IOException {
2107     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2108         PARSER, input, extensionRegistry);
2109   }
2110 
parseDelimitedFrom(java.io.InputStream input)2111   public static com.google.cloud.run.v2.Condition parseDelimitedFrom(java.io.InputStream input)
2112       throws java.io.IOException {
2113     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2114   }
2115 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2116   public static com.google.cloud.run.v2.Condition parseDelimitedFrom(
2117       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2118       throws java.io.IOException {
2119     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2120         PARSER, input, extensionRegistry);
2121   }
2122 
parseFrom( com.google.protobuf.CodedInputStream input)2123   public static com.google.cloud.run.v2.Condition parseFrom(
2124       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2125     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2126   }
2127 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2128   public static com.google.cloud.run.v2.Condition parseFrom(
2129       com.google.protobuf.CodedInputStream input,
2130       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2131       throws java.io.IOException {
2132     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2133         PARSER, input, extensionRegistry);
2134   }
2135 
2136   @java.lang.Override
newBuilderForType()2137   public Builder newBuilderForType() {
2138     return newBuilder();
2139   }
2140 
newBuilder()2141   public static Builder newBuilder() {
2142     return DEFAULT_INSTANCE.toBuilder();
2143   }
2144 
newBuilder(com.google.cloud.run.v2.Condition prototype)2145   public static Builder newBuilder(com.google.cloud.run.v2.Condition prototype) {
2146     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2147   }
2148 
2149   @java.lang.Override
toBuilder()2150   public Builder toBuilder() {
2151     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2152   }
2153 
2154   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2155   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2156     Builder builder = new Builder(parent);
2157     return builder;
2158   }
2159   /**
2160    *
2161    *
2162    * <pre>
2163    * Defines a status condition for a resource.
2164    * </pre>
2165    *
2166    * Protobuf type {@code google.cloud.run.v2.Condition}
2167    */
2168   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2169       implements
2170       // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Condition)
2171       com.google.cloud.run.v2.ConditionOrBuilder {
getDescriptor()2172     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2173       return com.google.cloud.run.v2.ConditionProto
2174           .internal_static_google_cloud_run_v2_Condition_descriptor;
2175     }
2176 
2177     @java.lang.Override
2178     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2179         internalGetFieldAccessorTable() {
2180       return com.google.cloud.run.v2.ConditionProto
2181           .internal_static_google_cloud_run_v2_Condition_fieldAccessorTable
2182           .ensureFieldAccessorsInitialized(
2183               com.google.cloud.run.v2.Condition.class,
2184               com.google.cloud.run.v2.Condition.Builder.class);
2185     }
2186 
2187     // Construct using com.google.cloud.run.v2.Condition.newBuilder()
Builder()2188     private Builder() {}
2189 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2190     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2191       super(parent);
2192     }
2193 
2194     @java.lang.Override
clear()2195     public Builder clear() {
2196       super.clear();
2197       bitField0_ = 0;
2198       type_ = "";
2199       state_ = 0;
2200       message_ = "";
2201       lastTransitionTime_ = null;
2202       if (lastTransitionTimeBuilder_ != null) {
2203         lastTransitionTimeBuilder_.dispose();
2204         lastTransitionTimeBuilder_ = null;
2205       }
2206       severity_ = 0;
2207       reasonsCase_ = 0;
2208       reasons_ = null;
2209       return this;
2210     }
2211 
2212     @java.lang.Override
getDescriptorForType()2213     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2214       return com.google.cloud.run.v2.ConditionProto
2215           .internal_static_google_cloud_run_v2_Condition_descriptor;
2216     }
2217 
2218     @java.lang.Override
getDefaultInstanceForType()2219     public com.google.cloud.run.v2.Condition getDefaultInstanceForType() {
2220       return com.google.cloud.run.v2.Condition.getDefaultInstance();
2221     }
2222 
2223     @java.lang.Override
build()2224     public com.google.cloud.run.v2.Condition build() {
2225       com.google.cloud.run.v2.Condition result = buildPartial();
2226       if (!result.isInitialized()) {
2227         throw newUninitializedMessageException(result);
2228       }
2229       return result;
2230     }
2231 
2232     @java.lang.Override
buildPartial()2233     public com.google.cloud.run.v2.Condition buildPartial() {
2234       com.google.cloud.run.v2.Condition result = new com.google.cloud.run.v2.Condition(this);
2235       if (bitField0_ != 0) {
2236         buildPartial0(result);
2237       }
2238       buildPartialOneofs(result);
2239       onBuilt();
2240       return result;
2241     }
2242 
buildPartial0(com.google.cloud.run.v2.Condition result)2243     private void buildPartial0(com.google.cloud.run.v2.Condition result) {
2244       int from_bitField0_ = bitField0_;
2245       if (((from_bitField0_ & 0x00000001) != 0)) {
2246         result.type_ = type_;
2247       }
2248       if (((from_bitField0_ & 0x00000002) != 0)) {
2249         result.state_ = state_;
2250       }
2251       if (((from_bitField0_ & 0x00000004) != 0)) {
2252         result.message_ = message_;
2253       }
2254       if (((from_bitField0_ & 0x00000008) != 0)) {
2255         result.lastTransitionTime_ =
2256             lastTransitionTimeBuilder_ == null
2257                 ? lastTransitionTime_
2258                 : lastTransitionTimeBuilder_.build();
2259       }
2260       if (((from_bitField0_ & 0x00000010) != 0)) {
2261         result.severity_ = severity_;
2262       }
2263     }
2264 
buildPartialOneofs(com.google.cloud.run.v2.Condition result)2265     private void buildPartialOneofs(com.google.cloud.run.v2.Condition result) {
2266       result.reasonsCase_ = reasonsCase_;
2267       result.reasons_ = this.reasons_;
2268     }
2269 
2270     @java.lang.Override
clone()2271     public Builder clone() {
2272       return super.clone();
2273     }
2274 
2275     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2276     public Builder setField(
2277         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2278       return super.setField(field, value);
2279     }
2280 
2281     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2282     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2283       return super.clearField(field);
2284     }
2285 
2286     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2287     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2288       return super.clearOneof(oneof);
2289     }
2290 
2291     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2292     public Builder setRepeatedField(
2293         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
2294       return super.setRepeatedField(field, index, value);
2295     }
2296 
2297     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2298     public Builder addRepeatedField(
2299         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2300       return super.addRepeatedField(field, value);
2301     }
2302 
2303     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2304     public Builder mergeFrom(com.google.protobuf.Message other) {
2305       if (other instanceof com.google.cloud.run.v2.Condition) {
2306         return mergeFrom((com.google.cloud.run.v2.Condition) other);
2307       } else {
2308         super.mergeFrom(other);
2309         return this;
2310       }
2311     }
2312 
mergeFrom(com.google.cloud.run.v2.Condition other)2313     public Builder mergeFrom(com.google.cloud.run.v2.Condition other) {
2314       if (other == com.google.cloud.run.v2.Condition.getDefaultInstance()) return this;
2315       if (!other.getType().isEmpty()) {
2316         type_ = other.type_;
2317         bitField0_ |= 0x00000001;
2318         onChanged();
2319       }
2320       if (other.state_ != 0) {
2321         setStateValue(other.getStateValue());
2322       }
2323       if (!other.getMessage().isEmpty()) {
2324         message_ = other.message_;
2325         bitField0_ |= 0x00000004;
2326         onChanged();
2327       }
2328       if (other.hasLastTransitionTime()) {
2329         mergeLastTransitionTime(other.getLastTransitionTime());
2330       }
2331       if (other.severity_ != 0) {
2332         setSeverityValue(other.getSeverityValue());
2333       }
2334       switch (other.getReasonsCase()) {
2335         case REASON:
2336           {
2337             setReasonValue(other.getReasonValue());
2338             break;
2339           }
2340         case REVISION_REASON:
2341           {
2342             setRevisionReasonValue(other.getRevisionReasonValue());
2343             break;
2344           }
2345         case EXECUTION_REASON:
2346           {
2347             setExecutionReasonValue(other.getExecutionReasonValue());
2348             break;
2349           }
2350         case REASONS_NOT_SET:
2351           {
2352             break;
2353           }
2354       }
2355       this.mergeUnknownFields(other.getUnknownFields());
2356       onChanged();
2357       return this;
2358     }
2359 
2360     @java.lang.Override
isInitialized()2361     public final boolean isInitialized() {
2362       return true;
2363     }
2364 
2365     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2366     public Builder mergeFrom(
2367         com.google.protobuf.CodedInputStream input,
2368         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2369         throws java.io.IOException {
2370       if (extensionRegistry == null) {
2371         throw new java.lang.NullPointerException();
2372       }
2373       try {
2374         boolean done = false;
2375         while (!done) {
2376           int tag = input.readTag();
2377           switch (tag) {
2378             case 0:
2379               done = true;
2380               break;
2381             case 10:
2382               {
2383                 type_ = input.readStringRequireUtf8();
2384                 bitField0_ |= 0x00000001;
2385                 break;
2386               } // case 10
2387             case 16:
2388               {
2389                 state_ = input.readEnum();
2390                 bitField0_ |= 0x00000002;
2391                 break;
2392               } // case 16
2393             case 26:
2394               {
2395                 message_ = input.readStringRequireUtf8();
2396                 bitField0_ |= 0x00000004;
2397                 break;
2398               } // case 26
2399             case 34:
2400               {
2401                 input.readMessage(
2402                     getLastTransitionTimeFieldBuilder().getBuilder(), extensionRegistry);
2403                 bitField0_ |= 0x00000008;
2404                 break;
2405               } // case 34
2406             case 40:
2407               {
2408                 severity_ = input.readEnum();
2409                 bitField0_ |= 0x00000010;
2410                 break;
2411               } // case 40
2412             case 48:
2413               {
2414                 int rawValue = input.readEnum();
2415                 reasonsCase_ = 6;
2416                 reasons_ = rawValue;
2417                 break;
2418               } // case 48
2419             case 72:
2420               {
2421                 int rawValue = input.readEnum();
2422                 reasonsCase_ = 9;
2423                 reasons_ = rawValue;
2424                 break;
2425               } // case 72
2426             case 88:
2427               {
2428                 int rawValue = input.readEnum();
2429                 reasonsCase_ = 11;
2430                 reasons_ = rawValue;
2431                 break;
2432               } // case 88
2433             default:
2434               {
2435                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2436                   done = true; // was an endgroup tag
2437                 }
2438                 break;
2439               } // default:
2440           } // switch (tag)
2441         } // while (!done)
2442       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2443         throw e.unwrapIOException();
2444       } finally {
2445         onChanged();
2446       } // finally
2447       return this;
2448     }
2449 
2450     private int reasonsCase_ = 0;
2451     private java.lang.Object reasons_;
2452 
getReasonsCase()2453     public ReasonsCase getReasonsCase() {
2454       return ReasonsCase.forNumber(reasonsCase_);
2455     }
2456 
clearReasons()2457     public Builder clearReasons() {
2458       reasonsCase_ = 0;
2459       reasons_ = null;
2460       onChanged();
2461       return this;
2462     }
2463 
2464     private int bitField0_;
2465 
2466     private java.lang.Object type_ = "";
2467     /**
2468      *
2469      *
2470      * <pre>
2471      * type is used to communicate the status of the reconciliation process.
2472      * See also:
2473      * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
2474      * Types common to all resources include:
2475      * * "Ready": True when the Resource is ready.
2476      * </pre>
2477      *
2478      * <code>string type = 1;</code>
2479      *
2480      * @return The type.
2481      */
getType()2482     public java.lang.String getType() {
2483       java.lang.Object ref = type_;
2484       if (!(ref instanceof java.lang.String)) {
2485         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2486         java.lang.String s = bs.toStringUtf8();
2487         type_ = s;
2488         return s;
2489       } else {
2490         return (java.lang.String) ref;
2491       }
2492     }
2493     /**
2494      *
2495      *
2496      * <pre>
2497      * type is used to communicate the status of the reconciliation process.
2498      * See also:
2499      * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
2500      * Types common to all resources include:
2501      * * "Ready": True when the Resource is ready.
2502      * </pre>
2503      *
2504      * <code>string type = 1;</code>
2505      *
2506      * @return The bytes for type.
2507      */
getTypeBytes()2508     public com.google.protobuf.ByteString getTypeBytes() {
2509       java.lang.Object ref = type_;
2510       if (ref instanceof String) {
2511         com.google.protobuf.ByteString b =
2512             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2513         type_ = b;
2514         return b;
2515       } else {
2516         return (com.google.protobuf.ByteString) ref;
2517       }
2518     }
2519     /**
2520      *
2521      *
2522      * <pre>
2523      * type is used to communicate the status of the reconciliation process.
2524      * See also:
2525      * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
2526      * Types common to all resources include:
2527      * * "Ready": True when the Resource is ready.
2528      * </pre>
2529      *
2530      * <code>string type = 1;</code>
2531      *
2532      * @param value The type to set.
2533      * @return This builder for chaining.
2534      */
setType(java.lang.String value)2535     public Builder setType(java.lang.String value) {
2536       if (value == null) {
2537         throw new NullPointerException();
2538       }
2539       type_ = value;
2540       bitField0_ |= 0x00000001;
2541       onChanged();
2542       return this;
2543     }
2544     /**
2545      *
2546      *
2547      * <pre>
2548      * type is used to communicate the status of the reconciliation process.
2549      * See also:
2550      * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
2551      * Types common to all resources include:
2552      * * "Ready": True when the Resource is ready.
2553      * </pre>
2554      *
2555      * <code>string type = 1;</code>
2556      *
2557      * @return This builder for chaining.
2558      */
clearType()2559     public Builder clearType() {
2560       type_ = getDefaultInstance().getType();
2561       bitField0_ = (bitField0_ & ~0x00000001);
2562       onChanged();
2563       return this;
2564     }
2565     /**
2566      *
2567      *
2568      * <pre>
2569      * type is used to communicate the status of the reconciliation process.
2570      * See also:
2571      * https://github.com/knative/serving/blob/main/docs/spec/errors.md#error-conditions-and-reporting
2572      * Types common to all resources include:
2573      * * "Ready": True when the Resource is ready.
2574      * </pre>
2575      *
2576      * <code>string type = 1;</code>
2577      *
2578      * @param value The bytes for type to set.
2579      * @return This builder for chaining.
2580      */
setTypeBytes(com.google.protobuf.ByteString value)2581     public Builder setTypeBytes(com.google.protobuf.ByteString value) {
2582       if (value == null) {
2583         throw new NullPointerException();
2584       }
2585       checkByteStringIsUtf8(value);
2586       type_ = value;
2587       bitField0_ |= 0x00000001;
2588       onChanged();
2589       return this;
2590     }
2591 
2592     private int state_ = 0;
2593     /**
2594      *
2595      *
2596      * <pre>
2597      * State of the condition.
2598      * </pre>
2599      *
2600      * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
2601      *
2602      * @return The enum numeric value on the wire for state.
2603      */
2604     @java.lang.Override
getStateValue()2605     public int getStateValue() {
2606       return state_;
2607     }
2608     /**
2609      *
2610      *
2611      * <pre>
2612      * State of the condition.
2613      * </pre>
2614      *
2615      * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
2616      *
2617      * @param value The enum numeric value on the wire for state to set.
2618      * @return This builder for chaining.
2619      */
setStateValue(int value)2620     public Builder setStateValue(int value) {
2621       state_ = value;
2622       bitField0_ |= 0x00000002;
2623       onChanged();
2624       return this;
2625     }
2626     /**
2627      *
2628      *
2629      * <pre>
2630      * State of the condition.
2631      * </pre>
2632      *
2633      * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
2634      *
2635      * @return The state.
2636      */
2637     @java.lang.Override
getState()2638     public com.google.cloud.run.v2.Condition.State getState() {
2639       com.google.cloud.run.v2.Condition.State result =
2640           com.google.cloud.run.v2.Condition.State.forNumber(state_);
2641       return result == null ? com.google.cloud.run.v2.Condition.State.UNRECOGNIZED : result;
2642     }
2643     /**
2644      *
2645      *
2646      * <pre>
2647      * State of the condition.
2648      * </pre>
2649      *
2650      * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
2651      *
2652      * @param value The state to set.
2653      * @return This builder for chaining.
2654      */
setState(com.google.cloud.run.v2.Condition.State value)2655     public Builder setState(com.google.cloud.run.v2.Condition.State value) {
2656       if (value == null) {
2657         throw new NullPointerException();
2658       }
2659       bitField0_ |= 0x00000002;
2660       state_ = value.getNumber();
2661       onChanged();
2662       return this;
2663     }
2664     /**
2665      *
2666      *
2667      * <pre>
2668      * State of the condition.
2669      * </pre>
2670      *
2671      * <code>.google.cloud.run.v2.Condition.State state = 2;</code>
2672      *
2673      * @return This builder for chaining.
2674      */
clearState()2675     public Builder clearState() {
2676       bitField0_ = (bitField0_ & ~0x00000002);
2677       state_ = 0;
2678       onChanged();
2679       return this;
2680     }
2681 
2682     private java.lang.Object message_ = "";
2683     /**
2684      *
2685      *
2686      * <pre>
2687      * Human readable message indicating details about the current status.
2688      * </pre>
2689      *
2690      * <code>string message = 3;</code>
2691      *
2692      * @return The message.
2693      */
getMessage()2694     public java.lang.String getMessage() {
2695       java.lang.Object ref = message_;
2696       if (!(ref instanceof java.lang.String)) {
2697         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2698         java.lang.String s = bs.toStringUtf8();
2699         message_ = s;
2700         return s;
2701       } else {
2702         return (java.lang.String) ref;
2703       }
2704     }
2705     /**
2706      *
2707      *
2708      * <pre>
2709      * Human readable message indicating details about the current status.
2710      * </pre>
2711      *
2712      * <code>string message = 3;</code>
2713      *
2714      * @return The bytes for message.
2715      */
getMessageBytes()2716     public com.google.protobuf.ByteString getMessageBytes() {
2717       java.lang.Object ref = message_;
2718       if (ref instanceof String) {
2719         com.google.protobuf.ByteString b =
2720             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2721         message_ = b;
2722         return b;
2723       } else {
2724         return (com.google.protobuf.ByteString) ref;
2725       }
2726     }
2727     /**
2728      *
2729      *
2730      * <pre>
2731      * Human readable message indicating details about the current status.
2732      * </pre>
2733      *
2734      * <code>string message = 3;</code>
2735      *
2736      * @param value The message to set.
2737      * @return This builder for chaining.
2738      */
setMessage(java.lang.String value)2739     public Builder setMessage(java.lang.String value) {
2740       if (value == null) {
2741         throw new NullPointerException();
2742       }
2743       message_ = value;
2744       bitField0_ |= 0x00000004;
2745       onChanged();
2746       return this;
2747     }
2748     /**
2749      *
2750      *
2751      * <pre>
2752      * Human readable message indicating details about the current status.
2753      * </pre>
2754      *
2755      * <code>string message = 3;</code>
2756      *
2757      * @return This builder for chaining.
2758      */
clearMessage()2759     public Builder clearMessage() {
2760       message_ = getDefaultInstance().getMessage();
2761       bitField0_ = (bitField0_ & ~0x00000004);
2762       onChanged();
2763       return this;
2764     }
2765     /**
2766      *
2767      *
2768      * <pre>
2769      * Human readable message indicating details about the current status.
2770      * </pre>
2771      *
2772      * <code>string message = 3;</code>
2773      *
2774      * @param value The bytes for message to set.
2775      * @return This builder for chaining.
2776      */
setMessageBytes(com.google.protobuf.ByteString value)2777     public Builder setMessageBytes(com.google.protobuf.ByteString value) {
2778       if (value == null) {
2779         throw new NullPointerException();
2780       }
2781       checkByteStringIsUtf8(value);
2782       message_ = value;
2783       bitField0_ |= 0x00000004;
2784       onChanged();
2785       return this;
2786     }
2787 
2788     private com.google.protobuf.Timestamp lastTransitionTime_;
2789     private com.google.protobuf.SingleFieldBuilderV3<
2790             com.google.protobuf.Timestamp,
2791             com.google.protobuf.Timestamp.Builder,
2792             com.google.protobuf.TimestampOrBuilder>
2793         lastTransitionTimeBuilder_;
2794     /**
2795      *
2796      *
2797      * <pre>
2798      * Last time the condition transitioned from one status to another.
2799      * </pre>
2800      *
2801      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2802      *
2803      * @return Whether the lastTransitionTime field is set.
2804      */
hasLastTransitionTime()2805     public boolean hasLastTransitionTime() {
2806       return ((bitField0_ & 0x00000008) != 0);
2807     }
2808     /**
2809      *
2810      *
2811      * <pre>
2812      * Last time the condition transitioned from one status to another.
2813      * </pre>
2814      *
2815      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2816      *
2817      * @return The lastTransitionTime.
2818      */
getLastTransitionTime()2819     public com.google.protobuf.Timestamp getLastTransitionTime() {
2820       if (lastTransitionTimeBuilder_ == null) {
2821         return lastTransitionTime_ == null
2822             ? com.google.protobuf.Timestamp.getDefaultInstance()
2823             : lastTransitionTime_;
2824       } else {
2825         return lastTransitionTimeBuilder_.getMessage();
2826       }
2827     }
2828     /**
2829      *
2830      *
2831      * <pre>
2832      * Last time the condition transitioned from one status to another.
2833      * </pre>
2834      *
2835      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2836      */
setLastTransitionTime(com.google.protobuf.Timestamp value)2837     public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) {
2838       if (lastTransitionTimeBuilder_ == null) {
2839         if (value == null) {
2840           throw new NullPointerException();
2841         }
2842         lastTransitionTime_ = value;
2843       } else {
2844         lastTransitionTimeBuilder_.setMessage(value);
2845       }
2846       bitField0_ |= 0x00000008;
2847       onChanged();
2848       return this;
2849     }
2850     /**
2851      *
2852      *
2853      * <pre>
2854      * Last time the condition transitioned from one status to another.
2855      * </pre>
2856      *
2857      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2858      */
setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue)2859     public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) {
2860       if (lastTransitionTimeBuilder_ == null) {
2861         lastTransitionTime_ = builderForValue.build();
2862       } else {
2863         lastTransitionTimeBuilder_.setMessage(builderForValue.build());
2864       }
2865       bitField0_ |= 0x00000008;
2866       onChanged();
2867       return this;
2868     }
2869     /**
2870      *
2871      *
2872      * <pre>
2873      * Last time the condition transitioned from one status to another.
2874      * </pre>
2875      *
2876      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2877      */
mergeLastTransitionTime(com.google.protobuf.Timestamp value)2878     public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) {
2879       if (lastTransitionTimeBuilder_ == null) {
2880         if (((bitField0_ & 0x00000008) != 0)
2881             && lastTransitionTime_ != null
2882             && lastTransitionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2883           getLastTransitionTimeBuilder().mergeFrom(value);
2884         } else {
2885           lastTransitionTime_ = value;
2886         }
2887       } else {
2888         lastTransitionTimeBuilder_.mergeFrom(value);
2889       }
2890       bitField0_ |= 0x00000008;
2891       onChanged();
2892       return this;
2893     }
2894     /**
2895      *
2896      *
2897      * <pre>
2898      * Last time the condition transitioned from one status to another.
2899      * </pre>
2900      *
2901      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2902      */
clearLastTransitionTime()2903     public Builder clearLastTransitionTime() {
2904       bitField0_ = (bitField0_ & ~0x00000008);
2905       lastTransitionTime_ = null;
2906       if (lastTransitionTimeBuilder_ != null) {
2907         lastTransitionTimeBuilder_.dispose();
2908         lastTransitionTimeBuilder_ = null;
2909       }
2910       onChanged();
2911       return this;
2912     }
2913     /**
2914      *
2915      *
2916      * <pre>
2917      * Last time the condition transitioned from one status to another.
2918      * </pre>
2919      *
2920      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2921      */
getLastTransitionTimeBuilder()2922     public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() {
2923       bitField0_ |= 0x00000008;
2924       onChanged();
2925       return getLastTransitionTimeFieldBuilder().getBuilder();
2926     }
2927     /**
2928      *
2929      *
2930      * <pre>
2931      * Last time the condition transitioned from one status to another.
2932      * </pre>
2933      *
2934      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2935      */
getLastTransitionTimeOrBuilder()2936     public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() {
2937       if (lastTransitionTimeBuilder_ != null) {
2938         return lastTransitionTimeBuilder_.getMessageOrBuilder();
2939       } else {
2940         return lastTransitionTime_ == null
2941             ? com.google.protobuf.Timestamp.getDefaultInstance()
2942             : lastTransitionTime_;
2943       }
2944     }
2945     /**
2946      *
2947      *
2948      * <pre>
2949      * Last time the condition transitioned from one status to another.
2950      * </pre>
2951      *
2952      * <code>.google.protobuf.Timestamp last_transition_time = 4;</code>
2953      */
2954     private com.google.protobuf.SingleFieldBuilderV3<
2955             com.google.protobuf.Timestamp,
2956             com.google.protobuf.Timestamp.Builder,
2957             com.google.protobuf.TimestampOrBuilder>
getLastTransitionTimeFieldBuilder()2958         getLastTransitionTimeFieldBuilder() {
2959       if (lastTransitionTimeBuilder_ == null) {
2960         lastTransitionTimeBuilder_ =
2961             new com.google.protobuf.SingleFieldBuilderV3<
2962                 com.google.protobuf.Timestamp,
2963                 com.google.protobuf.Timestamp.Builder,
2964                 com.google.protobuf.TimestampOrBuilder>(
2965                 getLastTransitionTime(), getParentForChildren(), isClean());
2966         lastTransitionTime_ = null;
2967       }
2968       return lastTransitionTimeBuilder_;
2969     }
2970 
2971     private int severity_ = 0;
2972     /**
2973      *
2974      *
2975      * <pre>
2976      * How to interpret failures of this condition, one of Error, Warning, Info
2977      * </pre>
2978      *
2979      * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
2980      *
2981      * @return The enum numeric value on the wire for severity.
2982      */
2983     @java.lang.Override
getSeverityValue()2984     public int getSeverityValue() {
2985       return severity_;
2986     }
2987     /**
2988      *
2989      *
2990      * <pre>
2991      * How to interpret failures of this condition, one of Error, Warning, Info
2992      * </pre>
2993      *
2994      * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
2995      *
2996      * @param value The enum numeric value on the wire for severity to set.
2997      * @return This builder for chaining.
2998      */
setSeverityValue(int value)2999     public Builder setSeverityValue(int value) {
3000       severity_ = value;
3001       bitField0_ |= 0x00000010;
3002       onChanged();
3003       return this;
3004     }
3005     /**
3006      *
3007      *
3008      * <pre>
3009      * How to interpret failures of this condition, one of Error, Warning, Info
3010      * </pre>
3011      *
3012      * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
3013      *
3014      * @return The severity.
3015      */
3016     @java.lang.Override
getSeverity()3017     public com.google.cloud.run.v2.Condition.Severity getSeverity() {
3018       com.google.cloud.run.v2.Condition.Severity result =
3019           com.google.cloud.run.v2.Condition.Severity.forNumber(severity_);
3020       return result == null ? com.google.cloud.run.v2.Condition.Severity.UNRECOGNIZED : result;
3021     }
3022     /**
3023      *
3024      *
3025      * <pre>
3026      * How to interpret failures of this condition, one of Error, Warning, Info
3027      * </pre>
3028      *
3029      * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
3030      *
3031      * @param value The severity to set.
3032      * @return This builder for chaining.
3033      */
setSeverity(com.google.cloud.run.v2.Condition.Severity value)3034     public Builder setSeverity(com.google.cloud.run.v2.Condition.Severity value) {
3035       if (value == null) {
3036         throw new NullPointerException();
3037       }
3038       bitField0_ |= 0x00000010;
3039       severity_ = value.getNumber();
3040       onChanged();
3041       return this;
3042     }
3043     /**
3044      *
3045      *
3046      * <pre>
3047      * How to interpret failures of this condition, one of Error, Warning, Info
3048      * </pre>
3049      *
3050      * <code>.google.cloud.run.v2.Condition.Severity severity = 5;</code>
3051      *
3052      * @return This builder for chaining.
3053      */
clearSeverity()3054     public Builder clearSeverity() {
3055       bitField0_ = (bitField0_ & ~0x00000010);
3056       severity_ = 0;
3057       onChanged();
3058       return this;
3059     }
3060 
3061     /**
3062      *
3063      *
3064      * <pre>
3065      * A common (service-level) reason for this condition.
3066      * </pre>
3067      *
3068      * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
3069      *
3070      * @return Whether the reason field is set.
3071      */
3072     @java.lang.Override
hasReason()3073     public boolean hasReason() {
3074       return reasonsCase_ == 6;
3075     }
3076     /**
3077      *
3078      *
3079      * <pre>
3080      * A common (service-level) reason for this condition.
3081      * </pre>
3082      *
3083      * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
3084      *
3085      * @return The enum numeric value on the wire for reason.
3086      */
3087     @java.lang.Override
getReasonValue()3088     public int getReasonValue() {
3089       if (reasonsCase_ == 6) {
3090         return ((java.lang.Integer) reasons_).intValue();
3091       }
3092       return 0;
3093     }
3094     /**
3095      *
3096      *
3097      * <pre>
3098      * A common (service-level) reason for this condition.
3099      * </pre>
3100      *
3101      * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
3102      *
3103      * @param value The enum numeric value on the wire for reason to set.
3104      * @return This builder for chaining.
3105      */
setReasonValue(int value)3106     public Builder setReasonValue(int value) {
3107       reasonsCase_ = 6;
3108       reasons_ = value;
3109       onChanged();
3110       return this;
3111     }
3112     /**
3113      *
3114      *
3115      * <pre>
3116      * A common (service-level) reason for this condition.
3117      * </pre>
3118      *
3119      * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
3120      *
3121      * @return The reason.
3122      */
3123     @java.lang.Override
getReason()3124     public com.google.cloud.run.v2.Condition.CommonReason getReason() {
3125       if (reasonsCase_ == 6) {
3126         com.google.cloud.run.v2.Condition.CommonReason result =
3127             com.google.cloud.run.v2.Condition.CommonReason.forNumber((java.lang.Integer) reasons_);
3128         return result == null
3129             ? com.google.cloud.run.v2.Condition.CommonReason.UNRECOGNIZED
3130             : result;
3131       }
3132       return com.google.cloud.run.v2.Condition.CommonReason.COMMON_REASON_UNDEFINED;
3133     }
3134     /**
3135      *
3136      *
3137      * <pre>
3138      * A common (service-level) reason for this condition.
3139      * </pre>
3140      *
3141      * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
3142      *
3143      * @param value The reason to set.
3144      * @return This builder for chaining.
3145      */
setReason(com.google.cloud.run.v2.Condition.CommonReason value)3146     public Builder setReason(com.google.cloud.run.v2.Condition.CommonReason value) {
3147       if (value == null) {
3148         throw new NullPointerException();
3149       }
3150       reasonsCase_ = 6;
3151       reasons_ = value.getNumber();
3152       onChanged();
3153       return this;
3154     }
3155     /**
3156      *
3157      *
3158      * <pre>
3159      * A common (service-level) reason for this condition.
3160      * </pre>
3161      *
3162      * <code>.google.cloud.run.v2.Condition.CommonReason reason = 6;</code>
3163      *
3164      * @return This builder for chaining.
3165      */
clearReason()3166     public Builder clearReason() {
3167       if (reasonsCase_ == 6) {
3168         reasonsCase_ = 0;
3169         reasons_ = null;
3170         onChanged();
3171       }
3172       return this;
3173     }
3174 
3175     /**
3176      *
3177      *
3178      * <pre>
3179      * A reason for the revision condition.
3180      * </pre>
3181      *
3182      * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
3183      *
3184      * @return Whether the revisionReason field is set.
3185      */
3186     @java.lang.Override
hasRevisionReason()3187     public boolean hasRevisionReason() {
3188       return reasonsCase_ == 9;
3189     }
3190     /**
3191      *
3192      *
3193      * <pre>
3194      * A reason for the revision condition.
3195      * </pre>
3196      *
3197      * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
3198      *
3199      * @return The enum numeric value on the wire for revisionReason.
3200      */
3201     @java.lang.Override
getRevisionReasonValue()3202     public int getRevisionReasonValue() {
3203       if (reasonsCase_ == 9) {
3204         return ((java.lang.Integer) reasons_).intValue();
3205       }
3206       return 0;
3207     }
3208     /**
3209      *
3210      *
3211      * <pre>
3212      * A reason for the revision condition.
3213      * </pre>
3214      *
3215      * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
3216      *
3217      * @param value The enum numeric value on the wire for revisionReason to set.
3218      * @return This builder for chaining.
3219      */
setRevisionReasonValue(int value)3220     public Builder setRevisionReasonValue(int value) {
3221       reasonsCase_ = 9;
3222       reasons_ = value;
3223       onChanged();
3224       return this;
3225     }
3226     /**
3227      *
3228      *
3229      * <pre>
3230      * A reason for the revision condition.
3231      * </pre>
3232      *
3233      * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
3234      *
3235      * @return The revisionReason.
3236      */
3237     @java.lang.Override
getRevisionReason()3238     public com.google.cloud.run.v2.Condition.RevisionReason getRevisionReason() {
3239       if (reasonsCase_ == 9) {
3240         com.google.cloud.run.v2.Condition.RevisionReason result =
3241             com.google.cloud.run.v2.Condition.RevisionReason.forNumber(
3242                 (java.lang.Integer) reasons_);
3243         return result == null
3244             ? com.google.cloud.run.v2.Condition.RevisionReason.UNRECOGNIZED
3245             : result;
3246       }
3247       return com.google.cloud.run.v2.Condition.RevisionReason.REVISION_REASON_UNDEFINED;
3248     }
3249     /**
3250      *
3251      *
3252      * <pre>
3253      * A reason for the revision condition.
3254      * </pre>
3255      *
3256      * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
3257      *
3258      * @param value The revisionReason to set.
3259      * @return This builder for chaining.
3260      */
setRevisionReason(com.google.cloud.run.v2.Condition.RevisionReason value)3261     public Builder setRevisionReason(com.google.cloud.run.v2.Condition.RevisionReason value) {
3262       if (value == null) {
3263         throw new NullPointerException();
3264       }
3265       reasonsCase_ = 9;
3266       reasons_ = value.getNumber();
3267       onChanged();
3268       return this;
3269     }
3270     /**
3271      *
3272      *
3273      * <pre>
3274      * A reason for the revision condition.
3275      * </pre>
3276      *
3277      * <code>.google.cloud.run.v2.Condition.RevisionReason revision_reason = 9;</code>
3278      *
3279      * @return This builder for chaining.
3280      */
clearRevisionReason()3281     public Builder clearRevisionReason() {
3282       if (reasonsCase_ == 9) {
3283         reasonsCase_ = 0;
3284         reasons_ = null;
3285         onChanged();
3286       }
3287       return this;
3288     }
3289 
3290     /**
3291      *
3292      *
3293      * <pre>
3294      * A reason for the execution condition.
3295      * </pre>
3296      *
3297      * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
3298      *
3299      * @return Whether the executionReason field is set.
3300      */
3301     @java.lang.Override
hasExecutionReason()3302     public boolean hasExecutionReason() {
3303       return reasonsCase_ == 11;
3304     }
3305     /**
3306      *
3307      *
3308      * <pre>
3309      * A reason for the execution condition.
3310      * </pre>
3311      *
3312      * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
3313      *
3314      * @return The enum numeric value on the wire for executionReason.
3315      */
3316     @java.lang.Override
getExecutionReasonValue()3317     public int getExecutionReasonValue() {
3318       if (reasonsCase_ == 11) {
3319         return ((java.lang.Integer) reasons_).intValue();
3320       }
3321       return 0;
3322     }
3323     /**
3324      *
3325      *
3326      * <pre>
3327      * A reason for the execution condition.
3328      * </pre>
3329      *
3330      * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
3331      *
3332      * @param value The enum numeric value on the wire for executionReason to set.
3333      * @return This builder for chaining.
3334      */
setExecutionReasonValue(int value)3335     public Builder setExecutionReasonValue(int value) {
3336       reasonsCase_ = 11;
3337       reasons_ = value;
3338       onChanged();
3339       return this;
3340     }
3341     /**
3342      *
3343      *
3344      * <pre>
3345      * A reason for the execution condition.
3346      * </pre>
3347      *
3348      * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
3349      *
3350      * @return The executionReason.
3351      */
3352     @java.lang.Override
getExecutionReason()3353     public com.google.cloud.run.v2.Condition.ExecutionReason getExecutionReason() {
3354       if (reasonsCase_ == 11) {
3355         com.google.cloud.run.v2.Condition.ExecutionReason result =
3356             com.google.cloud.run.v2.Condition.ExecutionReason.forNumber(
3357                 (java.lang.Integer) reasons_);
3358         return result == null
3359             ? com.google.cloud.run.v2.Condition.ExecutionReason.UNRECOGNIZED
3360             : result;
3361       }
3362       return com.google.cloud.run.v2.Condition.ExecutionReason.EXECUTION_REASON_UNDEFINED;
3363     }
3364     /**
3365      *
3366      *
3367      * <pre>
3368      * A reason for the execution condition.
3369      * </pre>
3370      *
3371      * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
3372      *
3373      * @param value The executionReason to set.
3374      * @return This builder for chaining.
3375      */
setExecutionReason(com.google.cloud.run.v2.Condition.ExecutionReason value)3376     public Builder setExecutionReason(com.google.cloud.run.v2.Condition.ExecutionReason value) {
3377       if (value == null) {
3378         throw new NullPointerException();
3379       }
3380       reasonsCase_ = 11;
3381       reasons_ = value.getNumber();
3382       onChanged();
3383       return this;
3384     }
3385     /**
3386      *
3387      *
3388      * <pre>
3389      * A reason for the execution condition.
3390      * </pre>
3391      *
3392      * <code>.google.cloud.run.v2.Condition.ExecutionReason execution_reason = 11;</code>
3393      *
3394      * @return This builder for chaining.
3395      */
clearExecutionReason()3396     public Builder clearExecutionReason() {
3397       if (reasonsCase_ == 11) {
3398         reasonsCase_ = 0;
3399         reasons_ = null;
3400         onChanged();
3401       }
3402       return this;
3403     }
3404 
3405     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3406     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
3407       return super.setUnknownFields(unknownFields);
3408     }
3409 
3410     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3411     public final Builder mergeUnknownFields(
3412         final com.google.protobuf.UnknownFieldSet unknownFields) {
3413       return super.mergeUnknownFields(unknownFields);
3414     }
3415 
3416     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Condition)
3417   }
3418 
3419   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Condition)
3420   private static final com.google.cloud.run.v2.Condition DEFAULT_INSTANCE;
3421 
3422   static {
3423     DEFAULT_INSTANCE = new com.google.cloud.run.v2.Condition();
3424   }
3425 
getDefaultInstance()3426   public static com.google.cloud.run.v2.Condition getDefaultInstance() {
3427     return DEFAULT_INSTANCE;
3428   }
3429 
3430   private static final com.google.protobuf.Parser<Condition> PARSER =
3431       new com.google.protobuf.AbstractParser<Condition>() {
3432         @java.lang.Override
3433         public Condition parsePartialFrom(
3434             com.google.protobuf.CodedInputStream input,
3435             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3436             throws com.google.protobuf.InvalidProtocolBufferException {
3437           Builder builder = newBuilder();
3438           try {
3439             builder.mergeFrom(input, extensionRegistry);
3440           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3441             throw e.setUnfinishedMessage(builder.buildPartial());
3442           } catch (com.google.protobuf.UninitializedMessageException e) {
3443             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3444           } catch (java.io.IOException e) {
3445             throw new com.google.protobuf.InvalidProtocolBufferException(e)
3446                 .setUnfinishedMessage(builder.buildPartial());
3447           }
3448           return builder.buildPartial();
3449         }
3450       };
3451 
parser()3452   public static com.google.protobuf.Parser<Condition> parser() {
3453     return PARSER;
3454   }
3455 
3456   @java.lang.Override
getParserForType()3457   public com.google.protobuf.Parser<Condition> getParserForType() {
3458     return PARSER;
3459   }
3460 
3461   @java.lang.Override
getDefaultInstanceForType()3462   public com.google.cloud.run.v2.Condition getDefaultInstanceForType() {
3463     return DEFAULT_INSTANCE;
3464   }
3465 }
3466