• 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/revision.proto
18 
19 package com.google.cloud.run.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A Revision is an immutable snapshot of code and configuration.  A Revision
26  * references a container image. Revisions are only created by updates to its
27  * parent Service.
28  * </pre>
29  *
30  * Protobuf type {@code google.cloud.run.v2.Revision}
31  */
32 public final class Revision extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:google.cloud.run.v2.Revision)
35     RevisionOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use Revision.newBuilder() to construct.
Revision(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private Revision(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
Revision()42   private Revision() {
43     name_ = "";
44     uid_ = "";
45     launchStage_ = 0;
46     service_ = "";
47     serviceAccount_ = "";
48     containers_ = java.util.Collections.emptyList();
49     volumes_ = java.util.Collections.emptyList();
50     executionEnvironment_ = 0;
51     encryptionKey_ = "";
52     encryptionKeyRevocationAction_ = 0;
53     conditions_ = java.util.Collections.emptyList();
54     logUri_ = "";
55     etag_ = "";
56   }
57 
58   @java.lang.Override
59   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)60   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
61     return new Revision();
62   }
63 
64   @java.lang.Override
getUnknownFields()65   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
66     return this.unknownFields;
67   }
68 
getDescriptor()69   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
70     return com.google.cloud.run.v2.RevisionProto
71         .internal_static_google_cloud_run_v2_Revision_descriptor;
72   }
73 
74   @SuppressWarnings({"rawtypes"})
75   @java.lang.Override
internalGetMapField(int number)76   protected com.google.protobuf.MapField internalGetMapField(int number) {
77     switch (number) {
78       case 4:
79         return internalGetLabels();
80       case 5:
81         return internalGetAnnotations();
82       default:
83         throw new RuntimeException("Invalid map field number: " + number);
84     }
85   }
86 
87   @java.lang.Override
88   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()89       internalGetFieldAccessorTable() {
90     return com.google.cloud.run.v2.RevisionProto
91         .internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
92         .ensureFieldAccessorsInitialized(
93             com.google.cloud.run.v2.Revision.class, com.google.cloud.run.v2.Revision.Builder.class);
94   }
95 
96   public static final int NAME_FIELD_NUMBER = 1;
97 
98   @SuppressWarnings("serial")
99   private volatile java.lang.Object name_ = "";
100   /**
101    *
102    *
103    * <pre>
104    * Output only. The unique name of this Revision.
105    * </pre>
106    *
107    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
108    *
109    * @return The name.
110    */
111   @java.lang.Override
getName()112   public java.lang.String getName() {
113     java.lang.Object ref = name_;
114     if (ref instanceof java.lang.String) {
115       return (java.lang.String) ref;
116     } else {
117       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
118       java.lang.String s = bs.toStringUtf8();
119       name_ = s;
120       return s;
121     }
122   }
123   /**
124    *
125    *
126    * <pre>
127    * Output only. The unique name of this Revision.
128    * </pre>
129    *
130    * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
131    *
132    * @return The bytes for name.
133    */
134   @java.lang.Override
getNameBytes()135   public com.google.protobuf.ByteString getNameBytes() {
136     java.lang.Object ref = name_;
137     if (ref instanceof java.lang.String) {
138       com.google.protobuf.ByteString b =
139           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
140       name_ = b;
141       return b;
142     } else {
143       return (com.google.protobuf.ByteString) ref;
144     }
145   }
146 
147   public static final int UID_FIELD_NUMBER = 2;
148 
149   @SuppressWarnings("serial")
150   private volatile java.lang.Object uid_ = "";
151   /**
152    *
153    *
154    * <pre>
155    * Output only. Server assigned unique identifier for the Revision. The value
156    * is a UUID4 string and guaranteed to remain unchanged until the resource is
157    * deleted.
158    * </pre>
159    *
160    * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
161    *
162    * @return The uid.
163    */
164   @java.lang.Override
getUid()165   public java.lang.String getUid() {
166     java.lang.Object ref = uid_;
167     if (ref instanceof java.lang.String) {
168       return (java.lang.String) ref;
169     } else {
170       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
171       java.lang.String s = bs.toStringUtf8();
172       uid_ = s;
173       return s;
174     }
175   }
176   /**
177    *
178    *
179    * <pre>
180    * Output only. Server assigned unique identifier for the Revision. The value
181    * is a UUID4 string and guaranteed to remain unchanged until the resource is
182    * deleted.
183    * </pre>
184    *
185    * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
186    *
187    * @return The bytes for uid.
188    */
189   @java.lang.Override
getUidBytes()190   public com.google.protobuf.ByteString getUidBytes() {
191     java.lang.Object ref = uid_;
192     if (ref instanceof java.lang.String) {
193       com.google.protobuf.ByteString b =
194           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
195       uid_ = b;
196       return b;
197     } else {
198       return (com.google.protobuf.ByteString) ref;
199     }
200   }
201 
202   public static final int GENERATION_FIELD_NUMBER = 3;
203   private long generation_ = 0L;
204   /**
205    *
206    *
207    * <pre>
208    * Output only. A number that monotonically increases every time the user
209    * modifies the desired state.
210    * </pre>
211    *
212    * <code>int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
213    *
214    * @return The generation.
215    */
216   @java.lang.Override
getGeneration()217   public long getGeneration() {
218     return generation_;
219   }
220 
221   public static final int LABELS_FIELD_NUMBER = 4;
222 
223   private static final class LabelsDefaultEntryHolder {
224     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
225         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
226             com.google.cloud.run.v2.RevisionProto
227                 .internal_static_google_cloud_run_v2_Revision_LabelsEntry_descriptor,
228             com.google.protobuf.WireFormat.FieldType.STRING,
229             "",
230             com.google.protobuf.WireFormat.FieldType.STRING,
231             "");
232   }
233 
234   @SuppressWarnings("serial")
235   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
236 
internalGetLabels()237   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
238     if (labels_ == null) {
239       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
240     }
241     return labels_;
242   }
243 
getLabelsCount()244   public int getLabelsCount() {
245     return internalGetLabels().getMap().size();
246   }
247   /**
248    *
249    *
250    * <pre>
251    * Output only. Unstructured key value map that can be used to organize and
252    * categorize objects. User-provided labels are shared with Google's billing
253    * system, so they can be used to filter, or break down billing charges by
254    * team, component, environment, state, etc. For more information, visit
255    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
256    * https://cloud.google.com/run/docs/configuring/labels.
257    * </pre>
258    *
259    * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
260    */
261   @java.lang.Override
containsLabels(java.lang.String key)262   public boolean containsLabels(java.lang.String key) {
263     if (key == null) {
264       throw new NullPointerException("map key");
265     }
266     return internalGetLabels().getMap().containsKey(key);
267   }
268   /** Use {@link #getLabelsMap()} instead. */
269   @java.lang.Override
270   @java.lang.Deprecated
getLabels()271   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
272     return getLabelsMap();
273   }
274   /**
275    *
276    *
277    * <pre>
278    * Output only. Unstructured key value map that can be used to organize and
279    * categorize objects. User-provided labels are shared with Google's billing
280    * system, so they can be used to filter, or break down billing charges by
281    * team, component, environment, state, etc. For more information, visit
282    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
283    * https://cloud.google.com/run/docs/configuring/labels.
284    * </pre>
285    *
286    * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
287    */
288   @java.lang.Override
getLabelsMap()289   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
290     return internalGetLabels().getMap();
291   }
292   /**
293    *
294    *
295    * <pre>
296    * Output only. Unstructured key value map that can be used to organize and
297    * categorize objects. User-provided labels are shared with Google's billing
298    * system, so they can be used to filter, or break down billing charges by
299    * team, component, environment, state, etc. For more information, visit
300    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
301    * https://cloud.google.com/run/docs/configuring/labels.
302    * </pre>
303    *
304    * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
305    */
306   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)307   public /* nullable */ java.lang.String getLabelsOrDefault(
308       java.lang.String key,
309       /* nullable */
310       java.lang.String defaultValue) {
311     if (key == null) {
312       throw new NullPointerException("map key");
313     }
314     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
315     return map.containsKey(key) ? map.get(key) : defaultValue;
316   }
317   /**
318    *
319    *
320    * <pre>
321    * Output only. Unstructured key value map that can be used to organize and
322    * categorize objects. User-provided labels are shared with Google's billing
323    * system, so they can be used to filter, or break down billing charges by
324    * team, component, environment, state, etc. For more information, visit
325    * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
326    * https://cloud.google.com/run/docs/configuring/labels.
327    * </pre>
328    *
329    * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
330    */
331   @java.lang.Override
getLabelsOrThrow(java.lang.String key)332   public java.lang.String getLabelsOrThrow(java.lang.String key) {
333     if (key == null) {
334       throw new NullPointerException("map key");
335     }
336     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
337     if (!map.containsKey(key)) {
338       throw new java.lang.IllegalArgumentException();
339     }
340     return map.get(key);
341   }
342 
343   public static final int ANNOTATIONS_FIELD_NUMBER = 5;
344 
345   private static final class AnnotationsDefaultEntryHolder {
346     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
347         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
348             com.google.cloud.run.v2.RevisionProto
349                 .internal_static_google_cloud_run_v2_Revision_AnnotationsEntry_descriptor,
350             com.google.protobuf.WireFormat.FieldType.STRING,
351             "",
352             com.google.protobuf.WireFormat.FieldType.STRING,
353             "");
354   }
355 
356   @SuppressWarnings("serial")
357   private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotations_;
358 
359   private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations()360       internalGetAnnotations() {
361     if (annotations_ == null) {
362       return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
363     }
364     return annotations_;
365   }
366 
getAnnotationsCount()367   public int getAnnotationsCount() {
368     return internalGetAnnotations().getMap().size();
369   }
370   /**
371    *
372    *
373    * <pre>
374    * Output only. Unstructured key value map that may
375    * be set by external tools to store and arbitrary metadata.
376    * They are not queryable and should be preserved
377    * when modifying objects.
378    * </pre>
379    *
380    * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
381    * </code>
382    */
383   @java.lang.Override
containsAnnotations(java.lang.String key)384   public boolean containsAnnotations(java.lang.String key) {
385     if (key == null) {
386       throw new NullPointerException("map key");
387     }
388     return internalGetAnnotations().getMap().containsKey(key);
389   }
390   /** Use {@link #getAnnotationsMap()} instead. */
391   @java.lang.Override
392   @java.lang.Deprecated
getAnnotations()393   public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
394     return getAnnotationsMap();
395   }
396   /**
397    *
398    *
399    * <pre>
400    * Output only. Unstructured key value map that may
401    * be set by external tools to store and arbitrary metadata.
402    * They are not queryable and should be preserved
403    * when modifying objects.
404    * </pre>
405    *
406    * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
407    * </code>
408    */
409   @java.lang.Override
getAnnotationsMap()410   public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
411     return internalGetAnnotations().getMap();
412   }
413   /**
414    *
415    *
416    * <pre>
417    * Output only. Unstructured key value map that may
418    * be set by external tools to store and arbitrary metadata.
419    * They are not queryable and should be preserved
420    * when modifying objects.
421    * </pre>
422    *
423    * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
424    * </code>
425    */
426   @java.lang.Override
getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue)427   public /* nullable */ java.lang.String getAnnotationsOrDefault(
428       java.lang.String key,
429       /* nullable */
430       java.lang.String defaultValue) {
431     if (key == null) {
432       throw new NullPointerException("map key");
433     }
434     java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
435     return map.containsKey(key) ? map.get(key) : defaultValue;
436   }
437   /**
438    *
439    *
440    * <pre>
441    * Output only. Unstructured key value map that may
442    * be set by external tools to store and arbitrary metadata.
443    * They are not queryable and should be preserved
444    * when modifying objects.
445    * </pre>
446    *
447    * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
448    * </code>
449    */
450   @java.lang.Override
getAnnotationsOrThrow(java.lang.String key)451   public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
452     if (key == null) {
453       throw new NullPointerException("map key");
454     }
455     java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
456     if (!map.containsKey(key)) {
457       throw new java.lang.IllegalArgumentException();
458     }
459     return map.get(key);
460   }
461 
462   public static final int CREATE_TIME_FIELD_NUMBER = 6;
463   private com.google.protobuf.Timestamp createTime_;
464   /**
465    *
466    *
467    * <pre>
468    * Output only. The creation time.
469    * </pre>
470    *
471    * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
472    * </code>
473    *
474    * @return Whether the createTime field is set.
475    */
476   @java.lang.Override
hasCreateTime()477   public boolean hasCreateTime() {
478     return createTime_ != null;
479   }
480   /**
481    *
482    *
483    * <pre>
484    * Output only. The creation time.
485    * </pre>
486    *
487    * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
488    * </code>
489    *
490    * @return The createTime.
491    */
492   @java.lang.Override
getCreateTime()493   public com.google.protobuf.Timestamp getCreateTime() {
494     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
495   }
496   /**
497    *
498    *
499    * <pre>
500    * Output only. The creation time.
501    * </pre>
502    *
503    * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
504    * </code>
505    */
506   @java.lang.Override
getCreateTimeOrBuilder()507   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
508     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
509   }
510 
511   public static final int UPDATE_TIME_FIELD_NUMBER = 7;
512   private com.google.protobuf.Timestamp updateTime_;
513   /**
514    *
515    *
516    * <pre>
517    * Output only. The last-modified time.
518    * </pre>
519    *
520    * <code>.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
521    * </code>
522    *
523    * @return Whether the updateTime field is set.
524    */
525   @java.lang.Override
hasUpdateTime()526   public boolean hasUpdateTime() {
527     return updateTime_ != null;
528   }
529   /**
530    *
531    *
532    * <pre>
533    * Output only. The last-modified time.
534    * </pre>
535    *
536    * <code>.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
537    * </code>
538    *
539    * @return The updateTime.
540    */
541   @java.lang.Override
getUpdateTime()542   public com.google.protobuf.Timestamp getUpdateTime() {
543     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
544   }
545   /**
546    *
547    *
548    * <pre>
549    * Output only. The last-modified time.
550    * </pre>
551    *
552    * <code>.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
553    * </code>
554    */
555   @java.lang.Override
getUpdateTimeOrBuilder()556   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
557     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
558   }
559 
560   public static final int DELETE_TIME_FIELD_NUMBER = 8;
561   private com.google.protobuf.Timestamp deleteTime_;
562   /**
563    *
564    *
565    * <pre>
566    * Output only. For a deleted resource, the deletion time. It is only
567    * populated as a response to a Delete request.
568    * </pre>
569    *
570    * <code>.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
571    * </code>
572    *
573    * @return Whether the deleteTime field is set.
574    */
575   @java.lang.Override
hasDeleteTime()576   public boolean hasDeleteTime() {
577     return deleteTime_ != null;
578   }
579   /**
580    *
581    *
582    * <pre>
583    * Output only. For a deleted resource, the deletion time. It is only
584    * populated as a response to a Delete request.
585    * </pre>
586    *
587    * <code>.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
588    * </code>
589    *
590    * @return The deleteTime.
591    */
592   @java.lang.Override
getDeleteTime()593   public com.google.protobuf.Timestamp getDeleteTime() {
594     return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
595   }
596   /**
597    *
598    *
599    * <pre>
600    * Output only. For a deleted resource, the deletion time. It is only
601    * populated as a response to a Delete request.
602    * </pre>
603    *
604    * <code>.google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
605    * </code>
606    */
607   @java.lang.Override
getDeleteTimeOrBuilder()608   public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
609     return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_;
610   }
611 
612   public static final int EXPIRE_TIME_FIELD_NUMBER = 9;
613   private com.google.protobuf.Timestamp expireTime_;
614   /**
615    *
616    *
617    * <pre>
618    * Output only. For a deleted resource, the time after which it will be
619    * permamently deleted. It is only populated as a response to a Delete
620    * request.
621    * </pre>
622    *
623    * <code>.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
624    * </code>
625    *
626    * @return Whether the expireTime field is set.
627    */
628   @java.lang.Override
hasExpireTime()629   public boolean hasExpireTime() {
630     return expireTime_ != null;
631   }
632   /**
633    *
634    *
635    * <pre>
636    * Output only. For a deleted resource, the time after which it will be
637    * permamently deleted. It is only populated as a response to a Delete
638    * request.
639    * </pre>
640    *
641    * <code>.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
642    * </code>
643    *
644    * @return The expireTime.
645    */
646   @java.lang.Override
getExpireTime()647   public com.google.protobuf.Timestamp getExpireTime() {
648     return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
649   }
650   /**
651    *
652    *
653    * <pre>
654    * Output only. For a deleted resource, the time after which it will be
655    * permamently deleted. It is only populated as a response to a Delete
656    * request.
657    * </pre>
658    *
659    * <code>.google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
660    * </code>
661    */
662   @java.lang.Override
getExpireTimeOrBuilder()663   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
664     return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
665   }
666 
667   public static final int LAUNCH_STAGE_FIELD_NUMBER = 10;
668   private int launchStage_ = 0;
669   /**
670    *
671    *
672    * <pre>
673    * The least stable launch stage needed to create this resource, as defined by
674    * [Google Cloud Platform Launch
675    * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
676    * `ALPHA`, `BETA`, and `GA`.
677    * &lt;p&gt;Note that this value might not be what was used
678    * as input. For example, if ALPHA was provided as input in the parent
679    * resource, but only BETA and GA-level features are were, this field will be
680    * BETA.
681    * </pre>
682    *
683    * <code>.google.api.LaunchStage launch_stage = 10;</code>
684    *
685    * @return The enum numeric value on the wire for launchStage.
686    */
687   @java.lang.Override
getLaunchStageValue()688   public int getLaunchStageValue() {
689     return launchStage_;
690   }
691   /**
692    *
693    *
694    * <pre>
695    * The least stable launch stage needed to create this resource, as defined by
696    * [Google Cloud Platform Launch
697    * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
698    * `ALPHA`, `BETA`, and `GA`.
699    * &lt;p&gt;Note that this value might not be what was used
700    * as input. For example, if ALPHA was provided as input in the parent
701    * resource, but only BETA and GA-level features are were, this field will be
702    * BETA.
703    * </pre>
704    *
705    * <code>.google.api.LaunchStage launch_stage = 10;</code>
706    *
707    * @return The launchStage.
708    */
709   @java.lang.Override
getLaunchStage()710   public com.google.api.LaunchStage getLaunchStage() {
711     com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
712     return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
713   }
714 
715   public static final int SERVICE_FIELD_NUMBER = 11;
716 
717   @SuppressWarnings("serial")
718   private volatile java.lang.Object service_ = "";
719   /**
720    *
721    *
722    * <pre>
723    * Output only. The name of the parent service.
724    * </pre>
725    *
726    * <code>
727    * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
728    * </code>
729    *
730    * @return The service.
731    */
732   @java.lang.Override
getService()733   public java.lang.String getService() {
734     java.lang.Object ref = service_;
735     if (ref instanceof java.lang.String) {
736       return (java.lang.String) ref;
737     } else {
738       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
739       java.lang.String s = bs.toStringUtf8();
740       service_ = s;
741       return s;
742     }
743   }
744   /**
745    *
746    *
747    * <pre>
748    * Output only. The name of the parent service.
749    * </pre>
750    *
751    * <code>
752    * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
753    * </code>
754    *
755    * @return The bytes for service.
756    */
757   @java.lang.Override
getServiceBytes()758   public com.google.protobuf.ByteString getServiceBytes() {
759     java.lang.Object ref = service_;
760     if (ref instanceof java.lang.String) {
761       com.google.protobuf.ByteString b =
762           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
763       service_ = b;
764       return b;
765     } else {
766       return (com.google.protobuf.ByteString) ref;
767     }
768   }
769 
770   public static final int SCALING_FIELD_NUMBER = 12;
771   private com.google.cloud.run.v2.RevisionScaling scaling_;
772   /**
773    *
774    *
775    * <pre>
776    * Scaling settings for this revision.
777    * </pre>
778    *
779    * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
780    *
781    * @return Whether the scaling field is set.
782    */
783   @java.lang.Override
hasScaling()784   public boolean hasScaling() {
785     return scaling_ != null;
786   }
787   /**
788    *
789    *
790    * <pre>
791    * Scaling settings for this revision.
792    * </pre>
793    *
794    * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
795    *
796    * @return The scaling.
797    */
798   @java.lang.Override
getScaling()799   public com.google.cloud.run.v2.RevisionScaling getScaling() {
800     return scaling_ == null
801         ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance()
802         : scaling_;
803   }
804   /**
805    *
806    *
807    * <pre>
808    * Scaling settings for this revision.
809    * </pre>
810    *
811    * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
812    */
813   @java.lang.Override
getScalingOrBuilder()814   public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() {
815     return scaling_ == null
816         ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance()
817         : scaling_;
818   }
819 
820   public static final int VPC_ACCESS_FIELD_NUMBER = 13;
821   private com.google.cloud.run.v2.VpcAccess vpcAccess_;
822   /**
823    *
824    *
825    * <pre>
826    * VPC Access configuration for this Revision. For more information, visit
827    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
828    * </pre>
829    *
830    * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
831    *
832    * @return Whether the vpcAccess field is set.
833    */
834   @java.lang.Override
hasVpcAccess()835   public boolean hasVpcAccess() {
836     return vpcAccess_ != null;
837   }
838   /**
839    *
840    *
841    * <pre>
842    * VPC Access configuration for this Revision. For more information, visit
843    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
844    * </pre>
845    *
846    * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
847    *
848    * @return The vpcAccess.
849    */
850   @java.lang.Override
getVpcAccess()851   public com.google.cloud.run.v2.VpcAccess getVpcAccess() {
852     return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_;
853   }
854   /**
855    *
856    *
857    * <pre>
858    * VPC Access configuration for this Revision. For more information, visit
859    * https://cloud.google.com/run/docs/configuring/connecting-vpc.
860    * </pre>
861    *
862    * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
863    */
864   @java.lang.Override
getVpcAccessOrBuilder()865   public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
866     return vpcAccess_ == null ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance() : vpcAccess_;
867   }
868 
869   public static final int MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER = 34;
870   private int maxInstanceRequestConcurrency_ = 0;
871   /**
872    *
873    *
874    * <pre>
875    * Sets the maximum number of requests that each serving instance can receive.
876    * </pre>
877    *
878    * <code>int32 max_instance_request_concurrency = 34;</code>
879    *
880    * @return The maxInstanceRequestConcurrency.
881    */
882   @java.lang.Override
getMaxInstanceRequestConcurrency()883   public int getMaxInstanceRequestConcurrency() {
884     return maxInstanceRequestConcurrency_;
885   }
886 
887   public static final int TIMEOUT_FIELD_NUMBER = 15;
888   private com.google.protobuf.Duration timeout_;
889   /**
890    *
891    *
892    * <pre>
893    * Max allowed time for an instance to respond to a request.
894    * </pre>
895    *
896    * <code>.google.protobuf.Duration timeout = 15;</code>
897    *
898    * @return Whether the timeout field is set.
899    */
900   @java.lang.Override
hasTimeout()901   public boolean hasTimeout() {
902     return timeout_ != null;
903   }
904   /**
905    *
906    *
907    * <pre>
908    * Max allowed time for an instance to respond to a request.
909    * </pre>
910    *
911    * <code>.google.protobuf.Duration timeout = 15;</code>
912    *
913    * @return The timeout.
914    */
915   @java.lang.Override
getTimeout()916   public com.google.protobuf.Duration getTimeout() {
917     return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
918   }
919   /**
920    *
921    *
922    * <pre>
923    * Max allowed time for an instance to respond to a request.
924    * </pre>
925    *
926    * <code>.google.protobuf.Duration timeout = 15;</code>
927    */
928   @java.lang.Override
getTimeoutOrBuilder()929   public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
930     return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
931   }
932 
933   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 16;
934 
935   @SuppressWarnings("serial")
936   private volatile java.lang.Object serviceAccount_ = "";
937   /**
938    *
939    *
940    * <pre>
941    * Email address of the IAM service account associated with the revision of
942    * the service. The service account represents the identity of the running
943    * revision, and determines what permissions the revision has.
944    * </pre>
945    *
946    * <code>string service_account = 16;</code>
947    *
948    * @return The serviceAccount.
949    */
950   @java.lang.Override
getServiceAccount()951   public java.lang.String getServiceAccount() {
952     java.lang.Object ref = serviceAccount_;
953     if (ref instanceof java.lang.String) {
954       return (java.lang.String) ref;
955     } else {
956       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
957       java.lang.String s = bs.toStringUtf8();
958       serviceAccount_ = s;
959       return s;
960     }
961   }
962   /**
963    *
964    *
965    * <pre>
966    * Email address of the IAM service account associated with the revision of
967    * the service. The service account represents the identity of the running
968    * revision, and determines what permissions the revision has.
969    * </pre>
970    *
971    * <code>string service_account = 16;</code>
972    *
973    * @return The bytes for serviceAccount.
974    */
975   @java.lang.Override
getServiceAccountBytes()976   public com.google.protobuf.ByteString getServiceAccountBytes() {
977     java.lang.Object ref = serviceAccount_;
978     if (ref instanceof java.lang.String) {
979       com.google.protobuf.ByteString b =
980           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
981       serviceAccount_ = b;
982       return b;
983     } else {
984       return (com.google.protobuf.ByteString) ref;
985     }
986   }
987 
988   public static final int CONTAINERS_FIELD_NUMBER = 17;
989 
990   @SuppressWarnings("serial")
991   private java.util.List<com.google.cloud.run.v2.Container> containers_;
992   /**
993    *
994    *
995    * <pre>
996    * Holds the single container that defines the unit of execution for this
997    * Revision.
998    * </pre>
999    *
1000    * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
1001    */
1002   @java.lang.Override
getContainersList()1003   public java.util.List<com.google.cloud.run.v2.Container> getContainersList() {
1004     return containers_;
1005   }
1006   /**
1007    *
1008    *
1009    * <pre>
1010    * Holds the single container that defines the unit of execution for this
1011    * Revision.
1012    * </pre>
1013    *
1014    * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
1015    */
1016   @java.lang.Override
1017   public java.util.List<? extends com.google.cloud.run.v2.ContainerOrBuilder>
getContainersOrBuilderList()1018       getContainersOrBuilderList() {
1019     return containers_;
1020   }
1021   /**
1022    *
1023    *
1024    * <pre>
1025    * Holds the single container that defines the unit of execution for this
1026    * Revision.
1027    * </pre>
1028    *
1029    * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
1030    */
1031   @java.lang.Override
getContainersCount()1032   public int getContainersCount() {
1033     return containers_.size();
1034   }
1035   /**
1036    *
1037    *
1038    * <pre>
1039    * Holds the single container that defines the unit of execution for this
1040    * Revision.
1041    * </pre>
1042    *
1043    * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
1044    */
1045   @java.lang.Override
getContainers(int index)1046   public com.google.cloud.run.v2.Container getContainers(int index) {
1047     return containers_.get(index);
1048   }
1049   /**
1050    *
1051    *
1052    * <pre>
1053    * Holds the single container that defines the unit of execution for this
1054    * Revision.
1055    * </pre>
1056    *
1057    * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
1058    */
1059   @java.lang.Override
getContainersOrBuilder(int index)1060   public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
1061     return containers_.get(index);
1062   }
1063 
1064   public static final int VOLUMES_FIELD_NUMBER = 18;
1065 
1066   @SuppressWarnings("serial")
1067   private java.util.List<com.google.cloud.run.v2.Volume> volumes_;
1068   /**
1069    *
1070    *
1071    * <pre>
1072    * A list of Volumes to make available to containers.
1073    * </pre>
1074    *
1075    * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
1076    */
1077   @java.lang.Override
getVolumesList()1078   public java.util.List<com.google.cloud.run.v2.Volume> getVolumesList() {
1079     return volumes_;
1080   }
1081   /**
1082    *
1083    *
1084    * <pre>
1085    * A list of Volumes to make available to containers.
1086    * </pre>
1087    *
1088    * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
1089    */
1090   @java.lang.Override
1091   public java.util.List<? extends com.google.cloud.run.v2.VolumeOrBuilder>
getVolumesOrBuilderList()1092       getVolumesOrBuilderList() {
1093     return volumes_;
1094   }
1095   /**
1096    *
1097    *
1098    * <pre>
1099    * A list of Volumes to make available to containers.
1100    * </pre>
1101    *
1102    * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
1103    */
1104   @java.lang.Override
getVolumesCount()1105   public int getVolumesCount() {
1106     return volumes_.size();
1107   }
1108   /**
1109    *
1110    *
1111    * <pre>
1112    * A list of Volumes to make available to containers.
1113    * </pre>
1114    *
1115    * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
1116    */
1117   @java.lang.Override
getVolumes(int index)1118   public com.google.cloud.run.v2.Volume getVolumes(int index) {
1119     return volumes_.get(index);
1120   }
1121   /**
1122    *
1123    *
1124    * <pre>
1125    * A list of Volumes to make available to containers.
1126    * </pre>
1127    *
1128    * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
1129    */
1130   @java.lang.Override
getVolumesOrBuilder(int index)1131   public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) {
1132     return volumes_.get(index);
1133   }
1134 
1135   public static final int EXECUTION_ENVIRONMENT_FIELD_NUMBER = 20;
1136   private int executionEnvironment_ = 0;
1137   /**
1138    *
1139    *
1140    * <pre>
1141    * The execution environment being used to host this Revision.
1142    * </pre>
1143    *
1144    * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
1145    *
1146    * @return The enum numeric value on the wire for executionEnvironment.
1147    */
1148   @java.lang.Override
getExecutionEnvironmentValue()1149   public int getExecutionEnvironmentValue() {
1150     return executionEnvironment_;
1151   }
1152   /**
1153    *
1154    *
1155    * <pre>
1156    * The execution environment being used to host this Revision.
1157    * </pre>
1158    *
1159    * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
1160    *
1161    * @return The executionEnvironment.
1162    */
1163   @java.lang.Override
getExecutionEnvironment()1164   public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
1165     com.google.cloud.run.v2.ExecutionEnvironment result =
1166         com.google.cloud.run.v2.ExecutionEnvironment.forNumber(executionEnvironment_);
1167     return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result;
1168   }
1169 
1170   public static final int ENCRYPTION_KEY_FIELD_NUMBER = 21;
1171 
1172   @SuppressWarnings("serial")
1173   private volatile java.lang.Object encryptionKey_ = "";
1174   /**
1175    *
1176    *
1177    * <pre>
1178    * A reference to a customer managed encryption key (CMEK) to use to encrypt
1179    * this container image. For more information, go to
1180    * https://cloud.google.com/run/docs/securing/using-cmek
1181    * </pre>
1182    *
1183    * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
1184    *
1185    * @return The encryptionKey.
1186    */
1187   @java.lang.Override
getEncryptionKey()1188   public java.lang.String getEncryptionKey() {
1189     java.lang.Object ref = encryptionKey_;
1190     if (ref instanceof java.lang.String) {
1191       return (java.lang.String) ref;
1192     } else {
1193       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1194       java.lang.String s = bs.toStringUtf8();
1195       encryptionKey_ = s;
1196       return s;
1197     }
1198   }
1199   /**
1200    *
1201    *
1202    * <pre>
1203    * A reference to a customer managed encryption key (CMEK) to use to encrypt
1204    * this container image. For more information, go to
1205    * https://cloud.google.com/run/docs/securing/using-cmek
1206    * </pre>
1207    *
1208    * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
1209    *
1210    * @return The bytes for encryptionKey.
1211    */
1212   @java.lang.Override
getEncryptionKeyBytes()1213   public com.google.protobuf.ByteString getEncryptionKeyBytes() {
1214     java.lang.Object ref = encryptionKey_;
1215     if (ref instanceof java.lang.String) {
1216       com.google.protobuf.ByteString b =
1217           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1218       encryptionKey_ = b;
1219       return b;
1220     } else {
1221       return (com.google.protobuf.ByteString) ref;
1222     }
1223   }
1224 
1225   public static final int ENCRYPTION_KEY_REVOCATION_ACTION_FIELD_NUMBER = 23;
1226   private int encryptionKeyRevocationAction_ = 0;
1227   /**
1228    *
1229    *
1230    * <pre>
1231    * The action to take if the encryption key is revoked.
1232    * </pre>
1233    *
1234    * <code>.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
1235    * </code>
1236    *
1237    * @return The enum numeric value on the wire for encryptionKeyRevocationAction.
1238    */
1239   @java.lang.Override
getEncryptionKeyRevocationActionValue()1240   public int getEncryptionKeyRevocationActionValue() {
1241     return encryptionKeyRevocationAction_;
1242   }
1243   /**
1244    *
1245    *
1246    * <pre>
1247    * The action to take if the encryption key is revoked.
1248    * </pre>
1249    *
1250    * <code>.google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
1251    * </code>
1252    *
1253    * @return The encryptionKeyRevocationAction.
1254    */
1255   @java.lang.Override
getEncryptionKeyRevocationAction()1256   public com.google.cloud.run.v2.EncryptionKeyRevocationAction getEncryptionKeyRevocationAction() {
1257     com.google.cloud.run.v2.EncryptionKeyRevocationAction result =
1258         com.google.cloud.run.v2.EncryptionKeyRevocationAction.forNumber(
1259             encryptionKeyRevocationAction_);
1260     return result == null
1261         ? com.google.cloud.run.v2.EncryptionKeyRevocationAction.UNRECOGNIZED
1262         : result;
1263   }
1264 
1265   public static final int ENCRYPTION_KEY_SHUTDOWN_DURATION_FIELD_NUMBER = 24;
1266   private com.google.protobuf.Duration encryptionKeyShutdownDuration_;
1267   /**
1268    *
1269    *
1270    * <pre>
1271    * If encryption_key_revocation_action is SHUTDOWN, the duration before
1272    * shutting down all instances. The minimum increment is 1 hour.
1273    * </pre>
1274    *
1275    * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
1276    *
1277    * @return Whether the encryptionKeyShutdownDuration field is set.
1278    */
1279   @java.lang.Override
hasEncryptionKeyShutdownDuration()1280   public boolean hasEncryptionKeyShutdownDuration() {
1281     return encryptionKeyShutdownDuration_ != null;
1282   }
1283   /**
1284    *
1285    *
1286    * <pre>
1287    * If encryption_key_revocation_action is SHUTDOWN, the duration before
1288    * shutting down all instances. The minimum increment is 1 hour.
1289    * </pre>
1290    *
1291    * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
1292    *
1293    * @return The encryptionKeyShutdownDuration.
1294    */
1295   @java.lang.Override
getEncryptionKeyShutdownDuration()1296   public com.google.protobuf.Duration getEncryptionKeyShutdownDuration() {
1297     return encryptionKeyShutdownDuration_ == null
1298         ? com.google.protobuf.Duration.getDefaultInstance()
1299         : encryptionKeyShutdownDuration_;
1300   }
1301   /**
1302    *
1303    *
1304    * <pre>
1305    * If encryption_key_revocation_action is SHUTDOWN, the duration before
1306    * shutting down all instances. The minimum increment is 1 hour.
1307    * </pre>
1308    *
1309    * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
1310    */
1311   @java.lang.Override
getEncryptionKeyShutdownDurationOrBuilder()1312   public com.google.protobuf.DurationOrBuilder getEncryptionKeyShutdownDurationOrBuilder() {
1313     return encryptionKeyShutdownDuration_ == null
1314         ? com.google.protobuf.Duration.getDefaultInstance()
1315         : encryptionKeyShutdownDuration_;
1316   }
1317 
1318   public static final int RECONCILING_FIELD_NUMBER = 30;
1319   private boolean reconciling_ = false;
1320   /**
1321    *
1322    *
1323    * <pre>
1324    * Output only. Indicates whether the resource's reconciliation is still in
1325    * progress. See comments in `Service.reconciling` for additional information
1326    * on reconciliation process in Cloud Run.
1327    * </pre>
1328    *
1329    * <code>bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1330    *
1331    * @return The reconciling.
1332    */
1333   @java.lang.Override
getReconciling()1334   public boolean getReconciling() {
1335     return reconciling_;
1336   }
1337 
1338   public static final int CONDITIONS_FIELD_NUMBER = 31;
1339 
1340   @SuppressWarnings("serial")
1341   private java.util.List<com.google.cloud.run.v2.Condition> conditions_;
1342   /**
1343    *
1344    *
1345    * <pre>
1346    * Output only. The Condition of this Revision, containing its readiness
1347    * status, and detailed error information in case it did not reach a serving
1348    * state.
1349    * </pre>
1350    *
1351    * <code>
1352    * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
1353    * </code>
1354    */
1355   @java.lang.Override
getConditionsList()1356   public java.util.List<com.google.cloud.run.v2.Condition> getConditionsList() {
1357     return conditions_;
1358   }
1359   /**
1360    *
1361    *
1362    * <pre>
1363    * Output only. The Condition of this Revision, containing its readiness
1364    * status, and detailed error information in case it did not reach a serving
1365    * state.
1366    * </pre>
1367    *
1368    * <code>
1369    * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
1370    * </code>
1371    */
1372   @java.lang.Override
1373   public java.util.List<? extends com.google.cloud.run.v2.ConditionOrBuilder>
getConditionsOrBuilderList()1374       getConditionsOrBuilderList() {
1375     return conditions_;
1376   }
1377   /**
1378    *
1379    *
1380    * <pre>
1381    * Output only. The Condition of this Revision, containing its readiness
1382    * status, and detailed error information in case it did not reach a serving
1383    * state.
1384    * </pre>
1385    *
1386    * <code>
1387    * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
1388    * </code>
1389    */
1390   @java.lang.Override
getConditionsCount()1391   public int getConditionsCount() {
1392     return conditions_.size();
1393   }
1394   /**
1395    *
1396    *
1397    * <pre>
1398    * Output only. The Condition of this Revision, containing its readiness
1399    * status, and detailed error information in case it did not reach a serving
1400    * state.
1401    * </pre>
1402    *
1403    * <code>
1404    * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
1405    * </code>
1406    */
1407   @java.lang.Override
getConditions(int index)1408   public com.google.cloud.run.v2.Condition getConditions(int index) {
1409     return conditions_.get(index);
1410   }
1411   /**
1412    *
1413    *
1414    * <pre>
1415    * Output only. The Condition of this Revision, containing its readiness
1416    * status, and detailed error information in case it did not reach a serving
1417    * state.
1418    * </pre>
1419    *
1420    * <code>
1421    * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
1422    * </code>
1423    */
1424   @java.lang.Override
getConditionsOrBuilder(int index)1425   public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) {
1426     return conditions_.get(index);
1427   }
1428 
1429   public static final int OBSERVED_GENERATION_FIELD_NUMBER = 32;
1430   private long observedGeneration_ = 0L;
1431   /**
1432    *
1433    *
1434    * <pre>
1435    * Output only. The generation of this Revision currently serving traffic. See
1436    * comments in `reconciling` for additional information on reconciliation
1437    * process in Cloud Run.
1438    * </pre>
1439    *
1440    * <code>int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1441    *
1442    * @return The observedGeneration.
1443    */
1444   @java.lang.Override
getObservedGeneration()1445   public long getObservedGeneration() {
1446     return observedGeneration_;
1447   }
1448 
1449   public static final int LOG_URI_FIELD_NUMBER = 33;
1450 
1451   @SuppressWarnings("serial")
1452   private volatile java.lang.Object logUri_ = "";
1453   /**
1454    *
1455    *
1456    * <pre>
1457    * Output only. The Google Console URI to obtain logs for the Revision.
1458    * </pre>
1459    *
1460    * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1461    *
1462    * @return The logUri.
1463    */
1464   @java.lang.Override
getLogUri()1465   public java.lang.String getLogUri() {
1466     java.lang.Object ref = logUri_;
1467     if (ref instanceof java.lang.String) {
1468       return (java.lang.String) ref;
1469     } else {
1470       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1471       java.lang.String s = bs.toStringUtf8();
1472       logUri_ = s;
1473       return s;
1474     }
1475   }
1476   /**
1477    *
1478    *
1479    * <pre>
1480    * Output only. The Google Console URI to obtain logs for the Revision.
1481    * </pre>
1482    *
1483    * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1484    *
1485    * @return The bytes for logUri.
1486    */
1487   @java.lang.Override
getLogUriBytes()1488   public com.google.protobuf.ByteString getLogUriBytes() {
1489     java.lang.Object ref = logUri_;
1490     if (ref instanceof java.lang.String) {
1491       com.google.protobuf.ByteString b =
1492           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1493       logUri_ = b;
1494       return b;
1495     } else {
1496       return (com.google.protobuf.ByteString) ref;
1497     }
1498   }
1499 
1500   public static final int SATISFIES_PZS_FIELD_NUMBER = 37;
1501   private boolean satisfiesPzs_ = false;
1502   /**
1503    *
1504    *
1505    * <pre>
1506    * Output only. Reserved for future use.
1507    * </pre>
1508    *
1509    * <code>bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1510    *
1511    * @return The satisfiesPzs.
1512    */
1513   @java.lang.Override
getSatisfiesPzs()1514   public boolean getSatisfiesPzs() {
1515     return satisfiesPzs_;
1516   }
1517 
1518   public static final int SESSION_AFFINITY_FIELD_NUMBER = 38;
1519   private boolean sessionAffinity_ = false;
1520   /**
1521    *
1522    *
1523    * <pre>
1524    * Enable session affinity.
1525    * </pre>
1526    *
1527    * <code>bool session_affinity = 38;</code>
1528    *
1529    * @return The sessionAffinity.
1530    */
1531   @java.lang.Override
getSessionAffinity()1532   public boolean getSessionAffinity() {
1533     return sessionAffinity_;
1534   }
1535 
1536   public static final int ETAG_FIELD_NUMBER = 99;
1537 
1538   @SuppressWarnings("serial")
1539   private volatile java.lang.Object etag_ = "";
1540   /**
1541    *
1542    *
1543    * <pre>
1544    * Output only. A system-generated fingerprint for this version of the
1545    * resource. May be used to detect modification conflict during updates.
1546    * </pre>
1547    *
1548    * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1549    *
1550    * @return The etag.
1551    */
1552   @java.lang.Override
getEtag()1553   public java.lang.String getEtag() {
1554     java.lang.Object ref = etag_;
1555     if (ref instanceof java.lang.String) {
1556       return (java.lang.String) ref;
1557     } else {
1558       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1559       java.lang.String s = bs.toStringUtf8();
1560       etag_ = s;
1561       return s;
1562     }
1563   }
1564   /**
1565    *
1566    *
1567    * <pre>
1568    * Output only. A system-generated fingerprint for this version of the
1569    * resource. May be used to detect modification conflict during updates.
1570    * </pre>
1571    *
1572    * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
1573    *
1574    * @return The bytes for etag.
1575    */
1576   @java.lang.Override
getEtagBytes()1577   public com.google.protobuf.ByteString getEtagBytes() {
1578     java.lang.Object ref = etag_;
1579     if (ref instanceof java.lang.String) {
1580       com.google.protobuf.ByteString b =
1581           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1582       etag_ = b;
1583       return b;
1584     } else {
1585       return (com.google.protobuf.ByteString) ref;
1586     }
1587   }
1588 
1589   private byte memoizedIsInitialized = -1;
1590 
1591   @java.lang.Override
isInitialized()1592   public final boolean isInitialized() {
1593     byte isInitialized = memoizedIsInitialized;
1594     if (isInitialized == 1) return true;
1595     if (isInitialized == 0) return false;
1596 
1597     memoizedIsInitialized = 1;
1598     return true;
1599   }
1600 
1601   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1602   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1603     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1604       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
1605     }
1606     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
1607       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_);
1608     }
1609     if (generation_ != 0L) {
1610       output.writeInt64(3, generation_);
1611     }
1612     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1613         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
1614     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
1615         output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5);
1616     if (createTime_ != null) {
1617       output.writeMessage(6, getCreateTime());
1618     }
1619     if (updateTime_ != null) {
1620       output.writeMessage(7, getUpdateTime());
1621     }
1622     if (deleteTime_ != null) {
1623       output.writeMessage(8, getDeleteTime());
1624     }
1625     if (expireTime_ != null) {
1626       output.writeMessage(9, getExpireTime());
1627     }
1628     if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
1629       output.writeEnum(10, launchStage_);
1630     }
1631     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
1632       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, service_);
1633     }
1634     if (scaling_ != null) {
1635       output.writeMessage(12, getScaling());
1636     }
1637     if (vpcAccess_ != null) {
1638       output.writeMessage(13, getVpcAccess());
1639     }
1640     if (timeout_ != null) {
1641       output.writeMessage(15, getTimeout());
1642     }
1643     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
1644       com.google.protobuf.GeneratedMessageV3.writeString(output, 16, serviceAccount_);
1645     }
1646     for (int i = 0; i < containers_.size(); i++) {
1647       output.writeMessage(17, containers_.get(i));
1648     }
1649     for (int i = 0; i < volumes_.size(); i++) {
1650       output.writeMessage(18, volumes_.get(i));
1651     }
1652     if (executionEnvironment_
1653         != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED
1654             .getNumber()) {
1655       output.writeEnum(20, executionEnvironment_);
1656     }
1657     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) {
1658       com.google.protobuf.GeneratedMessageV3.writeString(output, 21, encryptionKey_);
1659     }
1660     if (encryptionKeyRevocationAction_
1661         != com.google.cloud.run.v2.EncryptionKeyRevocationAction
1662             .ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED
1663             .getNumber()) {
1664       output.writeEnum(23, encryptionKeyRevocationAction_);
1665     }
1666     if (encryptionKeyShutdownDuration_ != null) {
1667       output.writeMessage(24, getEncryptionKeyShutdownDuration());
1668     }
1669     if (reconciling_ != false) {
1670       output.writeBool(30, reconciling_);
1671     }
1672     for (int i = 0; i < conditions_.size(); i++) {
1673       output.writeMessage(31, conditions_.get(i));
1674     }
1675     if (observedGeneration_ != 0L) {
1676       output.writeInt64(32, observedGeneration_);
1677     }
1678     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) {
1679       com.google.protobuf.GeneratedMessageV3.writeString(output, 33, logUri_);
1680     }
1681     if (maxInstanceRequestConcurrency_ != 0) {
1682       output.writeInt32(34, maxInstanceRequestConcurrency_);
1683     }
1684     if (satisfiesPzs_ != false) {
1685       output.writeBool(37, satisfiesPzs_);
1686     }
1687     if (sessionAffinity_ != false) {
1688       output.writeBool(38, sessionAffinity_);
1689     }
1690     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
1691       com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_);
1692     }
1693     getUnknownFields().writeTo(output);
1694   }
1695 
1696   @java.lang.Override
getSerializedSize()1697   public int getSerializedSize() {
1698     int size = memoizedSize;
1699     if (size != -1) return size;
1700 
1701     size = 0;
1702     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
1703       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
1704     }
1705     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
1706       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_);
1707     }
1708     if (generation_ != 0L) {
1709       size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, generation_);
1710     }
1711     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1712         internalGetLabels().getMap().entrySet()) {
1713       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1714           LabelsDefaultEntryHolder.defaultEntry
1715               .newBuilderForType()
1716               .setKey(entry.getKey())
1717               .setValue(entry.getValue())
1718               .build();
1719       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
1720     }
1721     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
1722         internalGetAnnotations().getMap().entrySet()) {
1723       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotations__ =
1724           AnnotationsDefaultEntryHolder.defaultEntry
1725               .newBuilderForType()
1726               .setKey(entry.getKey())
1727               .setValue(entry.getValue())
1728               .build();
1729       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__);
1730     }
1731     if (createTime_ != null) {
1732       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
1733     }
1734     if (updateTime_ != null) {
1735       size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime());
1736     }
1737     if (deleteTime_ != null) {
1738       size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime());
1739     }
1740     if (expireTime_ != null) {
1741       size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpireTime());
1742     }
1743     if (launchStage_ != com.google.api.LaunchStage.LAUNCH_STAGE_UNSPECIFIED.getNumber()) {
1744       size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, launchStage_);
1745     }
1746     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) {
1747       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, service_);
1748     }
1749     if (scaling_ != null) {
1750       size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getScaling());
1751     }
1752     if (vpcAccess_ != null) {
1753       size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getVpcAccess());
1754     }
1755     if (timeout_ != null) {
1756       size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getTimeout());
1757     }
1758     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) {
1759       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, serviceAccount_);
1760     }
1761     for (int i = 0; i < containers_.size(); i++) {
1762       size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, containers_.get(i));
1763     }
1764     for (int i = 0; i < volumes_.size(); i++) {
1765       size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, volumes_.get(i));
1766     }
1767     if (executionEnvironment_
1768         != com.google.cloud.run.v2.ExecutionEnvironment.EXECUTION_ENVIRONMENT_UNSPECIFIED
1769             .getNumber()) {
1770       size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, executionEnvironment_);
1771     }
1772     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encryptionKey_)) {
1773       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, encryptionKey_);
1774     }
1775     if (encryptionKeyRevocationAction_
1776         != com.google.cloud.run.v2.EncryptionKeyRevocationAction
1777             .ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED
1778             .getNumber()) {
1779       size +=
1780           com.google.protobuf.CodedOutputStream.computeEnumSize(23, encryptionKeyRevocationAction_);
1781     }
1782     if (encryptionKeyShutdownDuration_ != null) {
1783       size +=
1784           com.google.protobuf.CodedOutputStream.computeMessageSize(
1785               24, getEncryptionKeyShutdownDuration());
1786     }
1787     if (reconciling_ != false) {
1788       size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, reconciling_);
1789     }
1790     for (int i = 0; i < conditions_.size(); i++) {
1791       size += com.google.protobuf.CodedOutputStream.computeMessageSize(31, conditions_.get(i));
1792     }
1793     if (observedGeneration_ != 0L) {
1794       size += com.google.protobuf.CodedOutputStream.computeInt64Size(32, observedGeneration_);
1795     }
1796     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logUri_)) {
1797       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, logUri_);
1798     }
1799     if (maxInstanceRequestConcurrency_ != 0) {
1800       size +=
1801           com.google.protobuf.CodedOutputStream.computeInt32Size(
1802               34, maxInstanceRequestConcurrency_);
1803     }
1804     if (satisfiesPzs_ != false) {
1805       size += com.google.protobuf.CodedOutputStream.computeBoolSize(37, satisfiesPzs_);
1806     }
1807     if (sessionAffinity_ != false) {
1808       size += com.google.protobuf.CodedOutputStream.computeBoolSize(38, sessionAffinity_);
1809     }
1810     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
1811       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_);
1812     }
1813     size += getUnknownFields().getSerializedSize();
1814     memoizedSize = size;
1815     return size;
1816   }
1817 
1818   @java.lang.Override
equals(final java.lang.Object obj)1819   public boolean equals(final java.lang.Object obj) {
1820     if (obj == this) {
1821       return true;
1822     }
1823     if (!(obj instanceof com.google.cloud.run.v2.Revision)) {
1824       return super.equals(obj);
1825     }
1826     com.google.cloud.run.v2.Revision other = (com.google.cloud.run.v2.Revision) obj;
1827 
1828     if (!getName().equals(other.getName())) return false;
1829     if (!getUid().equals(other.getUid())) return false;
1830     if (getGeneration() != other.getGeneration()) return false;
1831     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
1832     if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
1833     if (hasCreateTime() != other.hasCreateTime()) return false;
1834     if (hasCreateTime()) {
1835       if (!getCreateTime().equals(other.getCreateTime())) return false;
1836     }
1837     if (hasUpdateTime() != other.hasUpdateTime()) return false;
1838     if (hasUpdateTime()) {
1839       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
1840     }
1841     if (hasDeleteTime() != other.hasDeleteTime()) return false;
1842     if (hasDeleteTime()) {
1843       if (!getDeleteTime().equals(other.getDeleteTime())) return false;
1844     }
1845     if (hasExpireTime() != other.hasExpireTime()) return false;
1846     if (hasExpireTime()) {
1847       if (!getExpireTime().equals(other.getExpireTime())) return false;
1848     }
1849     if (launchStage_ != other.launchStage_) return false;
1850     if (!getService().equals(other.getService())) return false;
1851     if (hasScaling() != other.hasScaling()) return false;
1852     if (hasScaling()) {
1853       if (!getScaling().equals(other.getScaling())) return false;
1854     }
1855     if (hasVpcAccess() != other.hasVpcAccess()) return false;
1856     if (hasVpcAccess()) {
1857       if (!getVpcAccess().equals(other.getVpcAccess())) return false;
1858     }
1859     if (getMaxInstanceRequestConcurrency() != other.getMaxInstanceRequestConcurrency())
1860       return false;
1861     if (hasTimeout() != other.hasTimeout()) return false;
1862     if (hasTimeout()) {
1863       if (!getTimeout().equals(other.getTimeout())) return false;
1864     }
1865     if (!getServiceAccount().equals(other.getServiceAccount())) return false;
1866     if (!getContainersList().equals(other.getContainersList())) return false;
1867     if (!getVolumesList().equals(other.getVolumesList())) return false;
1868     if (executionEnvironment_ != other.executionEnvironment_) return false;
1869     if (!getEncryptionKey().equals(other.getEncryptionKey())) return false;
1870     if (encryptionKeyRevocationAction_ != other.encryptionKeyRevocationAction_) return false;
1871     if (hasEncryptionKeyShutdownDuration() != other.hasEncryptionKeyShutdownDuration())
1872       return false;
1873     if (hasEncryptionKeyShutdownDuration()) {
1874       if (!getEncryptionKeyShutdownDuration().equals(other.getEncryptionKeyShutdownDuration()))
1875         return false;
1876     }
1877     if (getReconciling() != other.getReconciling()) return false;
1878     if (!getConditionsList().equals(other.getConditionsList())) return false;
1879     if (getObservedGeneration() != other.getObservedGeneration()) return false;
1880     if (!getLogUri().equals(other.getLogUri())) return false;
1881     if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false;
1882     if (getSessionAffinity() != other.getSessionAffinity()) return false;
1883     if (!getEtag().equals(other.getEtag())) return false;
1884     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1885     return true;
1886   }
1887 
1888   @java.lang.Override
hashCode()1889   public int hashCode() {
1890     if (memoizedHashCode != 0) {
1891       return memoizedHashCode;
1892     }
1893     int hash = 41;
1894     hash = (19 * hash) + getDescriptor().hashCode();
1895     hash = (37 * hash) + NAME_FIELD_NUMBER;
1896     hash = (53 * hash) + getName().hashCode();
1897     hash = (37 * hash) + UID_FIELD_NUMBER;
1898     hash = (53 * hash) + getUid().hashCode();
1899     hash = (37 * hash) + GENERATION_FIELD_NUMBER;
1900     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getGeneration());
1901     if (!internalGetLabels().getMap().isEmpty()) {
1902       hash = (37 * hash) + LABELS_FIELD_NUMBER;
1903       hash = (53 * hash) + internalGetLabels().hashCode();
1904     }
1905     if (!internalGetAnnotations().getMap().isEmpty()) {
1906       hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
1907       hash = (53 * hash) + internalGetAnnotations().hashCode();
1908     }
1909     if (hasCreateTime()) {
1910       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
1911       hash = (53 * hash) + getCreateTime().hashCode();
1912     }
1913     if (hasUpdateTime()) {
1914       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
1915       hash = (53 * hash) + getUpdateTime().hashCode();
1916     }
1917     if (hasDeleteTime()) {
1918       hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER;
1919       hash = (53 * hash) + getDeleteTime().hashCode();
1920     }
1921     if (hasExpireTime()) {
1922       hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
1923       hash = (53 * hash) + getExpireTime().hashCode();
1924     }
1925     hash = (37 * hash) + LAUNCH_STAGE_FIELD_NUMBER;
1926     hash = (53 * hash) + launchStage_;
1927     hash = (37 * hash) + SERVICE_FIELD_NUMBER;
1928     hash = (53 * hash) + getService().hashCode();
1929     if (hasScaling()) {
1930       hash = (37 * hash) + SCALING_FIELD_NUMBER;
1931       hash = (53 * hash) + getScaling().hashCode();
1932     }
1933     if (hasVpcAccess()) {
1934       hash = (37 * hash) + VPC_ACCESS_FIELD_NUMBER;
1935       hash = (53 * hash) + getVpcAccess().hashCode();
1936     }
1937     hash = (37 * hash) + MAX_INSTANCE_REQUEST_CONCURRENCY_FIELD_NUMBER;
1938     hash = (53 * hash) + getMaxInstanceRequestConcurrency();
1939     if (hasTimeout()) {
1940       hash = (37 * hash) + TIMEOUT_FIELD_NUMBER;
1941       hash = (53 * hash) + getTimeout().hashCode();
1942     }
1943     hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER;
1944     hash = (53 * hash) + getServiceAccount().hashCode();
1945     if (getContainersCount() > 0) {
1946       hash = (37 * hash) + CONTAINERS_FIELD_NUMBER;
1947       hash = (53 * hash) + getContainersList().hashCode();
1948     }
1949     if (getVolumesCount() > 0) {
1950       hash = (37 * hash) + VOLUMES_FIELD_NUMBER;
1951       hash = (53 * hash) + getVolumesList().hashCode();
1952     }
1953     hash = (37 * hash) + EXECUTION_ENVIRONMENT_FIELD_NUMBER;
1954     hash = (53 * hash) + executionEnvironment_;
1955     hash = (37 * hash) + ENCRYPTION_KEY_FIELD_NUMBER;
1956     hash = (53 * hash) + getEncryptionKey().hashCode();
1957     hash = (37 * hash) + ENCRYPTION_KEY_REVOCATION_ACTION_FIELD_NUMBER;
1958     hash = (53 * hash) + encryptionKeyRevocationAction_;
1959     if (hasEncryptionKeyShutdownDuration()) {
1960       hash = (37 * hash) + ENCRYPTION_KEY_SHUTDOWN_DURATION_FIELD_NUMBER;
1961       hash = (53 * hash) + getEncryptionKeyShutdownDuration().hashCode();
1962     }
1963     hash = (37 * hash) + RECONCILING_FIELD_NUMBER;
1964     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling());
1965     if (getConditionsCount() > 0) {
1966       hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
1967       hash = (53 * hash) + getConditionsList().hashCode();
1968     }
1969     hash = (37 * hash) + OBSERVED_GENERATION_FIELD_NUMBER;
1970     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObservedGeneration());
1971     hash = (37 * hash) + LOG_URI_FIELD_NUMBER;
1972     hash = (53 * hash) + getLogUri().hashCode();
1973     hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER;
1974     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs());
1975     hash = (37 * hash) + SESSION_AFFINITY_FIELD_NUMBER;
1976     hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionAffinity());
1977     hash = (37 * hash) + ETAG_FIELD_NUMBER;
1978     hash = (53 * hash) + getEtag().hashCode();
1979     hash = (29 * hash) + getUnknownFields().hashCode();
1980     memoizedHashCode = hash;
1981     return hash;
1982   }
1983 
parseFrom(java.nio.ByteBuffer data)1984   public static com.google.cloud.run.v2.Revision parseFrom(java.nio.ByteBuffer data)
1985       throws com.google.protobuf.InvalidProtocolBufferException {
1986     return PARSER.parseFrom(data);
1987   }
1988 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1989   public static com.google.cloud.run.v2.Revision parseFrom(
1990       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1991       throws com.google.protobuf.InvalidProtocolBufferException {
1992     return PARSER.parseFrom(data, extensionRegistry);
1993   }
1994 
parseFrom(com.google.protobuf.ByteString data)1995   public static com.google.cloud.run.v2.Revision parseFrom(com.google.protobuf.ByteString data)
1996       throws com.google.protobuf.InvalidProtocolBufferException {
1997     return PARSER.parseFrom(data);
1998   }
1999 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2000   public static com.google.cloud.run.v2.Revision parseFrom(
2001       com.google.protobuf.ByteString data,
2002       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2003       throws com.google.protobuf.InvalidProtocolBufferException {
2004     return PARSER.parseFrom(data, extensionRegistry);
2005   }
2006 
parseFrom(byte[] data)2007   public static com.google.cloud.run.v2.Revision parseFrom(byte[] data)
2008       throws com.google.protobuf.InvalidProtocolBufferException {
2009     return PARSER.parseFrom(data);
2010   }
2011 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2012   public static com.google.cloud.run.v2.Revision parseFrom(
2013       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2014       throws com.google.protobuf.InvalidProtocolBufferException {
2015     return PARSER.parseFrom(data, extensionRegistry);
2016   }
2017 
parseFrom(java.io.InputStream input)2018   public static com.google.cloud.run.v2.Revision parseFrom(java.io.InputStream input)
2019       throws java.io.IOException {
2020     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2021   }
2022 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2023   public static com.google.cloud.run.v2.Revision parseFrom(
2024       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2025       throws java.io.IOException {
2026     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2027         PARSER, input, extensionRegistry);
2028   }
2029 
parseDelimitedFrom(java.io.InputStream input)2030   public static com.google.cloud.run.v2.Revision parseDelimitedFrom(java.io.InputStream input)
2031       throws java.io.IOException {
2032     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
2033   }
2034 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2035   public static com.google.cloud.run.v2.Revision parseDelimitedFrom(
2036       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2037       throws java.io.IOException {
2038     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
2039         PARSER, input, extensionRegistry);
2040   }
2041 
parseFrom( com.google.protobuf.CodedInputStream input)2042   public static com.google.cloud.run.v2.Revision parseFrom(
2043       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
2044     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
2045   }
2046 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2047   public static com.google.cloud.run.v2.Revision parseFrom(
2048       com.google.protobuf.CodedInputStream input,
2049       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2050       throws java.io.IOException {
2051     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
2052         PARSER, input, extensionRegistry);
2053   }
2054 
2055   @java.lang.Override
newBuilderForType()2056   public Builder newBuilderForType() {
2057     return newBuilder();
2058   }
2059 
newBuilder()2060   public static Builder newBuilder() {
2061     return DEFAULT_INSTANCE.toBuilder();
2062   }
2063 
newBuilder(com.google.cloud.run.v2.Revision prototype)2064   public static Builder newBuilder(com.google.cloud.run.v2.Revision prototype) {
2065     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
2066   }
2067 
2068   @java.lang.Override
toBuilder()2069   public Builder toBuilder() {
2070     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
2071   }
2072 
2073   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2074   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2075     Builder builder = new Builder(parent);
2076     return builder;
2077   }
2078   /**
2079    *
2080    *
2081    * <pre>
2082    * A Revision is an immutable snapshot of code and configuration.  A Revision
2083    * references a container image. Revisions are only created by updates to its
2084    * parent Service.
2085    * </pre>
2086    *
2087    * Protobuf type {@code google.cloud.run.v2.Revision}
2088    */
2089   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
2090       implements
2091       // @@protoc_insertion_point(builder_implements:google.cloud.run.v2.Revision)
2092       com.google.cloud.run.v2.RevisionOrBuilder {
getDescriptor()2093     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
2094       return com.google.cloud.run.v2.RevisionProto
2095           .internal_static_google_cloud_run_v2_Revision_descriptor;
2096     }
2097 
2098     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)2099     protected com.google.protobuf.MapField internalGetMapField(int number) {
2100       switch (number) {
2101         case 4:
2102           return internalGetLabels();
2103         case 5:
2104           return internalGetAnnotations();
2105         default:
2106           throw new RuntimeException("Invalid map field number: " + number);
2107       }
2108     }
2109 
2110     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)2111     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
2112       switch (number) {
2113         case 4:
2114           return internalGetMutableLabels();
2115         case 5:
2116           return internalGetMutableAnnotations();
2117         default:
2118           throw new RuntimeException("Invalid map field number: " + number);
2119       }
2120     }
2121 
2122     @java.lang.Override
2123     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()2124         internalGetFieldAccessorTable() {
2125       return com.google.cloud.run.v2.RevisionProto
2126           .internal_static_google_cloud_run_v2_Revision_fieldAccessorTable
2127           .ensureFieldAccessorsInitialized(
2128               com.google.cloud.run.v2.Revision.class,
2129               com.google.cloud.run.v2.Revision.Builder.class);
2130     }
2131 
2132     // Construct using com.google.cloud.run.v2.Revision.newBuilder()
Builder()2133     private Builder() {}
2134 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2135     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
2136       super(parent);
2137     }
2138 
2139     @java.lang.Override
clear()2140     public Builder clear() {
2141       super.clear();
2142       bitField0_ = 0;
2143       name_ = "";
2144       uid_ = "";
2145       generation_ = 0L;
2146       internalGetMutableLabels().clear();
2147       internalGetMutableAnnotations().clear();
2148       createTime_ = null;
2149       if (createTimeBuilder_ != null) {
2150         createTimeBuilder_.dispose();
2151         createTimeBuilder_ = null;
2152       }
2153       updateTime_ = null;
2154       if (updateTimeBuilder_ != null) {
2155         updateTimeBuilder_.dispose();
2156         updateTimeBuilder_ = null;
2157       }
2158       deleteTime_ = null;
2159       if (deleteTimeBuilder_ != null) {
2160         deleteTimeBuilder_.dispose();
2161         deleteTimeBuilder_ = null;
2162       }
2163       expireTime_ = null;
2164       if (expireTimeBuilder_ != null) {
2165         expireTimeBuilder_.dispose();
2166         expireTimeBuilder_ = null;
2167       }
2168       launchStage_ = 0;
2169       service_ = "";
2170       scaling_ = null;
2171       if (scalingBuilder_ != null) {
2172         scalingBuilder_.dispose();
2173         scalingBuilder_ = null;
2174       }
2175       vpcAccess_ = null;
2176       if (vpcAccessBuilder_ != null) {
2177         vpcAccessBuilder_.dispose();
2178         vpcAccessBuilder_ = null;
2179       }
2180       maxInstanceRequestConcurrency_ = 0;
2181       timeout_ = null;
2182       if (timeoutBuilder_ != null) {
2183         timeoutBuilder_.dispose();
2184         timeoutBuilder_ = null;
2185       }
2186       serviceAccount_ = "";
2187       if (containersBuilder_ == null) {
2188         containers_ = java.util.Collections.emptyList();
2189       } else {
2190         containers_ = null;
2191         containersBuilder_.clear();
2192       }
2193       bitField0_ = (bitField0_ & ~0x00010000);
2194       if (volumesBuilder_ == null) {
2195         volumes_ = java.util.Collections.emptyList();
2196       } else {
2197         volumes_ = null;
2198         volumesBuilder_.clear();
2199       }
2200       bitField0_ = (bitField0_ & ~0x00020000);
2201       executionEnvironment_ = 0;
2202       encryptionKey_ = "";
2203       encryptionKeyRevocationAction_ = 0;
2204       encryptionKeyShutdownDuration_ = null;
2205       if (encryptionKeyShutdownDurationBuilder_ != null) {
2206         encryptionKeyShutdownDurationBuilder_.dispose();
2207         encryptionKeyShutdownDurationBuilder_ = null;
2208       }
2209       reconciling_ = false;
2210       if (conditionsBuilder_ == null) {
2211         conditions_ = java.util.Collections.emptyList();
2212       } else {
2213         conditions_ = null;
2214         conditionsBuilder_.clear();
2215       }
2216       bitField0_ = (bitField0_ & ~0x00800000);
2217       observedGeneration_ = 0L;
2218       logUri_ = "";
2219       satisfiesPzs_ = false;
2220       sessionAffinity_ = false;
2221       etag_ = "";
2222       return this;
2223     }
2224 
2225     @java.lang.Override
getDescriptorForType()2226     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
2227       return com.google.cloud.run.v2.RevisionProto
2228           .internal_static_google_cloud_run_v2_Revision_descriptor;
2229     }
2230 
2231     @java.lang.Override
getDefaultInstanceForType()2232     public com.google.cloud.run.v2.Revision getDefaultInstanceForType() {
2233       return com.google.cloud.run.v2.Revision.getDefaultInstance();
2234     }
2235 
2236     @java.lang.Override
build()2237     public com.google.cloud.run.v2.Revision build() {
2238       com.google.cloud.run.v2.Revision result = buildPartial();
2239       if (!result.isInitialized()) {
2240         throw newUninitializedMessageException(result);
2241       }
2242       return result;
2243     }
2244 
2245     @java.lang.Override
buildPartial()2246     public com.google.cloud.run.v2.Revision buildPartial() {
2247       com.google.cloud.run.v2.Revision result = new com.google.cloud.run.v2.Revision(this);
2248       buildPartialRepeatedFields(result);
2249       if (bitField0_ != 0) {
2250         buildPartial0(result);
2251       }
2252       onBuilt();
2253       return result;
2254     }
2255 
buildPartialRepeatedFields(com.google.cloud.run.v2.Revision result)2256     private void buildPartialRepeatedFields(com.google.cloud.run.v2.Revision result) {
2257       if (containersBuilder_ == null) {
2258         if (((bitField0_ & 0x00010000) != 0)) {
2259           containers_ = java.util.Collections.unmodifiableList(containers_);
2260           bitField0_ = (bitField0_ & ~0x00010000);
2261         }
2262         result.containers_ = containers_;
2263       } else {
2264         result.containers_ = containersBuilder_.build();
2265       }
2266       if (volumesBuilder_ == null) {
2267         if (((bitField0_ & 0x00020000) != 0)) {
2268           volumes_ = java.util.Collections.unmodifiableList(volumes_);
2269           bitField0_ = (bitField0_ & ~0x00020000);
2270         }
2271         result.volumes_ = volumes_;
2272       } else {
2273         result.volumes_ = volumesBuilder_.build();
2274       }
2275       if (conditionsBuilder_ == null) {
2276         if (((bitField0_ & 0x00800000) != 0)) {
2277           conditions_ = java.util.Collections.unmodifiableList(conditions_);
2278           bitField0_ = (bitField0_ & ~0x00800000);
2279         }
2280         result.conditions_ = conditions_;
2281       } else {
2282         result.conditions_ = conditionsBuilder_.build();
2283       }
2284     }
2285 
buildPartial0(com.google.cloud.run.v2.Revision result)2286     private void buildPartial0(com.google.cloud.run.v2.Revision result) {
2287       int from_bitField0_ = bitField0_;
2288       if (((from_bitField0_ & 0x00000001) != 0)) {
2289         result.name_ = name_;
2290       }
2291       if (((from_bitField0_ & 0x00000002) != 0)) {
2292         result.uid_ = uid_;
2293       }
2294       if (((from_bitField0_ & 0x00000004) != 0)) {
2295         result.generation_ = generation_;
2296       }
2297       if (((from_bitField0_ & 0x00000008) != 0)) {
2298         result.labels_ = internalGetLabels();
2299         result.labels_.makeImmutable();
2300       }
2301       if (((from_bitField0_ & 0x00000010) != 0)) {
2302         result.annotations_ = internalGetAnnotations();
2303         result.annotations_.makeImmutable();
2304       }
2305       if (((from_bitField0_ & 0x00000020) != 0)) {
2306         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
2307       }
2308       if (((from_bitField0_ & 0x00000040) != 0)) {
2309         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
2310       }
2311       if (((from_bitField0_ & 0x00000080) != 0)) {
2312         result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
2313       }
2314       if (((from_bitField0_ & 0x00000100) != 0)) {
2315         result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
2316       }
2317       if (((from_bitField0_ & 0x00000200) != 0)) {
2318         result.launchStage_ = launchStage_;
2319       }
2320       if (((from_bitField0_ & 0x00000400) != 0)) {
2321         result.service_ = service_;
2322       }
2323       if (((from_bitField0_ & 0x00000800) != 0)) {
2324         result.scaling_ = scalingBuilder_ == null ? scaling_ : scalingBuilder_.build();
2325       }
2326       if (((from_bitField0_ & 0x00001000) != 0)) {
2327         result.vpcAccess_ = vpcAccessBuilder_ == null ? vpcAccess_ : vpcAccessBuilder_.build();
2328       }
2329       if (((from_bitField0_ & 0x00002000) != 0)) {
2330         result.maxInstanceRequestConcurrency_ = maxInstanceRequestConcurrency_;
2331       }
2332       if (((from_bitField0_ & 0x00004000) != 0)) {
2333         result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build();
2334       }
2335       if (((from_bitField0_ & 0x00008000) != 0)) {
2336         result.serviceAccount_ = serviceAccount_;
2337       }
2338       if (((from_bitField0_ & 0x00040000) != 0)) {
2339         result.executionEnvironment_ = executionEnvironment_;
2340       }
2341       if (((from_bitField0_ & 0x00080000) != 0)) {
2342         result.encryptionKey_ = encryptionKey_;
2343       }
2344       if (((from_bitField0_ & 0x00100000) != 0)) {
2345         result.encryptionKeyRevocationAction_ = encryptionKeyRevocationAction_;
2346       }
2347       if (((from_bitField0_ & 0x00200000) != 0)) {
2348         result.encryptionKeyShutdownDuration_ =
2349             encryptionKeyShutdownDurationBuilder_ == null
2350                 ? encryptionKeyShutdownDuration_
2351                 : encryptionKeyShutdownDurationBuilder_.build();
2352       }
2353       if (((from_bitField0_ & 0x00400000) != 0)) {
2354         result.reconciling_ = reconciling_;
2355       }
2356       if (((from_bitField0_ & 0x01000000) != 0)) {
2357         result.observedGeneration_ = observedGeneration_;
2358       }
2359       if (((from_bitField0_ & 0x02000000) != 0)) {
2360         result.logUri_ = logUri_;
2361       }
2362       if (((from_bitField0_ & 0x04000000) != 0)) {
2363         result.satisfiesPzs_ = satisfiesPzs_;
2364       }
2365       if (((from_bitField0_ & 0x08000000) != 0)) {
2366         result.sessionAffinity_ = sessionAffinity_;
2367       }
2368       if (((from_bitField0_ & 0x10000000) != 0)) {
2369         result.etag_ = etag_;
2370       }
2371     }
2372 
2373     @java.lang.Override
clone()2374     public Builder clone() {
2375       return super.clone();
2376     }
2377 
2378     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2379     public Builder setField(
2380         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2381       return super.setField(field, value);
2382     }
2383 
2384     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2385     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
2386       return super.clearField(field);
2387     }
2388 
2389     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2390     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
2391       return super.clearOneof(oneof);
2392     }
2393 
2394     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2395     public Builder setRepeatedField(
2396         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
2397       return super.setRepeatedField(field, index, value);
2398     }
2399 
2400     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2401     public Builder addRepeatedField(
2402         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
2403       return super.addRepeatedField(field, value);
2404     }
2405 
2406     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)2407     public Builder mergeFrom(com.google.protobuf.Message other) {
2408       if (other instanceof com.google.cloud.run.v2.Revision) {
2409         return mergeFrom((com.google.cloud.run.v2.Revision) other);
2410       } else {
2411         super.mergeFrom(other);
2412         return this;
2413       }
2414     }
2415 
mergeFrom(com.google.cloud.run.v2.Revision other)2416     public Builder mergeFrom(com.google.cloud.run.v2.Revision other) {
2417       if (other == com.google.cloud.run.v2.Revision.getDefaultInstance()) return this;
2418       if (!other.getName().isEmpty()) {
2419         name_ = other.name_;
2420         bitField0_ |= 0x00000001;
2421         onChanged();
2422       }
2423       if (!other.getUid().isEmpty()) {
2424         uid_ = other.uid_;
2425         bitField0_ |= 0x00000002;
2426         onChanged();
2427       }
2428       if (other.getGeneration() != 0L) {
2429         setGeneration(other.getGeneration());
2430       }
2431       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
2432       bitField0_ |= 0x00000008;
2433       internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
2434       bitField0_ |= 0x00000010;
2435       if (other.hasCreateTime()) {
2436         mergeCreateTime(other.getCreateTime());
2437       }
2438       if (other.hasUpdateTime()) {
2439         mergeUpdateTime(other.getUpdateTime());
2440       }
2441       if (other.hasDeleteTime()) {
2442         mergeDeleteTime(other.getDeleteTime());
2443       }
2444       if (other.hasExpireTime()) {
2445         mergeExpireTime(other.getExpireTime());
2446       }
2447       if (other.launchStage_ != 0) {
2448         setLaunchStageValue(other.getLaunchStageValue());
2449       }
2450       if (!other.getService().isEmpty()) {
2451         service_ = other.service_;
2452         bitField0_ |= 0x00000400;
2453         onChanged();
2454       }
2455       if (other.hasScaling()) {
2456         mergeScaling(other.getScaling());
2457       }
2458       if (other.hasVpcAccess()) {
2459         mergeVpcAccess(other.getVpcAccess());
2460       }
2461       if (other.getMaxInstanceRequestConcurrency() != 0) {
2462         setMaxInstanceRequestConcurrency(other.getMaxInstanceRequestConcurrency());
2463       }
2464       if (other.hasTimeout()) {
2465         mergeTimeout(other.getTimeout());
2466       }
2467       if (!other.getServiceAccount().isEmpty()) {
2468         serviceAccount_ = other.serviceAccount_;
2469         bitField0_ |= 0x00008000;
2470         onChanged();
2471       }
2472       if (containersBuilder_ == null) {
2473         if (!other.containers_.isEmpty()) {
2474           if (containers_.isEmpty()) {
2475             containers_ = other.containers_;
2476             bitField0_ = (bitField0_ & ~0x00010000);
2477           } else {
2478             ensureContainersIsMutable();
2479             containers_.addAll(other.containers_);
2480           }
2481           onChanged();
2482         }
2483       } else {
2484         if (!other.containers_.isEmpty()) {
2485           if (containersBuilder_.isEmpty()) {
2486             containersBuilder_.dispose();
2487             containersBuilder_ = null;
2488             containers_ = other.containers_;
2489             bitField0_ = (bitField0_ & ~0x00010000);
2490             containersBuilder_ =
2491                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2492                     ? getContainersFieldBuilder()
2493                     : null;
2494           } else {
2495             containersBuilder_.addAllMessages(other.containers_);
2496           }
2497         }
2498       }
2499       if (volumesBuilder_ == null) {
2500         if (!other.volumes_.isEmpty()) {
2501           if (volumes_.isEmpty()) {
2502             volumes_ = other.volumes_;
2503             bitField0_ = (bitField0_ & ~0x00020000);
2504           } else {
2505             ensureVolumesIsMutable();
2506             volumes_.addAll(other.volumes_);
2507           }
2508           onChanged();
2509         }
2510       } else {
2511         if (!other.volumes_.isEmpty()) {
2512           if (volumesBuilder_.isEmpty()) {
2513             volumesBuilder_.dispose();
2514             volumesBuilder_ = null;
2515             volumes_ = other.volumes_;
2516             bitField0_ = (bitField0_ & ~0x00020000);
2517             volumesBuilder_ =
2518                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2519                     ? getVolumesFieldBuilder()
2520                     : null;
2521           } else {
2522             volumesBuilder_.addAllMessages(other.volumes_);
2523           }
2524         }
2525       }
2526       if (other.executionEnvironment_ != 0) {
2527         setExecutionEnvironmentValue(other.getExecutionEnvironmentValue());
2528       }
2529       if (!other.getEncryptionKey().isEmpty()) {
2530         encryptionKey_ = other.encryptionKey_;
2531         bitField0_ |= 0x00080000;
2532         onChanged();
2533       }
2534       if (other.encryptionKeyRevocationAction_ != 0) {
2535         setEncryptionKeyRevocationActionValue(other.getEncryptionKeyRevocationActionValue());
2536       }
2537       if (other.hasEncryptionKeyShutdownDuration()) {
2538         mergeEncryptionKeyShutdownDuration(other.getEncryptionKeyShutdownDuration());
2539       }
2540       if (other.getReconciling() != false) {
2541         setReconciling(other.getReconciling());
2542       }
2543       if (conditionsBuilder_ == null) {
2544         if (!other.conditions_.isEmpty()) {
2545           if (conditions_.isEmpty()) {
2546             conditions_ = other.conditions_;
2547             bitField0_ = (bitField0_ & ~0x00800000);
2548           } else {
2549             ensureConditionsIsMutable();
2550             conditions_.addAll(other.conditions_);
2551           }
2552           onChanged();
2553         }
2554       } else {
2555         if (!other.conditions_.isEmpty()) {
2556           if (conditionsBuilder_.isEmpty()) {
2557             conditionsBuilder_.dispose();
2558             conditionsBuilder_ = null;
2559             conditions_ = other.conditions_;
2560             bitField0_ = (bitField0_ & ~0x00800000);
2561             conditionsBuilder_ =
2562                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
2563                     ? getConditionsFieldBuilder()
2564                     : null;
2565           } else {
2566             conditionsBuilder_.addAllMessages(other.conditions_);
2567           }
2568         }
2569       }
2570       if (other.getObservedGeneration() != 0L) {
2571         setObservedGeneration(other.getObservedGeneration());
2572       }
2573       if (!other.getLogUri().isEmpty()) {
2574         logUri_ = other.logUri_;
2575         bitField0_ |= 0x02000000;
2576         onChanged();
2577       }
2578       if (other.getSatisfiesPzs() != false) {
2579         setSatisfiesPzs(other.getSatisfiesPzs());
2580       }
2581       if (other.getSessionAffinity() != false) {
2582         setSessionAffinity(other.getSessionAffinity());
2583       }
2584       if (!other.getEtag().isEmpty()) {
2585         etag_ = other.etag_;
2586         bitField0_ |= 0x10000000;
2587         onChanged();
2588       }
2589       this.mergeUnknownFields(other.getUnknownFields());
2590       onChanged();
2591       return this;
2592     }
2593 
2594     @java.lang.Override
isInitialized()2595     public final boolean isInitialized() {
2596       return true;
2597     }
2598 
2599     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2600     public Builder mergeFrom(
2601         com.google.protobuf.CodedInputStream input,
2602         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2603         throws java.io.IOException {
2604       if (extensionRegistry == null) {
2605         throw new java.lang.NullPointerException();
2606       }
2607       try {
2608         boolean done = false;
2609         while (!done) {
2610           int tag = input.readTag();
2611           switch (tag) {
2612             case 0:
2613               done = true;
2614               break;
2615             case 10:
2616               {
2617                 name_ = input.readStringRequireUtf8();
2618                 bitField0_ |= 0x00000001;
2619                 break;
2620               } // case 10
2621             case 18:
2622               {
2623                 uid_ = input.readStringRequireUtf8();
2624                 bitField0_ |= 0x00000002;
2625                 break;
2626               } // case 18
2627             case 24:
2628               {
2629                 generation_ = input.readInt64();
2630                 bitField0_ |= 0x00000004;
2631                 break;
2632               } // case 24
2633             case 34:
2634               {
2635                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
2636                     input.readMessage(
2637                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
2638                         extensionRegistry);
2639                 internalGetMutableLabels()
2640                     .getMutableMap()
2641                     .put(labels__.getKey(), labels__.getValue());
2642                 bitField0_ |= 0x00000008;
2643                 break;
2644               } // case 34
2645             case 42:
2646               {
2647                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> annotations__ =
2648                     input.readMessage(
2649                         AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
2650                         extensionRegistry);
2651                 internalGetMutableAnnotations()
2652                     .getMutableMap()
2653                     .put(annotations__.getKey(), annotations__.getValue());
2654                 bitField0_ |= 0x00000010;
2655                 break;
2656               } // case 42
2657             case 50:
2658               {
2659                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
2660                 bitField0_ |= 0x00000020;
2661                 break;
2662               } // case 50
2663             case 58:
2664               {
2665                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
2666                 bitField0_ |= 0x00000040;
2667                 break;
2668               } // case 58
2669             case 66:
2670               {
2671                 input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
2672                 bitField0_ |= 0x00000080;
2673                 break;
2674               } // case 66
2675             case 74:
2676               {
2677                 input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
2678                 bitField0_ |= 0x00000100;
2679                 break;
2680               } // case 74
2681             case 80:
2682               {
2683                 launchStage_ = input.readEnum();
2684                 bitField0_ |= 0x00000200;
2685                 break;
2686               } // case 80
2687             case 90:
2688               {
2689                 service_ = input.readStringRequireUtf8();
2690                 bitField0_ |= 0x00000400;
2691                 break;
2692               } // case 90
2693             case 98:
2694               {
2695                 input.readMessage(getScalingFieldBuilder().getBuilder(), extensionRegistry);
2696                 bitField0_ |= 0x00000800;
2697                 break;
2698               } // case 98
2699             case 106:
2700               {
2701                 input.readMessage(getVpcAccessFieldBuilder().getBuilder(), extensionRegistry);
2702                 bitField0_ |= 0x00001000;
2703                 break;
2704               } // case 106
2705             case 122:
2706               {
2707                 input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry);
2708                 bitField0_ |= 0x00004000;
2709                 break;
2710               } // case 122
2711             case 130:
2712               {
2713                 serviceAccount_ = input.readStringRequireUtf8();
2714                 bitField0_ |= 0x00008000;
2715                 break;
2716               } // case 130
2717             case 138:
2718               {
2719                 com.google.cloud.run.v2.Container m =
2720                     input.readMessage(
2721                         com.google.cloud.run.v2.Container.parser(), extensionRegistry);
2722                 if (containersBuilder_ == null) {
2723                   ensureContainersIsMutable();
2724                   containers_.add(m);
2725                 } else {
2726                   containersBuilder_.addMessage(m);
2727                 }
2728                 break;
2729               } // case 138
2730             case 146:
2731               {
2732                 com.google.cloud.run.v2.Volume m =
2733                     input.readMessage(com.google.cloud.run.v2.Volume.parser(), extensionRegistry);
2734                 if (volumesBuilder_ == null) {
2735                   ensureVolumesIsMutable();
2736                   volumes_.add(m);
2737                 } else {
2738                   volumesBuilder_.addMessage(m);
2739                 }
2740                 break;
2741               } // case 146
2742             case 160:
2743               {
2744                 executionEnvironment_ = input.readEnum();
2745                 bitField0_ |= 0x00040000;
2746                 break;
2747               } // case 160
2748             case 170:
2749               {
2750                 encryptionKey_ = input.readStringRequireUtf8();
2751                 bitField0_ |= 0x00080000;
2752                 break;
2753               } // case 170
2754             case 184:
2755               {
2756                 encryptionKeyRevocationAction_ = input.readEnum();
2757                 bitField0_ |= 0x00100000;
2758                 break;
2759               } // case 184
2760             case 194:
2761               {
2762                 input.readMessage(
2763                     getEncryptionKeyShutdownDurationFieldBuilder().getBuilder(), extensionRegistry);
2764                 bitField0_ |= 0x00200000;
2765                 break;
2766               } // case 194
2767             case 240:
2768               {
2769                 reconciling_ = input.readBool();
2770                 bitField0_ |= 0x00400000;
2771                 break;
2772               } // case 240
2773             case 250:
2774               {
2775                 com.google.cloud.run.v2.Condition m =
2776                     input.readMessage(
2777                         com.google.cloud.run.v2.Condition.parser(), extensionRegistry);
2778                 if (conditionsBuilder_ == null) {
2779                   ensureConditionsIsMutable();
2780                   conditions_.add(m);
2781                 } else {
2782                   conditionsBuilder_.addMessage(m);
2783                 }
2784                 break;
2785               } // case 250
2786             case 256:
2787               {
2788                 observedGeneration_ = input.readInt64();
2789                 bitField0_ |= 0x01000000;
2790                 break;
2791               } // case 256
2792             case 266:
2793               {
2794                 logUri_ = input.readStringRequireUtf8();
2795                 bitField0_ |= 0x02000000;
2796                 break;
2797               } // case 266
2798             case 272:
2799               {
2800                 maxInstanceRequestConcurrency_ = input.readInt32();
2801                 bitField0_ |= 0x00002000;
2802                 break;
2803               } // case 272
2804             case 296:
2805               {
2806                 satisfiesPzs_ = input.readBool();
2807                 bitField0_ |= 0x04000000;
2808                 break;
2809               } // case 296
2810             case 304:
2811               {
2812                 sessionAffinity_ = input.readBool();
2813                 bitField0_ |= 0x08000000;
2814                 break;
2815               } // case 304
2816             case 794:
2817               {
2818                 etag_ = input.readStringRequireUtf8();
2819                 bitField0_ |= 0x10000000;
2820                 break;
2821               } // case 794
2822             default:
2823               {
2824                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2825                   done = true; // was an endgroup tag
2826                 }
2827                 break;
2828               } // default:
2829           } // switch (tag)
2830         } // while (!done)
2831       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2832         throw e.unwrapIOException();
2833       } finally {
2834         onChanged();
2835       } // finally
2836       return this;
2837     }
2838 
2839     private int bitField0_;
2840 
2841     private java.lang.Object name_ = "";
2842     /**
2843      *
2844      *
2845      * <pre>
2846      * Output only. The unique name of this Revision.
2847      * </pre>
2848      *
2849      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2850      *
2851      * @return The name.
2852      */
getName()2853     public java.lang.String getName() {
2854       java.lang.Object ref = name_;
2855       if (!(ref instanceof java.lang.String)) {
2856         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2857         java.lang.String s = bs.toStringUtf8();
2858         name_ = s;
2859         return s;
2860       } else {
2861         return (java.lang.String) ref;
2862       }
2863     }
2864     /**
2865      *
2866      *
2867      * <pre>
2868      * Output only. The unique name of this Revision.
2869      * </pre>
2870      *
2871      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2872      *
2873      * @return The bytes for name.
2874      */
getNameBytes()2875     public com.google.protobuf.ByteString getNameBytes() {
2876       java.lang.Object ref = name_;
2877       if (ref instanceof String) {
2878         com.google.protobuf.ByteString b =
2879             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2880         name_ = b;
2881         return b;
2882       } else {
2883         return (com.google.protobuf.ByteString) ref;
2884       }
2885     }
2886     /**
2887      *
2888      *
2889      * <pre>
2890      * Output only. The unique name of this Revision.
2891      * </pre>
2892      *
2893      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2894      *
2895      * @param value The name to set.
2896      * @return This builder for chaining.
2897      */
setName(java.lang.String value)2898     public Builder setName(java.lang.String value) {
2899       if (value == null) {
2900         throw new NullPointerException();
2901       }
2902       name_ = value;
2903       bitField0_ |= 0x00000001;
2904       onChanged();
2905       return this;
2906     }
2907     /**
2908      *
2909      *
2910      * <pre>
2911      * Output only. The unique name of this Revision.
2912      * </pre>
2913      *
2914      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2915      *
2916      * @return This builder for chaining.
2917      */
clearName()2918     public Builder clearName() {
2919       name_ = getDefaultInstance().getName();
2920       bitField0_ = (bitField0_ & ~0x00000001);
2921       onChanged();
2922       return this;
2923     }
2924     /**
2925      *
2926      *
2927      * <pre>
2928      * Output only. The unique name of this Revision.
2929      * </pre>
2930      *
2931      * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2932      *
2933      * @param value The bytes for name to set.
2934      * @return This builder for chaining.
2935      */
setNameBytes(com.google.protobuf.ByteString value)2936     public Builder setNameBytes(com.google.protobuf.ByteString value) {
2937       if (value == null) {
2938         throw new NullPointerException();
2939       }
2940       checkByteStringIsUtf8(value);
2941       name_ = value;
2942       bitField0_ |= 0x00000001;
2943       onChanged();
2944       return this;
2945     }
2946 
2947     private java.lang.Object uid_ = "";
2948     /**
2949      *
2950      *
2951      * <pre>
2952      * Output only. Server assigned unique identifier for the Revision. The value
2953      * is a UUID4 string and guaranteed to remain unchanged until the resource is
2954      * deleted.
2955      * </pre>
2956      *
2957      * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2958      *
2959      * @return The uid.
2960      */
getUid()2961     public java.lang.String getUid() {
2962       java.lang.Object ref = uid_;
2963       if (!(ref instanceof java.lang.String)) {
2964         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2965         java.lang.String s = bs.toStringUtf8();
2966         uid_ = s;
2967         return s;
2968       } else {
2969         return (java.lang.String) ref;
2970       }
2971     }
2972     /**
2973      *
2974      *
2975      * <pre>
2976      * Output only. Server assigned unique identifier for the Revision. The value
2977      * is a UUID4 string and guaranteed to remain unchanged until the resource is
2978      * deleted.
2979      * </pre>
2980      *
2981      * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
2982      *
2983      * @return The bytes for uid.
2984      */
getUidBytes()2985     public com.google.protobuf.ByteString getUidBytes() {
2986       java.lang.Object ref = uid_;
2987       if (ref instanceof String) {
2988         com.google.protobuf.ByteString b =
2989             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2990         uid_ = b;
2991         return b;
2992       } else {
2993         return (com.google.protobuf.ByteString) ref;
2994       }
2995     }
2996     /**
2997      *
2998      *
2999      * <pre>
3000      * Output only. Server assigned unique identifier for the Revision. The value
3001      * is a UUID4 string and guaranteed to remain unchanged until the resource is
3002      * deleted.
3003      * </pre>
3004      *
3005      * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3006      *
3007      * @param value The uid to set.
3008      * @return This builder for chaining.
3009      */
setUid(java.lang.String value)3010     public Builder setUid(java.lang.String value) {
3011       if (value == null) {
3012         throw new NullPointerException();
3013       }
3014       uid_ = value;
3015       bitField0_ |= 0x00000002;
3016       onChanged();
3017       return this;
3018     }
3019     /**
3020      *
3021      *
3022      * <pre>
3023      * Output only. Server assigned unique identifier for the Revision. The value
3024      * is a UUID4 string and guaranteed to remain unchanged until the resource is
3025      * deleted.
3026      * </pre>
3027      *
3028      * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3029      *
3030      * @return This builder for chaining.
3031      */
clearUid()3032     public Builder clearUid() {
3033       uid_ = getDefaultInstance().getUid();
3034       bitField0_ = (bitField0_ & ~0x00000002);
3035       onChanged();
3036       return this;
3037     }
3038     /**
3039      *
3040      *
3041      * <pre>
3042      * Output only. Server assigned unique identifier for the Revision. The value
3043      * is a UUID4 string and guaranteed to remain unchanged until the resource is
3044      * deleted.
3045      * </pre>
3046      *
3047      * <code>string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3048      *
3049      * @param value The bytes for uid to set.
3050      * @return This builder for chaining.
3051      */
setUidBytes(com.google.protobuf.ByteString value)3052     public Builder setUidBytes(com.google.protobuf.ByteString value) {
3053       if (value == null) {
3054         throw new NullPointerException();
3055       }
3056       checkByteStringIsUtf8(value);
3057       uid_ = value;
3058       bitField0_ |= 0x00000002;
3059       onChanged();
3060       return this;
3061     }
3062 
3063     private long generation_;
3064     /**
3065      *
3066      *
3067      * <pre>
3068      * Output only. A number that monotonically increases every time the user
3069      * modifies the desired state.
3070      * </pre>
3071      *
3072      * <code>int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3073      *
3074      * @return The generation.
3075      */
3076     @java.lang.Override
getGeneration()3077     public long getGeneration() {
3078       return generation_;
3079     }
3080     /**
3081      *
3082      *
3083      * <pre>
3084      * Output only. A number that monotonically increases every time the user
3085      * modifies the desired state.
3086      * </pre>
3087      *
3088      * <code>int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3089      *
3090      * @param value The generation to set.
3091      * @return This builder for chaining.
3092      */
setGeneration(long value)3093     public Builder setGeneration(long value) {
3094 
3095       generation_ = value;
3096       bitField0_ |= 0x00000004;
3097       onChanged();
3098       return this;
3099     }
3100     /**
3101      *
3102      *
3103      * <pre>
3104      * Output only. A number that monotonically increases every time the user
3105      * modifies the desired state.
3106      * </pre>
3107      *
3108      * <code>int64 generation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
3109      *
3110      * @return This builder for chaining.
3111      */
clearGeneration()3112     public Builder clearGeneration() {
3113       bitField0_ = (bitField0_ & ~0x00000004);
3114       generation_ = 0L;
3115       onChanged();
3116       return this;
3117     }
3118 
3119     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
3120 
internalGetLabels()3121     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
3122       if (labels_ == null) {
3123         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
3124       }
3125       return labels_;
3126     }
3127 
3128     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()3129         internalGetMutableLabels() {
3130       if (labels_ == null) {
3131         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
3132       }
3133       if (!labels_.isMutable()) {
3134         labels_ = labels_.copy();
3135       }
3136       bitField0_ |= 0x00000008;
3137       onChanged();
3138       return labels_;
3139     }
3140 
getLabelsCount()3141     public int getLabelsCount() {
3142       return internalGetLabels().getMap().size();
3143     }
3144     /**
3145      *
3146      *
3147      * <pre>
3148      * Output only. Unstructured key value map that can be used to organize and
3149      * categorize objects. User-provided labels are shared with Google's billing
3150      * system, so they can be used to filter, or break down billing charges by
3151      * team, component, environment, state, etc. For more information, visit
3152      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3153      * https://cloud.google.com/run/docs/configuring/labels.
3154      * </pre>
3155      *
3156      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3157      * </code>
3158      */
3159     @java.lang.Override
containsLabels(java.lang.String key)3160     public boolean containsLabels(java.lang.String key) {
3161       if (key == null) {
3162         throw new NullPointerException("map key");
3163       }
3164       return internalGetLabels().getMap().containsKey(key);
3165     }
3166     /** Use {@link #getLabelsMap()} instead. */
3167     @java.lang.Override
3168     @java.lang.Deprecated
getLabels()3169     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
3170       return getLabelsMap();
3171     }
3172     /**
3173      *
3174      *
3175      * <pre>
3176      * Output only. Unstructured key value map that can be used to organize and
3177      * categorize objects. User-provided labels are shared with Google's billing
3178      * system, so they can be used to filter, or break down billing charges by
3179      * team, component, environment, state, etc. For more information, visit
3180      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3181      * https://cloud.google.com/run/docs/configuring/labels.
3182      * </pre>
3183      *
3184      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3185      * </code>
3186      */
3187     @java.lang.Override
getLabelsMap()3188     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
3189       return internalGetLabels().getMap();
3190     }
3191     /**
3192      *
3193      *
3194      * <pre>
3195      * Output only. Unstructured key value map that can be used to organize and
3196      * categorize objects. User-provided labels are shared with Google's billing
3197      * system, so they can be used to filter, or break down billing charges by
3198      * team, component, environment, state, etc. For more information, visit
3199      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3200      * https://cloud.google.com/run/docs/configuring/labels.
3201      * </pre>
3202      *
3203      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3204      * </code>
3205      */
3206     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)3207     public /* nullable */ java.lang.String getLabelsOrDefault(
3208         java.lang.String key,
3209         /* nullable */
3210         java.lang.String defaultValue) {
3211       if (key == null) {
3212         throw new NullPointerException("map key");
3213       }
3214       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
3215       return map.containsKey(key) ? map.get(key) : defaultValue;
3216     }
3217     /**
3218      *
3219      *
3220      * <pre>
3221      * Output only. Unstructured key value map that can be used to organize and
3222      * categorize objects. User-provided labels are shared with Google's billing
3223      * system, so they can be used to filter, or break down billing charges by
3224      * team, component, environment, state, etc. For more information, visit
3225      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3226      * https://cloud.google.com/run/docs/configuring/labels.
3227      * </pre>
3228      *
3229      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3230      * </code>
3231      */
3232     @java.lang.Override
getLabelsOrThrow(java.lang.String key)3233     public java.lang.String getLabelsOrThrow(java.lang.String key) {
3234       if (key == null) {
3235         throw new NullPointerException("map key");
3236       }
3237       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
3238       if (!map.containsKey(key)) {
3239         throw new java.lang.IllegalArgumentException();
3240       }
3241       return map.get(key);
3242     }
3243 
clearLabels()3244     public Builder clearLabels() {
3245       bitField0_ = (bitField0_ & ~0x00000008);
3246       internalGetMutableLabels().getMutableMap().clear();
3247       return this;
3248     }
3249     /**
3250      *
3251      *
3252      * <pre>
3253      * Output only. Unstructured key value map that can be used to organize and
3254      * categorize objects. User-provided labels are shared with Google's billing
3255      * system, so they can be used to filter, or break down billing charges by
3256      * team, component, environment, state, etc. For more information, visit
3257      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3258      * https://cloud.google.com/run/docs/configuring/labels.
3259      * </pre>
3260      *
3261      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3262      * </code>
3263      */
removeLabels(java.lang.String key)3264     public Builder removeLabels(java.lang.String key) {
3265       if (key == null) {
3266         throw new NullPointerException("map key");
3267       }
3268       internalGetMutableLabels().getMutableMap().remove(key);
3269       return this;
3270     }
3271     /** Use alternate mutation accessors instead. */
3272     @java.lang.Deprecated
getMutableLabels()3273     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
3274       bitField0_ |= 0x00000008;
3275       return internalGetMutableLabels().getMutableMap();
3276     }
3277     /**
3278      *
3279      *
3280      * <pre>
3281      * Output only. Unstructured key value map that can be used to organize and
3282      * categorize objects. User-provided labels are shared with Google's billing
3283      * system, so they can be used to filter, or break down billing charges by
3284      * team, component, environment, state, etc. For more information, visit
3285      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3286      * https://cloud.google.com/run/docs/configuring/labels.
3287      * </pre>
3288      *
3289      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3290      * </code>
3291      */
putLabels(java.lang.String key, java.lang.String value)3292     public Builder putLabels(java.lang.String key, java.lang.String value) {
3293       if (key == null) {
3294         throw new NullPointerException("map key");
3295       }
3296       if (value == null) {
3297         throw new NullPointerException("map value");
3298       }
3299       internalGetMutableLabels().getMutableMap().put(key, value);
3300       bitField0_ |= 0x00000008;
3301       return this;
3302     }
3303     /**
3304      *
3305      *
3306      * <pre>
3307      * Output only. Unstructured key value map that can be used to organize and
3308      * categorize objects. User-provided labels are shared with Google's billing
3309      * system, so they can be used to filter, or break down billing charges by
3310      * team, component, environment, state, etc. For more information, visit
3311      * https://cloud.google.com/resource-manager/docs/creating-managing-labels or
3312      * https://cloud.google.com/run/docs/configuring/labels.
3313      * </pre>
3314      *
3315      * <code>map&lt;string, string&gt; labels = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
3316      * </code>
3317      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)3318     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
3319       internalGetMutableLabels().getMutableMap().putAll(values);
3320       bitField0_ |= 0x00000008;
3321       return this;
3322     }
3323 
3324     private com.google.protobuf.MapField<java.lang.String, java.lang.String> annotations_;
3325 
3326     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetAnnotations()3327         internalGetAnnotations() {
3328       if (annotations_ == null) {
3329         return com.google.protobuf.MapField.emptyMapField(
3330             AnnotationsDefaultEntryHolder.defaultEntry);
3331       }
3332       return annotations_;
3333     }
3334 
3335     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableAnnotations()3336         internalGetMutableAnnotations() {
3337       if (annotations_ == null) {
3338         annotations_ =
3339             com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
3340       }
3341       if (!annotations_.isMutable()) {
3342         annotations_ = annotations_.copy();
3343       }
3344       bitField0_ |= 0x00000010;
3345       onChanged();
3346       return annotations_;
3347     }
3348 
getAnnotationsCount()3349     public int getAnnotationsCount() {
3350       return internalGetAnnotations().getMap().size();
3351     }
3352     /**
3353      *
3354      *
3355      * <pre>
3356      * Output only. Unstructured key value map that may
3357      * be set by external tools to store and arbitrary metadata.
3358      * They are not queryable and should be preserved
3359      * when modifying objects.
3360      * </pre>
3361      *
3362      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3363      * </code>
3364      */
3365     @java.lang.Override
containsAnnotations(java.lang.String key)3366     public boolean containsAnnotations(java.lang.String key) {
3367       if (key == null) {
3368         throw new NullPointerException("map key");
3369       }
3370       return internalGetAnnotations().getMap().containsKey(key);
3371     }
3372     /** Use {@link #getAnnotationsMap()} instead. */
3373     @java.lang.Override
3374     @java.lang.Deprecated
getAnnotations()3375     public java.util.Map<java.lang.String, java.lang.String> getAnnotations() {
3376       return getAnnotationsMap();
3377     }
3378     /**
3379      *
3380      *
3381      * <pre>
3382      * Output only. Unstructured key value map that may
3383      * be set by external tools to store and arbitrary metadata.
3384      * They are not queryable and should be preserved
3385      * when modifying objects.
3386      * </pre>
3387      *
3388      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3389      * </code>
3390      */
3391     @java.lang.Override
getAnnotationsMap()3392     public java.util.Map<java.lang.String, java.lang.String> getAnnotationsMap() {
3393       return internalGetAnnotations().getMap();
3394     }
3395     /**
3396      *
3397      *
3398      * <pre>
3399      * Output only. Unstructured key value map that may
3400      * be set by external tools to store and arbitrary metadata.
3401      * They are not queryable and should be preserved
3402      * when modifying objects.
3403      * </pre>
3404      *
3405      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3406      * </code>
3407      */
3408     @java.lang.Override
getAnnotationsOrDefault( java.lang.String key, java.lang.String defaultValue)3409     public /* nullable */ java.lang.String getAnnotationsOrDefault(
3410         java.lang.String key,
3411         /* nullable */
3412         java.lang.String defaultValue) {
3413       if (key == null) {
3414         throw new NullPointerException("map key");
3415       }
3416       java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
3417       return map.containsKey(key) ? map.get(key) : defaultValue;
3418     }
3419     /**
3420      *
3421      *
3422      * <pre>
3423      * Output only. Unstructured key value map that may
3424      * be set by external tools to store and arbitrary metadata.
3425      * They are not queryable and should be preserved
3426      * when modifying objects.
3427      * </pre>
3428      *
3429      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3430      * </code>
3431      */
3432     @java.lang.Override
getAnnotationsOrThrow(java.lang.String key)3433     public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
3434       if (key == null) {
3435         throw new NullPointerException("map key");
3436       }
3437       java.util.Map<java.lang.String, java.lang.String> map = internalGetAnnotations().getMap();
3438       if (!map.containsKey(key)) {
3439         throw new java.lang.IllegalArgumentException();
3440       }
3441       return map.get(key);
3442     }
3443 
clearAnnotations()3444     public Builder clearAnnotations() {
3445       bitField0_ = (bitField0_ & ~0x00000010);
3446       internalGetMutableAnnotations().getMutableMap().clear();
3447       return this;
3448     }
3449     /**
3450      *
3451      *
3452      * <pre>
3453      * Output only. Unstructured key value map that may
3454      * be set by external tools to store and arbitrary metadata.
3455      * They are not queryable and should be preserved
3456      * when modifying objects.
3457      * </pre>
3458      *
3459      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3460      * </code>
3461      */
removeAnnotations(java.lang.String key)3462     public Builder removeAnnotations(java.lang.String key) {
3463       if (key == null) {
3464         throw new NullPointerException("map key");
3465       }
3466       internalGetMutableAnnotations().getMutableMap().remove(key);
3467       return this;
3468     }
3469     /** Use alternate mutation accessors instead. */
3470     @java.lang.Deprecated
getMutableAnnotations()3471     public java.util.Map<java.lang.String, java.lang.String> getMutableAnnotations() {
3472       bitField0_ |= 0x00000010;
3473       return internalGetMutableAnnotations().getMutableMap();
3474     }
3475     /**
3476      *
3477      *
3478      * <pre>
3479      * Output only. Unstructured key value map that may
3480      * be set by external tools to store and arbitrary metadata.
3481      * They are not queryable and should be preserved
3482      * when modifying objects.
3483      * </pre>
3484      *
3485      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3486      * </code>
3487      */
putAnnotations(java.lang.String key, java.lang.String value)3488     public Builder putAnnotations(java.lang.String key, java.lang.String value) {
3489       if (key == null) {
3490         throw new NullPointerException("map key");
3491       }
3492       if (value == null) {
3493         throw new NullPointerException("map value");
3494       }
3495       internalGetMutableAnnotations().getMutableMap().put(key, value);
3496       bitField0_ |= 0x00000010;
3497       return this;
3498     }
3499     /**
3500      *
3501      *
3502      * <pre>
3503      * Output only. Unstructured key value map that may
3504      * be set by external tools to store and arbitrary metadata.
3505      * They are not queryable and should be preserved
3506      * when modifying objects.
3507      * </pre>
3508      *
3509      * <code>map&lt;string, string&gt; annotations = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
3510      * </code>
3511      */
putAllAnnotations(java.util.Map<java.lang.String, java.lang.String> values)3512     public Builder putAllAnnotations(java.util.Map<java.lang.String, java.lang.String> values) {
3513       internalGetMutableAnnotations().getMutableMap().putAll(values);
3514       bitField0_ |= 0x00000010;
3515       return this;
3516     }
3517 
3518     private com.google.protobuf.Timestamp createTime_;
3519     private com.google.protobuf.SingleFieldBuilderV3<
3520             com.google.protobuf.Timestamp,
3521             com.google.protobuf.Timestamp.Builder,
3522             com.google.protobuf.TimestampOrBuilder>
3523         createTimeBuilder_;
3524     /**
3525      *
3526      *
3527      * <pre>
3528      * Output only. The creation time.
3529      * </pre>
3530      *
3531      * <code>
3532      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3533      * </code>
3534      *
3535      * @return Whether the createTime field is set.
3536      */
hasCreateTime()3537     public boolean hasCreateTime() {
3538       return ((bitField0_ & 0x00000020) != 0);
3539     }
3540     /**
3541      *
3542      *
3543      * <pre>
3544      * Output only. The creation time.
3545      * </pre>
3546      *
3547      * <code>
3548      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3549      * </code>
3550      *
3551      * @return The createTime.
3552      */
getCreateTime()3553     public com.google.protobuf.Timestamp getCreateTime() {
3554       if (createTimeBuilder_ == null) {
3555         return createTime_ == null
3556             ? com.google.protobuf.Timestamp.getDefaultInstance()
3557             : createTime_;
3558       } else {
3559         return createTimeBuilder_.getMessage();
3560       }
3561     }
3562     /**
3563      *
3564      *
3565      * <pre>
3566      * Output only. The creation time.
3567      * </pre>
3568      *
3569      * <code>
3570      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3571      * </code>
3572      */
setCreateTime(com.google.protobuf.Timestamp value)3573     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
3574       if (createTimeBuilder_ == null) {
3575         if (value == null) {
3576           throw new NullPointerException();
3577         }
3578         createTime_ = value;
3579       } else {
3580         createTimeBuilder_.setMessage(value);
3581       }
3582       bitField0_ |= 0x00000020;
3583       onChanged();
3584       return this;
3585     }
3586     /**
3587      *
3588      *
3589      * <pre>
3590      * Output only. The creation time.
3591      * </pre>
3592      *
3593      * <code>
3594      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3595      * </code>
3596      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)3597     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3598       if (createTimeBuilder_ == null) {
3599         createTime_ = builderForValue.build();
3600       } else {
3601         createTimeBuilder_.setMessage(builderForValue.build());
3602       }
3603       bitField0_ |= 0x00000020;
3604       onChanged();
3605       return this;
3606     }
3607     /**
3608      *
3609      *
3610      * <pre>
3611      * Output only. The creation time.
3612      * </pre>
3613      *
3614      * <code>
3615      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3616      * </code>
3617      */
mergeCreateTime(com.google.protobuf.Timestamp value)3618     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
3619       if (createTimeBuilder_ == null) {
3620         if (((bitField0_ & 0x00000020) != 0)
3621             && createTime_ != null
3622             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3623           getCreateTimeBuilder().mergeFrom(value);
3624         } else {
3625           createTime_ = value;
3626         }
3627       } else {
3628         createTimeBuilder_.mergeFrom(value);
3629       }
3630       bitField0_ |= 0x00000020;
3631       onChanged();
3632       return this;
3633     }
3634     /**
3635      *
3636      *
3637      * <pre>
3638      * Output only. The creation time.
3639      * </pre>
3640      *
3641      * <code>
3642      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3643      * </code>
3644      */
clearCreateTime()3645     public Builder clearCreateTime() {
3646       bitField0_ = (bitField0_ & ~0x00000020);
3647       createTime_ = null;
3648       if (createTimeBuilder_ != null) {
3649         createTimeBuilder_.dispose();
3650         createTimeBuilder_ = null;
3651       }
3652       onChanged();
3653       return this;
3654     }
3655     /**
3656      *
3657      *
3658      * <pre>
3659      * Output only. The creation time.
3660      * </pre>
3661      *
3662      * <code>
3663      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3664      * </code>
3665      */
getCreateTimeBuilder()3666     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
3667       bitField0_ |= 0x00000020;
3668       onChanged();
3669       return getCreateTimeFieldBuilder().getBuilder();
3670     }
3671     /**
3672      *
3673      *
3674      * <pre>
3675      * Output only. The creation time.
3676      * </pre>
3677      *
3678      * <code>
3679      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3680      * </code>
3681      */
getCreateTimeOrBuilder()3682     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
3683       if (createTimeBuilder_ != null) {
3684         return createTimeBuilder_.getMessageOrBuilder();
3685       } else {
3686         return createTime_ == null
3687             ? com.google.protobuf.Timestamp.getDefaultInstance()
3688             : createTime_;
3689       }
3690     }
3691     /**
3692      *
3693      *
3694      * <pre>
3695      * Output only. The creation time.
3696      * </pre>
3697      *
3698      * <code>
3699      * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
3700      * </code>
3701      */
3702     private com.google.protobuf.SingleFieldBuilderV3<
3703             com.google.protobuf.Timestamp,
3704             com.google.protobuf.Timestamp.Builder,
3705             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()3706         getCreateTimeFieldBuilder() {
3707       if (createTimeBuilder_ == null) {
3708         createTimeBuilder_ =
3709             new com.google.protobuf.SingleFieldBuilderV3<
3710                 com.google.protobuf.Timestamp,
3711                 com.google.protobuf.Timestamp.Builder,
3712                 com.google.protobuf.TimestampOrBuilder>(
3713                 getCreateTime(), getParentForChildren(), isClean());
3714         createTime_ = null;
3715       }
3716       return createTimeBuilder_;
3717     }
3718 
3719     private com.google.protobuf.Timestamp updateTime_;
3720     private com.google.protobuf.SingleFieldBuilderV3<
3721             com.google.protobuf.Timestamp,
3722             com.google.protobuf.Timestamp.Builder,
3723             com.google.protobuf.TimestampOrBuilder>
3724         updateTimeBuilder_;
3725     /**
3726      *
3727      *
3728      * <pre>
3729      * Output only. The last-modified time.
3730      * </pre>
3731      *
3732      * <code>
3733      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3734      * </code>
3735      *
3736      * @return Whether the updateTime field is set.
3737      */
hasUpdateTime()3738     public boolean hasUpdateTime() {
3739       return ((bitField0_ & 0x00000040) != 0);
3740     }
3741     /**
3742      *
3743      *
3744      * <pre>
3745      * Output only. The last-modified time.
3746      * </pre>
3747      *
3748      * <code>
3749      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3750      * </code>
3751      *
3752      * @return The updateTime.
3753      */
getUpdateTime()3754     public com.google.protobuf.Timestamp getUpdateTime() {
3755       if (updateTimeBuilder_ == null) {
3756         return updateTime_ == null
3757             ? com.google.protobuf.Timestamp.getDefaultInstance()
3758             : updateTime_;
3759       } else {
3760         return updateTimeBuilder_.getMessage();
3761       }
3762     }
3763     /**
3764      *
3765      *
3766      * <pre>
3767      * Output only. The last-modified time.
3768      * </pre>
3769      *
3770      * <code>
3771      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3772      * </code>
3773      */
setUpdateTime(com.google.protobuf.Timestamp value)3774     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
3775       if (updateTimeBuilder_ == null) {
3776         if (value == null) {
3777           throw new NullPointerException();
3778         }
3779         updateTime_ = value;
3780       } else {
3781         updateTimeBuilder_.setMessage(value);
3782       }
3783       bitField0_ |= 0x00000040;
3784       onChanged();
3785       return this;
3786     }
3787     /**
3788      *
3789      *
3790      * <pre>
3791      * Output only. The last-modified time.
3792      * </pre>
3793      *
3794      * <code>
3795      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3796      * </code>
3797      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)3798     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
3799       if (updateTimeBuilder_ == null) {
3800         updateTime_ = builderForValue.build();
3801       } else {
3802         updateTimeBuilder_.setMessage(builderForValue.build());
3803       }
3804       bitField0_ |= 0x00000040;
3805       onChanged();
3806       return this;
3807     }
3808     /**
3809      *
3810      *
3811      * <pre>
3812      * Output only. The last-modified time.
3813      * </pre>
3814      *
3815      * <code>
3816      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3817      * </code>
3818      */
mergeUpdateTime(com.google.protobuf.Timestamp value)3819     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
3820       if (updateTimeBuilder_ == null) {
3821         if (((bitField0_ & 0x00000040) != 0)
3822             && updateTime_ != null
3823             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
3824           getUpdateTimeBuilder().mergeFrom(value);
3825         } else {
3826           updateTime_ = value;
3827         }
3828       } else {
3829         updateTimeBuilder_.mergeFrom(value);
3830       }
3831       bitField0_ |= 0x00000040;
3832       onChanged();
3833       return this;
3834     }
3835     /**
3836      *
3837      *
3838      * <pre>
3839      * Output only. The last-modified time.
3840      * </pre>
3841      *
3842      * <code>
3843      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3844      * </code>
3845      */
clearUpdateTime()3846     public Builder clearUpdateTime() {
3847       bitField0_ = (bitField0_ & ~0x00000040);
3848       updateTime_ = null;
3849       if (updateTimeBuilder_ != null) {
3850         updateTimeBuilder_.dispose();
3851         updateTimeBuilder_ = null;
3852       }
3853       onChanged();
3854       return this;
3855     }
3856     /**
3857      *
3858      *
3859      * <pre>
3860      * Output only. The last-modified time.
3861      * </pre>
3862      *
3863      * <code>
3864      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3865      * </code>
3866      */
getUpdateTimeBuilder()3867     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
3868       bitField0_ |= 0x00000040;
3869       onChanged();
3870       return getUpdateTimeFieldBuilder().getBuilder();
3871     }
3872     /**
3873      *
3874      *
3875      * <pre>
3876      * Output only. The last-modified time.
3877      * </pre>
3878      *
3879      * <code>
3880      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3881      * </code>
3882      */
getUpdateTimeOrBuilder()3883     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
3884       if (updateTimeBuilder_ != null) {
3885         return updateTimeBuilder_.getMessageOrBuilder();
3886       } else {
3887         return updateTime_ == null
3888             ? com.google.protobuf.Timestamp.getDefaultInstance()
3889             : updateTime_;
3890       }
3891     }
3892     /**
3893      *
3894      *
3895      * <pre>
3896      * Output only. The last-modified time.
3897      * </pre>
3898      *
3899      * <code>
3900      * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
3901      * </code>
3902      */
3903     private com.google.protobuf.SingleFieldBuilderV3<
3904             com.google.protobuf.Timestamp,
3905             com.google.protobuf.Timestamp.Builder,
3906             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()3907         getUpdateTimeFieldBuilder() {
3908       if (updateTimeBuilder_ == null) {
3909         updateTimeBuilder_ =
3910             new com.google.protobuf.SingleFieldBuilderV3<
3911                 com.google.protobuf.Timestamp,
3912                 com.google.protobuf.Timestamp.Builder,
3913                 com.google.protobuf.TimestampOrBuilder>(
3914                 getUpdateTime(), getParentForChildren(), isClean());
3915         updateTime_ = null;
3916       }
3917       return updateTimeBuilder_;
3918     }
3919 
3920     private com.google.protobuf.Timestamp deleteTime_;
3921     private com.google.protobuf.SingleFieldBuilderV3<
3922             com.google.protobuf.Timestamp,
3923             com.google.protobuf.Timestamp.Builder,
3924             com.google.protobuf.TimestampOrBuilder>
3925         deleteTimeBuilder_;
3926     /**
3927      *
3928      *
3929      * <pre>
3930      * Output only. For a deleted resource, the deletion time. It is only
3931      * populated as a response to a Delete request.
3932      * </pre>
3933      *
3934      * <code>
3935      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3936      * </code>
3937      *
3938      * @return Whether the deleteTime field is set.
3939      */
hasDeleteTime()3940     public boolean hasDeleteTime() {
3941       return ((bitField0_ & 0x00000080) != 0);
3942     }
3943     /**
3944      *
3945      *
3946      * <pre>
3947      * Output only. For a deleted resource, the deletion time. It is only
3948      * populated as a response to a Delete request.
3949      * </pre>
3950      *
3951      * <code>
3952      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3953      * </code>
3954      *
3955      * @return The deleteTime.
3956      */
getDeleteTime()3957     public com.google.protobuf.Timestamp getDeleteTime() {
3958       if (deleteTimeBuilder_ == null) {
3959         return deleteTime_ == null
3960             ? com.google.protobuf.Timestamp.getDefaultInstance()
3961             : deleteTime_;
3962       } else {
3963         return deleteTimeBuilder_.getMessage();
3964       }
3965     }
3966     /**
3967      *
3968      *
3969      * <pre>
3970      * Output only. For a deleted resource, the deletion time. It is only
3971      * populated as a response to a Delete request.
3972      * </pre>
3973      *
3974      * <code>
3975      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
3976      * </code>
3977      */
setDeleteTime(com.google.protobuf.Timestamp value)3978     public Builder setDeleteTime(com.google.protobuf.Timestamp value) {
3979       if (deleteTimeBuilder_ == null) {
3980         if (value == null) {
3981           throw new NullPointerException();
3982         }
3983         deleteTime_ = value;
3984       } else {
3985         deleteTimeBuilder_.setMessage(value);
3986       }
3987       bitField0_ |= 0x00000080;
3988       onChanged();
3989       return this;
3990     }
3991     /**
3992      *
3993      *
3994      * <pre>
3995      * Output only. For a deleted resource, the deletion time. It is only
3996      * populated as a response to a Delete request.
3997      * </pre>
3998      *
3999      * <code>
4000      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
4001      * </code>
4002      */
setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue)4003     public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) {
4004       if (deleteTimeBuilder_ == null) {
4005         deleteTime_ = builderForValue.build();
4006       } else {
4007         deleteTimeBuilder_.setMessage(builderForValue.build());
4008       }
4009       bitField0_ |= 0x00000080;
4010       onChanged();
4011       return this;
4012     }
4013     /**
4014      *
4015      *
4016      * <pre>
4017      * Output only. For a deleted resource, the deletion time. It is only
4018      * populated as a response to a Delete request.
4019      * </pre>
4020      *
4021      * <code>
4022      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
4023      * </code>
4024      */
mergeDeleteTime(com.google.protobuf.Timestamp value)4025     public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) {
4026       if (deleteTimeBuilder_ == null) {
4027         if (((bitField0_ & 0x00000080) != 0)
4028             && deleteTime_ != null
4029             && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
4030           getDeleteTimeBuilder().mergeFrom(value);
4031         } else {
4032           deleteTime_ = value;
4033         }
4034       } else {
4035         deleteTimeBuilder_.mergeFrom(value);
4036       }
4037       bitField0_ |= 0x00000080;
4038       onChanged();
4039       return this;
4040     }
4041     /**
4042      *
4043      *
4044      * <pre>
4045      * Output only. For a deleted resource, the deletion time. It is only
4046      * populated as a response to a Delete request.
4047      * </pre>
4048      *
4049      * <code>
4050      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
4051      * </code>
4052      */
clearDeleteTime()4053     public Builder clearDeleteTime() {
4054       bitField0_ = (bitField0_ & ~0x00000080);
4055       deleteTime_ = null;
4056       if (deleteTimeBuilder_ != null) {
4057         deleteTimeBuilder_.dispose();
4058         deleteTimeBuilder_ = null;
4059       }
4060       onChanged();
4061       return this;
4062     }
4063     /**
4064      *
4065      *
4066      * <pre>
4067      * Output only. For a deleted resource, the deletion time. It is only
4068      * populated as a response to a Delete request.
4069      * </pre>
4070      *
4071      * <code>
4072      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
4073      * </code>
4074      */
getDeleteTimeBuilder()4075     public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() {
4076       bitField0_ |= 0x00000080;
4077       onChanged();
4078       return getDeleteTimeFieldBuilder().getBuilder();
4079     }
4080     /**
4081      *
4082      *
4083      * <pre>
4084      * Output only. For a deleted resource, the deletion time. It is only
4085      * populated as a response to a Delete request.
4086      * </pre>
4087      *
4088      * <code>
4089      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
4090      * </code>
4091      */
getDeleteTimeOrBuilder()4092     public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
4093       if (deleteTimeBuilder_ != null) {
4094         return deleteTimeBuilder_.getMessageOrBuilder();
4095       } else {
4096         return deleteTime_ == null
4097             ? com.google.protobuf.Timestamp.getDefaultInstance()
4098             : deleteTime_;
4099       }
4100     }
4101     /**
4102      *
4103      *
4104      * <pre>
4105      * Output only. For a deleted resource, the deletion time. It is only
4106      * populated as a response to a Delete request.
4107      * </pre>
4108      *
4109      * <code>
4110      * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
4111      * </code>
4112      */
4113     private com.google.protobuf.SingleFieldBuilderV3<
4114             com.google.protobuf.Timestamp,
4115             com.google.protobuf.Timestamp.Builder,
4116             com.google.protobuf.TimestampOrBuilder>
getDeleteTimeFieldBuilder()4117         getDeleteTimeFieldBuilder() {
4118       if (deleteTimeBuilder_ == null) {
4119         deleteTimeBuilder_ =
4120             new com.google.protobuf.SingleFieldBuilderV3<
4121                 com.google.protobuf.Timestamp,
4122                 com.google.protobuf.Timestamp.Builder,
4123                 com.google.protobuf.TimestampOrBuilder>(
4124                 getDeleteTime(), getParentForChildren(), isClean());
4125         deleteTime_ = null;
4126       }
4127       return deleteTimeBuilder_;
4128     }
4129 
4130     private com.google.protobuf.Timestamp expireTime_;
4131     private com.google.protobuf.SingleFieldBuilderV3<
4132             com.google.protobuf.Timestamp,
4133             com.google.protobuf.Timestamp.Builder,
4134             com.google.protobuf.TimestampOrBuilder>
4135         expireTimeBuilder_;
4136     /**
4137      *
4138      *
4139      * <pre>
4140      * Output only. For a deleted resource, the time after which it will be
4141      * permamently deleted. It is only populated as a response to a Delete
4142      * request.
4143      * </pre>
4144      *
4145      * <code>
4146      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4147      * </code>
4148      *
4149      * @return Whether the expireTime field is set.
4150      */
hasExpireTime()4151     public boolean hasExpireTime() {
4152       return ((bitField0_ & 0x00000100) != 0);
4153     }
4154     /**
4155      *
4156      *
4157      * <pre>
4158      * Output only. For a deleted resource, the time after which it will be
4159      * permamently deleted. It is only populated as a response to a Delete
4160      * request.
4161      * </pre>
4162      *
4163      * <code>
4164      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4165      * </code>
4166      *
4167      * @return The expireTime.
4168      */
getExpireTime()4169     public com.google.protobuf.Timestamp getExpireTime() {
4170       if (expireTimeBuilder_ == null) {
4171         return expireTime_ == null
4172             ? com.google.protobuf.Timestamp.getDefaultInstance()
4173             : expireTime_;
4174       } else {
4175         return expireTimeBuilder_.getMessage();
4176       }
4177     }
4178     /**
4179      *
4180      *
4181      * <pre>
4182      * Output only. For a deleted resource, the time after which it will be
4183      * permamently deleted. It is only populated as a response to a Delete
4184      * request.
4185      * </pre>
4186      *
4187      * <code>
4188      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4189      * </code>
4190      */
setExpireTime(com.google.protobuf.Timestamp value)4191     public Builder setExpireTime(com.google.protobuf.Timestamp value) {
4192       if (expireTimeBuilder_ == null) {
4193         if (value == null) {
4194           throw new NullPointerException();
4195         }
4196         expireTime_ = value;
4197       } else {
4198         expireTimeBuilder_.setMessage(value);
4199       }
4200       bitField0_ |= 0x00000100;
4201       onChanged();
4202       return this;
4203     }
4204     /**
4205      *
4206      *
4207      * <pre>
4208      * Output only. For a deleted resource, the time after which it will be
4209      * permamently deleted. It is only populated as a response to a Delete
4210      * request.
4211      * </pre>
4212      *
4213      * <code>
4214      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4215      * </code>
4216      */
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)4217     public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
4218       if (expireTimeBuilder_ == null) {
4219         expireTime_ = builderForValue.build();
4220       } else {
4221         expireTimeBuilder_.setMessage(builderForValue.build());
4222       }
4223       bitField0_ |= 0x00000100;
4224       onChanged();
4225       return this;
4226     }
4227     /**
4228      *
4229      *
4230      * <pre>
4231      * Output only. For a deleted resource, the time after which it will be
4232      * permamently deleted. It is only populated as a response to a Delete
4233      * request.
4234      * </pre>
4235      *
4236      * <code>
4237      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4238      * </code>
4239      */
mergeExpireTime(com.google.protobuf.Timestamp value)4240     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
4241       if (expireTimeBuilder_ == null) {
4242         if (((bitField0_ & 0x00000100) != 0)
4243             && expireTime_ != null
4244             && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
4245           getExpireTimeBuilder().mergeFrom(value);
4246         } else {
4247           expireTime_ = value;
4248         }
4249       } else {
4250         expireTimeBuilder_.mergeFrom(value);
4251       }
4252       bitField0_ |= 0x00000100;
4253       onChanged();
4254       return this;
4255     }
4256     /**
4257      *
4258      *
4259      * <pre>
4260      * Output only. For a deleted resource, the time after which it will be
4261      * permamently deleted. It is only populated as a response to a Delete
4262      * request.
4263      * </pre>
4264      *
4265      * <code>
4266      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4267      * </code>
4268      */
clearExpireTime()4269     public Builder clearExpireTime() {
4270       bitField0_ = (bitField0_ & ~0x00000100);
4271       expireTime_ = null;
4272       if (expireTimeBuilder_ != null) {
4273         expireTimeBuilder_.dispose();
4274         expireTimeBuilder_ = null;
4275       }
4276       onChanged();
4277       return this;
4278     }
4279     /**
4280      *
4281      *
4282      * <pre>
4283      * Output only. For a deleted resource, the time after which it will be
4284      * permamently deleted. It is only populated as a response to a Delete
4285      * request.
4286      * </pre>
4287      *
4288      * <code>
4289      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4290      * </code>
4291      */
getExpireTimeBuilder()4292     public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
4293       bitField0_ |= 0x00000100;
4294       onChanged();
4295       return getExpireTimeFieldBuilder().getBuilder();
4296     }
4297     /**
4298      *
4299      *
4300      * <pre>
4301      * Output only. For a deleted resource, the time after which it will be
4302      * permamently deleted. It is only populated as a response to a Delete
4303      * request.
4304      * </pre>
4305      *
4306      * <code>
4307      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4308      * </code>
4309      */
getExpireTimeOrBuilder()4310     public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
4311       if (expireTimeBuilder_ != null) {
4312         return expireTimeBuilder_.getMessageOrBuilder();
4313       } else {
4314         return expireTime_ == null
4315             ? com.google.protobuf.Timestamp.getDefaultInstance()
4316             : expireTime_;
4317       }
4318     }
4319     /**
4320      *
4321      *
4322      * <pre>
4323      * Output only. For a deleted resource, the time after which it will be
4324      * permamently deleted. It is only populated as a response to a Delete
4325      * request.
4326      * </pre>
4327      *
4328      * <code>
4329      * .google.protobuf.Timestamp expire_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
4330      * </code>
4331      */
4332     private com.google.protobuf.SingleFieldBuilderV3<
4333             com.google.protobuf.Timestamp,
4334             com.google.protobuf.Timestamp.Builder,
4335             com.google.protobuf.TimestampOrBuilder>
getExpireTimeFieldBuilder()4336         getExpireTimeFieldBuilder() {
4337       if (expireTimeBuilder_ == null) {
4338         expireTimeBuilder_ =
4339             new com.google.protobuf.SingleFieldBuilderV3<
4340                 com.google.protobuf.Timestamp,
4341                 com.google.protobuf.Timestamp.Builder,
4342                 com.google.protobuf.TimestampOrBuilder>(
4343                 getExpireTime(), getParentForChildren(), isClean());
4344         expireTime_ = null;
4345       }
4346       return expireTimeBuilder_;
4347     }
4348 
4349     private int launchStage_ = 0;
4350     /**
4351      *
4352      *
4353      * <pre>
4354      * The least stable launch stage needed to create this resource, as defined by
4355      * [Google Cloud Platform Launch
4356      * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
4357      * `ALPHA`, `BETA`, and `GA`.
4358      * &lt;p&gt;Note that this value might not be what was used
4359      * as input. For example, if ALPHA was provided as input in the parent
4360      * resource, but only BETA and GA-level features are were, this field will be
4361      * BETA.
4362      * </pre>
4363      *
4364      * <code>.google.api.LaunchStage launch_stage = 10;</code>
4365      *
4366      * @return The enum numeric value on the wire for launchStage.
4367      */
4368     @java.lang.Override
getLaunchStageValue()4369     public int getLaunchStageValue() {
4370       return launchStage_;
4371     }
4372     /**
4373      *
4374      *
4375      * <pre>
4376      * The least stable launch stage needed to create this resource, as defined by
4377      * [Google Cloud Platform Launch
4378      * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
4379      * `ALPHA`, `BETA`, and `GA`.
4380      * &lt;p&gt;Note that this value might not be what was used
4381      * as input. For example, if ALPHA was provided as input in the parent
4382      * resource, but only BETA and GA-level features are were, this field will be
4383      * BETA.
4384      * </pre>
4385      *
4386      * <code>.google.api.LaunchStage launch_stage = 10;</code>
4387      *
4388      * @param value The enum numeric value on the wire for launchStage to set.
4389      * @return This builder for chaining.
4390      */
setLaunchStageValue(int value)4391     public Builder setLaunchStageValue(int value) {
4392       launchStage_ = value;
4393       bitField0_ |= 0x00000200;
4394       onChanged();
4395       return this;
4396     }
4397     /**
4398      *
4399      *
4400      * <pre>
4401      * The least stable launch stage needed to create this resource, as defined by
4402      * [Google Cloud Platform Launch
4403      * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
4404      * `ALPHA`, `BETA`, and `GA`.
4405      * &lt;p&gt;Note that this value might not be what was used
4406      * as input. For example, if ALPHA was provided as input in the parent
4407      * resource, but only BETA and GA-level features are were, this field will be
4408      * BETA.
4409      * </pre>
4410      *
4411      * <code>.google.api.LaunchStage launch_stage = 10;</code>
4412      *
4413      * @return The launchStage.
4414      */
4415     @java.lang.Override
getLaunchStage()4416     public com.google.api.LaunchStage getLaunchStage() {
4417       com.google.api.LaunchStage result = com.google.api.LaunchStage.forNumber(launchStage_);
4418       return result == null ? com.google.api.LaunchStage.UNRECOGNIZED : result;
4419     }
4420     /**
4421      *
4422      *
4423      * <pre>
4424      * The least stable launch stage needed to create this resource, as defined by
4425      * [Google Cloud Platform Launch
4426      * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
4427      * `ALPHA`, `BETA`, and `GA`.
4428      * &lt;p&gt;Note that this value might not be what was used
4429      * as input. For example, if ALPHA was provided as input in the parent
4430      * resource, but only BETA and GA-level features are were, this field will be
4431      * BETA.
4432      * </pre>
4433      *
4434      * <code>.google.api.LaunchStage launch_stage = 10;</code>
4435      *
4436      * @param value The launchStage to set.
4437      * @return This builder for chaining.
4438      */
setLaunchStage(com.google.api.LaunchStage value)4439     public Builder setLaunchStage(com.google.api.LaunchStage value) {
4440       if (value == null) {
4441         throw new NullPointerException();
4442       }
4443       bitField0_ |= 0x00000200;
4444       launchStage_ = value.getNumber();
4445       onChanged();
4446       return this;
4447     }
4448     /**
4449      *
4450      *
4451      * <pre>
4452      * The least stable launch stage needed to create this resource, as defined by
4453      * [Google Cloud Platform Launch
4454      * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
4455      * `ALPHA`, `BETA`, and `GA`.
4456      * &lt;p&gt;Note that this value might not be what was used
4457      * as input. For example, if ALPHA was provided as input in the parent
4458      * resource, but only BETA and GA-level features are were, this field will be
4459      * BETA.
4460      * </pre>
4461      *
4462      * <code>.google.api.LaunchStage launch_stage = 10;</code>
4463      *
4464      * @return This builder for chaining.
4465      */
clearLaunchStage()4466     public Builder clearLaunchStage() {
4467       bitField0_ = (bitField0_ & ~0x00000200);
4468       launchStage_ = 0;
4469       onChanged();
4470       return this;
4471     }
4472 
4473     private java.lang.Object service_ = "";
4474     /**
4475      *
4476      *
4477      * <pre>
4478      * Output only. The name of the parent service.
4479      * </pre>
4480      *
4481      * <code>
4482      * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4483      * </code>
4484      *
4485      * @return The service.
4486      */
getService()4487     public java.lang.String getService() {
4488       java.lang.Object ref = service_;
4489       if (!(ref instanceof java.lang.String)) {
4490         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
4491         java.lang.String s = bs.toStringUtf8();
4492         service_ = s;
4493         return s;
4494       } else {
4495         return (java.lang.String) ref;
4496       }
4497     }
4498     /**
4499      *
4500      *
4501      * <pre>
4502      * Output only. The name of the parent service.
4503      * </pre>
4504      *
4505      * <code>
4506      * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4507      * </code>
4508      *
4509      * @return The bytes for service.
4510      */
getServiceBytes()4511     public com.google.protobuf.ByteString getServiceBytes() {
4512       java.lang.Object ref = service_;
4513       if (ref instanceof String) {
4514         com.google.protobuf.ByteString b =
4515             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
4516         service_ = b;
4517         return b;
4518       } else {
4519         return (com.google.protobuf.ByteString) ref;
4520       }
4521     }
4522     /**
4523      *
4524      *
4525      * <pre>
4526      * Output only. The name of the parent service.
4527      * </pre>
4528      *
4529      * <code>
4530      * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4531      * </code>
4532      *
4533      * @param value The service to set.
4534      * @return This builder for chaining.
4535      */
setService(java.lang.String value)4536     public Builder setService(java.lang.String value) {
4537       if (value == null) {
4538         throw new NullPointerException();
4539       }
4540       service_ = value;
4541       bitField0_ |= 0x00000400;
4542       onChanged();
4543       return this;
4544     }
4545     /**
4546      *
4547      *
4548      * <pre>
4549      * Output only. The name of the parent service.
4550      * </pre>
4551      *
4552      * <code>
4553      * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4554      * </code>
4555      *
4556      * @return This builder for chaining.
4557      */
clearService()4558     public Builder clearService() {
4559       service_ = getDefaultInstance().getService();
4560       bitField0_ = (bitField0_ & ~0x00000400);
4561       onChanged();
4562       return this;
4563     }
4564     /**
4565      *
4566      *
4567      * <pre>
4568      * Output only. The name of the parent service.
4569      * </pre>
4570      *
4571      * <code>
4572      * string service = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
4573      * </code>
4574      *
4575      * @param value The bytes for service to set.
4576      * @return This builder for chaining.
4577      */
setServiceBytes(com.google.protobuf.ByteString value)4578     public Builder setServiceBytes(com.google.protobuf.ByteString value) {
4579       if (value == null) {
4580         throw new NullPointerException();
4581       }
4582       checkByteStringIsUtf8(value);
4583       service_ = value;
4584       bitField0_ |= 0x00000400;
4585       onChanged();
4586       return this;
4587     }
4588 
4589     private com.google.cloud.run.v2.RevisionScaling scaling_;
4590     private com.google.protobuf.SingleFieldBuilderV3<
4591             com.google.cloud.run.v2.RevisionScaling,
4592             com.google.cloud.run.v2.RevisionScaling.Builder,
4593             com.google.cloud.run.v2.RevisionScalingOrBuilder>
4594         scalingBuilder_;
4595     /**
4596      *
4597      *
4598      * <pre>
4599      * Scaling settings for this revision.
4600      * </pre>
4601      *
4602      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4603      *
4604      * @return Whether the scaling field is set.
4605      */
hasScaling()4606     public boolean hasScaling() {
4607       return ((bitField0_ & 0x00000800) != 0);
4608     }
4609     /**
4610      *
4611      *
4612      * <pre>
4613      * Scaling settings for this revision.
4614      * </pre>
4615      *
4616      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4617      *
4618      * @return The scaling.
4619      */
getScaling()4620     public com.google.cloud.run.v2.RevisionScaling getScaling() {
4621       if (scalingBuilder_ == null) {
4622         return scaling_ == null
4623             ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance()
4624             : scaling_;
4625       } else {
4626         return scalingBuilder_.getMessage();
4627       }
4628     }
4629     /**
4630      *
4631      *
4632      * <pre>
4633      * Scaling settings for this revision.
4634      * </pre>
4635      *
4636      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4637      */
setScaling(com.google.cloud.run.v2.RevisionScaling value)4638     public Builder setScaling(com.google.cloud.run.v2.RevisionScaling value) {
4639       if (scalingBuilder_ == null) {
4640         if (value == null) {
4641           throw new NullPointerException();
4642         }
4643         scaling_ = value;
4644       } else {
4645         scalingBuilder_.setMessage(value);
4646       }
4647       bitField0_ |= 0x00000800;
4648       onChanged();
4649       return this;
4650     }
4651     /**
4652      *
4653      *
4654      * <pre>
4655      * Scaling settings for this revision.
4656      * </pre>
4657      *
4658      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4659      */
setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue)4660     public Builder setScaling(com.google.cloud.run.v2.RevisionScaling.Builder builderForValue) {
4661       if (scalingBuilder_ == null) {
4662         scaling_ = builderForValue.build();
4663       } else {
4664         scalingBuilder_.setMessage(builderForValue.build());
4665       }
4666       bitField0_ |= 0x00000800;
4667       onChanged();
4668       return this;
4669     }
4670     /**
4671      *
4672      *
4673      * <pre>
4674      * Scaling settings for this revision.
4675      * </pre>
4676      *
4677      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4678      */
mergeScaling(com.google.cloud.run.v2.RevisionScaling value)4679     public Builder mergeScaling(com.google.cloud.run.v2.RevisionScaling value) {
4680       if (scalingBuilder_ == null) {
4681         if (((bitField0_ & 0x00000800) != 0)
4682             && scaling_ != null
4683             && scaling_ != com.google.cloud.run.v2.RevisionScaling.getDefaultInstance()) {
4684           getScalingBuilder().mergeFrom(value);
4685         } else {
4686           scaling_ = value;
4687         }
4688       } else {
4689         scalingBuilder_.mergeFrom(value);
4690       }
4691       bitField0_ |= 0x00000800;
4692       onChanged();
4693       return this;
4694     }
4695     /**
4696      *
4697      *
4698      * <pre>
4699      * Scaling settings for this revision.
4700      * </pre>
4701      *
4702      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4703      */
clearScaling()4704     public Builder clearScaling() {
4705       bitField0_ = (bitField0_ & ~0x00000800);
4706       scaling_ = null;
4707       if (scalingBuilder_ != null) {
4708         scalingBuilder_.dispose();
4709         scalingBuilder_ = null;
4710       }
4711       onChanged();
4712       return this;
4713     }
4714     /**
4715      *
4716      *
4717      * <pre>
4718      * Scaling settings for this revision.
4719      * </pre>
4720      *
4721      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4722      */
getScalingBuilder()4723     public com.google.cloud.run.v2.RevisionScaling.Builder getScalingBuilder() {
4724       bitField0_ |= 0x00000800;
4725       onChanged();
4726       return getScalingFieldBuilder().getBuilder();
4727     }
4728     /**
4729      *
4730      *
4731      * <pre>
4732      * Scaling settings for this revision.
4733      * </pre>
4734      *
4735      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4736      */
getScalingOrBuilder()4737     public com.google.cloud.run.v2.RevisionScalingOrBuilder getScalingOrBuilder() {
4738       if (scalingBuilder_ != null) {
4739         return scalingBuilder_.getMessageOrBuilder();
4740       } else {
4741         return scaling_ == null
4742             ? com.google.cloud.run.v2.RevisionScaling.getDefaultInstance()
4743             : scaling_;
4744       }
4745     }
4746     /**
4747      *
4748      *
4749      * <pre>
4750      * Scaling settings for this revision.
4751      * </pre>
4752      *
4753      * <code>.google.cloud.run.v2.RevisionScaling scaling = 12;</code>
4754      */
4755     private com.google.protobuf.SingleFieldBuilderV3<
4756             com.google.cloud.run.v2.RevisionScaling,
4757             com.google.cloud.run.v2.RevisionScaling.Builder,
4758             com.google.cloud.run.v2.RevisionScalingOrBuilder>
getScalingFieldBuilder()4759         getScalingFieldBuilder() {
4760       if (scalingBuilder_ == null) {
4761         scalingBuilder_ =
4762             new com.google.protobuf.SingleFieldBuilderV3<
4763                 com.google.cloud.run.v2.RevisionScaling,
4764                 com.google.cloud.run.v2.RevisionScaling.Builder,
4765                 com.google.cloud.run.v2.RevisionScalingOrBuilder>(
4766                 getScaling(), getParentForChildren(), isClean());
4767         scaling_ = null;
4768       }
4769       return scalingBuilder_;
4770     }
4771 
4772     private com.google.cloud.run.v2.VpcAccess vpcAccess_;
4773     private com.google.protobuf.SingleFieldBuilderV3<
4774             com.google.cloud.run.v2.VpcAccess,
4775             com.google.cloud.run.v2.VpcAccess.Builder,
4776             com.google.cloud.run.v2.VpcAccessOrBuilder>
4777         vpcAccessBuilder_;
4778     /**
4779      *
4780      *
4781      * <pre>
4782      * VPC Access configuration for this Revision. For more information, visit
4783      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4784      * </pre>
4785      *
4786      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4787      *
4788      * @return Whether the vpcAccess field is set.
4789      */
hasVpcAccess()4790     public boolean hasVpcAccess() {
4791       return ((bitField0_ & 0x00001000) != 0);
4792     }
4793     /**
4794      *
4795      *
4796      * <pre>
4797      * VPC Access configuration for this Revision. For more information, visit
4798      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4799      * </pre>
4800      *
4801      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4802      *
4803      * @return The vpcAccess.
4804      */
getVpcAccess()4805     public com.google.cloud.run.v2.VpcAccess getVpcAccess() {
4806       if (vpcAccessBuilder_ == null) {
4807         return vpcAccess_ == null
4808             ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance()
4809             : vpcAccess_;
4810       } else {
4811         return vpcAccessBuilder_.getMessage();
4812       }
4813     }
4814     /**
4815      *
4816      *
4817      * <pre>
4818      * VPC Access configuration for this Revision. For more information, visit
4819      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4820      * </pre>
4821      *
4822      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4823      */
setVpcAccess(com.google.cloud.run.v2.VpcAccess value)4824     public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
4825       if (vpcAccessBuilder_ == null) {
4826         if (value == null) {
4827           throw new NullPointerException();
4828         }
4829         vpcAccess_ = value;
4830       } else {
4831         vpcAccessBuilder_.setMessage(value);
4832       }
4833       bitField0_ |= 0x00001000;
4834       onChanged();
4835       return this;
4836     }
4837     /**
4838      *
4839      *
4840      * <pre>
4841      * VPC Access configuration for this Revision. For more information, visit
4842      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4843      * </pre>
4844      *
4845      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4846      */
setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue)4847     public Builder setVpcAccess(com.google.cloud.run.v2.VpcAccess.Builder builderForValue) {
4848       if (vpcAccessBuilder_ == null) {
4849         vpcAccess_ = builderForValue.build();
4850       } else {
4851         vpcAccessBuilder_.setMessage(builderForValue.build());
4852       }
4853       bitField0_ |= 0x00001000;
4854       onChanged();
4855       return this;
4856     }
4857     /**
4858      *
4859      *
4860      * <pre>
4861      * VPC Access configuration for this Revision. For more information, visit
4862      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4863      * </pre>
4864      *
4865      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4866      */
mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value)4867     public Builder mergeVpcAccess(com.google.cloud.run.v2.VpcAccess value) {
4868       if (vpcAccessBuilder_ == null) {
4869         if (((bitField0_ & 0x00001000) != 0)
4870             && vpcAccess_ != null
4871             && vpcAccess_ != com.google.cloud.run.v2.VpcAccess.getDefaultInstance()) {
4872           getVpcAccessBuilder().mergeFrom(value);
4873         } else {
4874           vpcAccess_ = value;
4875         }
4876       } else {
4877         vpcAccessBuilder_.mergeFrom(value);
4878       }
4879       bitField0_ |= 0x00001000;
4880       onChanged();
4881       return this;
4882     }
4883     /**
4884      *
4885      *
4886      * <pre>
4887      * VPC Access configuration for this Revision. For more information, visit
4888      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4889      * </pre>
4890      *
4891      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4892      */
clearVpcAccess()4893     public Builder clearVpcAccess() {
4894       bitField0_ = (bitField0_ & ~0x00001000);
4895       vpcAccess_ = null;
4896       if (vpcAccessBuilder_ != null) {
4897         vpcAccessBuilder_.dispose();
4898         vpcAccessBuilder_ = null;
4899       }
4900       onChanged();
4901       return this;
4902     }
4903     /**
4904      *
4905      *
4906      * <pre>
4907      * VPC Access configuration for this Revision. For more information, visit
4908      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4909      * </pre>
4910      *
4911      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4912      */
getVpcAccessBuilder()4913     public com.google.cloud.run.v2.VpcAccess.Builder getVpcAccessBuilder() {
4914       bitField0_ |= 0x00001000;
4915       onChanged();
4916       return getVpcAccessFieldBuilder().getBuilder();
4917     }
4918     /**
4919      *
4920      *
4921      * <pre>
4922      * VPC Access configuration for this Revision. For more information, visit
4923      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4924      * </pre>
4925      *
4926      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4927      */
getVpcAccessOrBuilder()4928     public com.google.cloud.run.v2.VpcAccessOrBuilder getVpcAccessOrBuilder() {
4929       if (vpcAccessBuilder_ != null) {
4930         return vpcAccessBuilder_.getMessageOrBuilder();
4931       } else {
4932         return vpcAccess_ == null
4933             ? com.google.cloud.run.v2.VpcAccess.getDefaultInstance()
4934             : vpcAccess_;
4935       }
4936     }
4937     /**
4938      *
4939      *
4940      * <pre>
4941      * VPC Access configuration for this Revision. For more information, visit
4942      * https://cloud.google.com/run/docs/configuring/connecting-vpc.
4943      * </pre>
4944      *
4945      * <code>.google.cloud.run.v2.VpcAccess vpc_access = 13;</code>
4946      */
4947     private com.google.protobuf.SingleFieldBuilderV3<
4948             com.google.cloud.run.v2.VpcAccess,
4949             com.google.cloud.run.v2.VpcAccess.Builder,
4950             com.google.cloud.run.v2.VpcAccessOrBuilder>
getVpcAccessFieldBuilder()4951         getVpcAccessFieldBuilder() {
4952       if (vpcAccessBuilder_ == null) {
4953         vpcAccessBuilder_ =
4954             new com.google.protobuf.SingleFieldBuilderV3<
4955                 com.google.cloud.run.v2.VpcAccess,
4956                 com.google.cloud.run.v2.VpcAccess.Builder,
4957                 com.google.cloud.run.v2.VpcAccessOrBuilder>(
4958                 getVpcAccess(), getParentForChildren(), isClean());
4959         vpcAccess_ = null;
4960       }
4961       return vpcAccessBuilder_;
4962     }
4963 
4964     private int maxInstanceRequestConcurrency_;
4965     /**
4966      *
4967      *
4968      * <pre>
4969      * Sets the maximum number of requests that each serving instance can receive.
4970      * </pre>
4971      *
4972      * <code>int32 max_instance_request_concurrency = 34;</code>
4973      *
4974      * @return The maxInstanceRequestConcurrency.
4975      */
4976     @java.lang.Override
getMaxInstanceRequestConcurrency()4977     public int getMaxInstanceRequestConcurrency() {
4978       return maxInstanceRequestConcurrency_;
4979     }
4980     /**
4981      *
4982      *
4983      * <pre>
4984      * Sets the maximum number of requests that each serving instance can receive.
4985      * </pre>
4986      *
4987      * <code>int32 max_instance_request_concurrency = 34;</code>
4988      *
4989      * @param value The maxInstanceRequestConcurrency to set.
4990      * @return This builder for chaining.
4991      */
setMaxInstanceRequestConcurrency(int value)4992     public Builder setMaxInstanceRequestConcurrency(int value) {
4993 
4994       maxInstanceRequestConcurrency_ = value;
4995       bitField0_ |= 0x00002000;
4996       onChanged();
4997       return this;
4998     }
4999     /**
5000      *
5001      *
5002      * <pre>
5003      * Sets the maximum number of requests that each serving instance can receive.
5004      * </pre>
5005      *
5006      * <code>int32 max_instance_request_concurrency = 34;</code>
5007      *
5008      * @return This builder for chaining.
5009      */
clearMaxInstanceRequestConcurrency()5010     public Builder clearMaxInstanceRequestConcurrency() {
5011       bitField0_ = (bitField0_ & ~0x00002000);
5012       maxInstanceRequestConcurrency_ = 0;
5013       onChanged();
5014       return this;
5015     }
5016 
5017     private com.google.protobuf.Duration timeout_;
5018     private com.google.protobuf.SingleFieldBuilderV3<
5019             com.google.protobuf.Duration,
5020             com.google.protobuf.Duration.Builder,
5021             com.google.protobuf.DurationOrBuilder>
5022         timeoutBuilder_;
5023     /**
5024      *
5025      *
5026      * <pre>
5027      * Max allowed time for an instance to respond to a request.
5028      * </pre>
5029      *
5030      * <code>.google.protobuf.Duration timeout = 15;</code>
5031      *
5032      * @return Whether the timeout field is set.
5033      */
hasTimeout()5034     public boolean hasTimeout() {
5035       return ((bitField0_ & 0x00004000) != 0);
5036     }
5037     /**
5038      *
5039      *
5040      * <pre>
5041      * Max allowed time for an instance to respond to a request.
5042      * </pre>
5043      *
5044      * <code>.google.protobuf.Duration timeout = 15;</code>
5045      *
5046      * @return The timeout.
5047      */
getTimeout()5048     public com.google.protobuf.Duration getTimeout() {
5049       if (timeoutBuilder_ == null) {
5050         return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
5051       } else {
5052         return timeoutBuilder_.getMessage();
5053       }
5054     }
5055     /**
5056      *
5057      *
5058      * <pre>
5059      * Max allowed time for an instance to respond to a request.
5060      * </pre>
5061      *
5062      * <code>.google.protobuf.Duration timeout = 15;</code>
5063      */
setTimeout(com.google.protobuf.Duration value)5064     public Builder setTimeout(com.google.protobuf.Duration value) {
5065       if (timeoutBuilder_ == null) {
5066         if (value == null) {
5067           throw new NullPointerException();
5068         }
5069         timeout_ = value;
5070       } else {
5071         timeoutBuilder_.setMessage(value);
5072       }
5073       bitField0_ |= 0x00004000;
5074       onChanged();
5075       return this;
5076     }
5077     /**
5078      *
5079      *
5080      * <pre>
5081      * Max allowed time for an instance to respond to a request.
5082      * </pre>
5083      *
5084      * <code>.google.protobuf.Duration timeout = 15;</code>
5085      */
setTimeout(com.google.protobuf.Duration.Builder builderForValue)5086     public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) {
5087       if (timeoutBuilder_ == null) {
5088         timeout_ = builderForValue.build();
5089       } else {
5090         timeoutBuilder_.setMessage(builderForValue.build());
5091       }
5092       bitField0_ |= 0x00004000;
5093       onChanged();
5094       return this;
5095     }
5096     /**
5097      *
5098      *
5099      * <pre>
5100      * Max allowed time for an instance to respond to a request.
5101      * </pre>
5102      *
5103      * <code>.google.protobuf.Duration timeout = 15;</code>
5104      */
mergeTimeout(com.google.protobuf.Duration value)5105     public Builder mergeTimeout(com.google.protobuf.Duration value) {
5106       if (timeoutBuilder_ == null) {
5107         if (((bitField0_ & 0x00004000) != 0)
5108             && timeout_ != null
5109             && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) {
5110           getTimeoutBuilder().mergeFrom(value);
5111         } else {
5112           timeout_ = value;
5113         }
5114       } else {
5115         timeoutBuilder_.mergeFrom(value);
5116       }
5117       bitField0_ |= 0x00004000;
5118       onChanged();
5119       return this;
5120     }
5121     /**
5122      *
5123      *
5124      * <pre>
5125      * Max allowed time for an instance to respond to a request.
5126      * </pre>
5127      *
5128      * <code>.google.protobuf.Duration timeout = 15;</code>
5129      */
clearTimeout()5130     public Builder clearTimeout() {
5131       bitField0_ = (bitField0_ & ~0x00004000);
5132       timeout_ = null;
5133       if (timeoutBuilder_ != null) {
5134         timeoutBuilder_.dispose();
5135         timeoutBuilder_ = null;
5136       }
5137       onChanged();
5138       return this;
5139     }
5140     /**
5141      *
5142      *
5143      * <pre>
5144      * Max allowed time for an instance to respond to a request.
5145      * </pre>
5146      *
5147      * <code>.google.protobuf.Duration timeout = 15;</code>
5148      */
getTimeoutBuilder()5149     public com.google.protobuf.Duration.Builder getTimeoutBuilder() {
5150       bitField0_ |= 0x00004000;
5151       onChanged();
5152       return getTimeoutFieldBuilder().getBuilder();
5153     }
5154     /**
5155      *
5156      *
5157      * <pre>
5158      * Max allowed time for an instance to respond to a request.
5159      * </pre>
5160      *
5161      * <code>.google.protobuf.Duration timeout = 15;</code>
5162      */
getTimeoutOrBuilder()5163     public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() {
5164       if (timeoutBuilder_ != null) {
5165         return timeoutBuilder_.getMessageOrBuilder();
5166       } else {
5167         return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_;
5168       }
5169     }
5170     /**
5171      *
5172      *
5173      * <pre>
5174      * Max allowed time for an instance to respond to a request.
5175      * </pre>
5176      *
5177      * <code>.google.protobuf.Duration timeout = 15;</code>
5178      */
5179     private com.google.protobuf.SingleFieldBuilderV3<
5180             com.google.protobuf.Duration,
5181             com.google.protobuf.Duration.Builder,
5182             com.google.protobuf.DurationOrBuilder>
getTimeoutFieldBuilder()5183         getTimeoutFieldBuilder() {
5184       if (timeoutBuilder_ == null) {
5185         timeoutBuilder_ =
5186             new com.google.protobuf.SingleFieldBuilderV3<
5187                 com.google.protobuf.Duration,
5188                 com.google.protobuf.Duration.Builder,
5189                 com.google.protobuf.DurationOrBuilder>(
5190                 getTimeout(), getParentForChildren(), isClean());
5191         timeout_ = null;
5192       }
5193       return timeoutBuilder_;
5194     }
5195 
5196     private java.lang.Object serviceAccount_ = "";
5197     /**
5198      *
5199      *
5200      * <pre>
5201      * Email address of the IAM service account associated with the revision of
5202      * the service. The service account represents the identity of the running
5203      * revision, and determines what permissions the revision has.
5204      * </pre>
5205      *
5206      * <code>string service_account = 16;</code>
5207      *
5208      * @return The serviceAccount.
5209      */
getServiceAccount()5210     public java.lang.String getServiceAccount() {
5211       java.lang.Object ref = serviceAccount_;
5212       if (!(ref instanceof java.lang.String)) {
5213         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
5214         java.lang.String s = bs.toStringUtf8();
5215         serviceAccount_ = s;
5216         return s;
5217       } else {
5218         return (java.lang.String) ref;
5219       }
5220     }
5221     /**
5222      *
5223      *
5224      * <pre>
5225      * Email address of the IAM service account associated with the revision of
5226      * the service. The service account represents the identity of the running
5227      * revision, and determines what permissions the revision has.
5228      * </pre>
5229      *
5230      * <code>string service_account = 16;</code>
5231      *
5232      * @return The bytes for serviceAccount.
5233      */
getServiceAccountBytes()5234     public com.google.protobuf.ByteString getServiceAccountBytes() {
5235       java.lang.Object ref = serviceAccount_;
5236       if (ref instanceof String) {
5237         com.google.protobuf.ByteString b =
5238             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
5239         serviceAccount_ = b;
5240         return b;
5241       } else {
5242         return (com.google.protobuf.ByteString) ref;
5243       }
5244     }
5245     /**
5246      *
5247      *
5248      * <pre>
5249      * Email address of the IAM service account associated with the revision of
5250      * the service. The service account represents the identity of the running
5251      * revision, and determines what permissions the revision has.
5252      * </pre>
5253      *
5254      * <code>string service_account = 16;</code>
5255      *
5256      * @param value The serviceAccount to set.
5257      * @return This builder for chaining.
5258      */
setServiceAccount(java.lang.String value)5259     public Builder setServiceAccount(java.lang.String value) {
5260       if (value == null) {
5261         throw new NullPointerException();
5262       }
5263       serviceAccount_ = value;
5264       bitField0_ |= 0x00008000;
5265       onChanged();
5266       return this;
5267     }
5268     /**
5269      *
5270      *
5271      * <pre>
5272      * Email address of the IAM service account associated with the revision of
5273      * the service. The service account represents the identity of the running
5274      * revision, and determines what permissions the revision has.
5275      * </pre>
5276      *
5277      * <code>string service_account = 16;</code>
5278      *
5279      * @return This builder for chaining.
5280      */
clearServiceAccount()5281     public Builder clearServiceAccount() {
5282       serviceAccount_ = getDefaultInstance().getServiceAccount();
5283       bitField0_ = (bitField0_ & ~0x00008000);
5284       onChanged();
5285       return this;
5286     }
5287     /**
5288      *
5289      *
5290      * <pre>
5291      * Email address of the IAM service account associated with the revision of
5292      * the service. The service account represents the identity of the running
5293      * revision, and determines what permissions the revision has.
5294      * </pre>
5295      *
5296      * <code>string service_account = 16;</code>
5297      *
5298      * @param value The bytes for serviceAccount to set.
5299      * @return This builder for chaining.
5300      */
setServiceAccountBytes(com.google.protobuf.ByteString value)5301     public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) {
5302       if (value == null) {
5303         throw new NullPointerException();
5304       }
5305       checkByteStringIsUtf8(value);
5306       serviceAccount_ = value;
5307       bitField0_ |= 0x00008000;
5308       onChanged();
5309       return this;
5310     }
5311 
5312     private java.util.List<com.google.cloud.run.v2.Container> containers_ =
5313         java.util.Collections.emptyList();
5314 
ensureContainersIsMutable()5315     private void ensureContainersIsMutable() {
5316       if (!((bitField0_ & 0x00010000) != 0)) {
5317         containers_ = new java.util.ArrayList<com.google.cloud.run.v2.Container>(containers_);
5318         bitField0_ |= 0x00010000;
5319       }
5320     }
5321 
5322     private com.google.protobuf.RepeatedFieldBuilderV3<
5323             com.google.cloud.run.v2.Container,
5324             com.google.cloud.run.v2.Container.Builder,
5325             com.google.cloud.run.v2.ContainerOrBuilder>
5326         containersBuilder_;
5327 
5328     /**
5329      *
5330      *
5331      * <pre>
5332      * Holds the single container that defines the unit of execution for this
5333      * Revision.
5334      * </pre>
5335      *
5336      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5337      */
getContainersList()5338     public java.util.List<com.google.cloud.run.v2.Container> getContainersList() {
5339       if (containersBuilder_ == null) {
5340         return java.util.Collections.unmodifiableList(containers_);
5341       } else {
5342         return containersBuilder_.getMessageList();
5343       }
5344     }
5345     /**
5346      *
5347      *
5348      * <pre>
5349      * Holds the single container that defines the unit of execution for this
5350      * Revision.
5351      * </pre>
5352      *
5353      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5354      */
getContainersCount()5355     public int getContainersCount() {
5356       if (containersBuilder_ == null) {
5357         return containers_.size();
5358       } else {
5359         return containersBuilder_.getCount();
5360       }
5361     }
5362     /**
5363      *
5364      *
5365      * <pre>
5366      * Holds the single container that defines the unit of execution for this
5367      * Revision.
5368      * </pre>
5369      *
5370      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5371      */
getContainers(int index)5372     public com.google.cloud.run.v2.Container getContainers(int index) {
5373       if (containersBuilder_ == null) {
5374         return containers_.get(index);
5375       } else {
5376         return containersBuilder_.getMessage(index);
5377       }
5378     }
5379     /**
5380      *
5381      *
5382      * <pre>
5383      * Holds the single container that defines the unit of execution for this
5384      * Revision.
5385      * </pre>
5386      *
5387      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5388      */
setContainers(int index, com.google.cloud.run.v2.Container value)5389     public Builder setContainers(int index, com.google.cloud.run.v2.Container value) {
5390       if (containersBuilder_ == null) {
5391         if (value == null) {
5392           throw new NullPointerException();
5393         }
5394         ensureContainersIsMutable();
5395         containers_.set(index, value);
5396         onChanged();
5397       } else {
5398         containersBuilder_.setMessage(index, value);
5399       }
5400       return this;
5401     }
5402     /**
5403      *
5404      *
5405      * <pre>
5406      * Holds the single container that defines the unit of execution for this
5407      * Revision.
5408      * </pre>
5409      *
5410      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5411      */
setContainers( int index, com.google.cloud.run.v2.Container.Builder builderForValue)5412     public Builder setContainers(
5413         int index, com.google.cloud.run.v2.Container.Builder builderForValue) {
5414       if (containersBuilder_ == null) {
5415         ensureContainersIsMutable();
5416         containers_.set(index, builderForValue.build());
5417         onChanged();
5418       } else {
5419         containersBuilder_.setMessage(index, builderForValue.build());
5420       }
5421       return this;
5422     }
5423     /**
5424      *
5425      *
5426      * <pre>
5427      * Holds the single container that defines the unit of execution for this
5428      * Revision.
5429      * </pre>
5430      *
5431      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5432      */
addContainers(com.google.cloud.run.v2.Container value)5433     public Builder addContainers(com.google.cloud.run.v2.Container value) {
5434       if (containersBuilder_ == null) {
5435         if (value == null) {
5436           throw new NullPointerException();
5437         }
5438         ensureContainersIsMutable();
5439         containers_.add(value);
5440         onChanged();
5441       } else {
5442         containersBuilder_.addMessage(value);
5443       }
5444       return this;
5445     }
5446     /**
5447      *
5448      *
5449      * <pre>
5450      * Holds the single container that defines the unit of execution for this
5451      * Revision.
5452      * </pre>
5453      *
5454      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5455      */
addContainers(int index, com.google.cloud.run.v2.Container value)5456     public Builder addContainers(int index, com.google.cloud.run.v2.Container value) {
5457       if (containersBuilder_ == null) {
5458         if (value == null) {
5459           throw new NullPointerException();
5460         }
5461         ensureContainersIsMutable();
5462         containers_.add(index, value);
5463         onChanged();
5464       } else {
5465         containersBuilder_.addMessage(index, value);
5466       }
5467       return this;
5468     }
5469     /**
5470      *
5471      *
5472      * <pre>
5473      * Holds the single container that defines the unit of execution for this
5474      * Revision.
5475      * </pre>
5476      *
5477      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5478      */
addContainers(com.google.cloud.run.v2.Container.Builder builderForValue)5479     public Builder addContainers(com.google.cloud.run.v2.Container.Builder builderForValue) {
5480       if (containersBuilder_ == null) {
5481         ensureContainersIsMutable();
5482         containers_.add(builderForValue.build());
5483         onChanged();
5484       } else {
5485         containersBuilder_.addMessage(builderForValue.build());
5486       }
5487       return this;
5488     }
5489     /**
5490      *
5491      *
5492      * <pre>
5493      * Holds the single container that defines the unit of execution for this
5494      * Revision.
5495      * </pre>
5496      *
5497      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5498      */
addContainers( int index, com.google.cloud.run.v2.Container.Builder builderForValue)5499     public Builder addContainers(
5500         int index, com.google.cloud.run.v2.Container.Builder builderForValue) {
5501       if (containersBuilder_ == null) {
5502         ensureContainersIsMutable();
5503         containers_.add(index, builderForValue.build());
5504         onChanged();
5505       } else {
5506         containersBuilder_.addMessage(index, builderForValue.build());
5507       }
5508       return this;
5509     }
5510     /**
5511      *
5512      *
5513      * <pre>
5514      * Holds the single container that defines the unit of execution for this
5515      * Revision.
5516      * </pre>
5517      *
5518      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5519      */
addAllContainers( java.lang.Iterable<? extends com.google.cloud.run.v2.Container> values)5520     public Builder addAllContainers(
5521         java.lang.Iterable<? extends com.google.cloud.run.v2.Container> values) {
5522       if (containersBuilder_ == null) {
5523         ensureContainersIsMutable();
5524         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containers_);
5525         onChanged();
5526       } else {
5527         containersBuilder_.addAllMessages(values);
5528       }
5529       return this;
5530     }
5531     /**
5532      *
5533      *
5534      * <pre>
5535      * Holds the single container that defines the unit of execution for this
5536      * Revision.
5537      * </pre>
5538      *
5539      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5540      */
clearContainers()5541     public Builder clearContainers() {
5542       if (containersBuilder_ == null) {
5543         containers_ = java.util.Collections.emptyList();
5544         bitField0_ = (bitField0_ & ~0x00010000);
5545         onChanged();
5546       } else {
5547         containersBuilder_.clear();
5548       }
5549       return this;
5550     }
5551     /**
5552      *
5553      *
5554      * <pre>
5555      * Holds the single container that defines the unit of execution for this
5556      * Revision.
5557      * </pre>
5558      *
5559      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5560      */
removeContainers(int index)5561     public Builder removeContainers(int index) {
5562       if (containersBuilder_ == null) {
5563         ensureContainersIsMutable();
5564         containers_.remove(index);
5565         onChanged();
5566       } else {
5567         containersBuilder_.remove(index);
5568       }
5569       return this;
5570     }
5571     /**
5572      *
5573      *
5574      * <pre>
5575      * Holds the single container that defines the unit of execution for this
5576      * Revision.
5577      * </pre>
5578      *
5579      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5580      */
getContainersBuilder(int index)5581     public com.google.cloud.run.v2.Container.Builder getContainersBuilder(int index) {
5582       return getContainersFieldBuilder().getBuilder(index);
5583     }
5584     /**
5585      *
5586      *
5587      * <pre>
5588      * Holds the single container that defines the unit of execution for this
5589      * Revision.
5590      * </pre>
5591      *
5592      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5593      */
getContainersOrBuilder(int index)5594     public com.google.cloud.run.v2.ContainerOrBuilder getContainersOrBuilder(int index) {
5595       if (containersBuilder_ == null) {
5596         return containers_.get(index);
5597       } else {
5598         return containersBuilder_.getMessageOrBuilder(index);
5599       }
5600     }
5601     /**
5602      *
5603      *
5604      * <pre>
5605      * Holds the single container that defines the unit of execution for this
5606      * Revision.
5607      * </pre>
5608      *
5609      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5610      */
5611     public java.util.List<? extends com.google.cloud.run.v2.ContainerOrBuilder>
getContainersOrBuilderList()5612         getContainersOrBuilderList() {
5613       if (containersBuilder_ != null) {
5614         return containersBuilder_.getMessageOrBuilderList();
5615       } else {
5616         return java.util.Collections.unmodifiableList(containers_);
5617       }
5618     }
5619     /**
5620      *
5621      *
5622      * <pre>
5623      * Holds the single container that defines the unit of execution for this
5624      * Revision.
5625      * </pre>
5626      *
5627      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5628      */
addContainersBuilder()5629     public com.google.cloud.run.v2.Container.Builder addContainersBuilder() {
5630       return getContainersFieldBuilder()
5631           .addBuilder(com.google.cloud.run.v2.Container.getDefaultInstance());
5632     }
5633     /**
5634      *
5635      *
5636      * <pre>
5637      * Holds the single container that defines the unit of execution for this
5638      * Revision.
5639      * </pre>
5640      *
5641      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5642      */
addContainersBuilder(int index)5643     public com.google.cloud.run.v2.Container.Builder addContainersBuilder(int index) {
5644       return getContainersFieldBuilder()
5645           .addBuilder(index, com.google.cloud.run.v2.Container.getDefaultInstance());
5646     }
5647     /**
5648      *
5649      *
5650      * <pre>
5651      * Holds the single container that defines the unit of execution for this
5652      * Revision.
5653      * </pre>
5654      *
5655      * <code>repeated .google.cloud.run.v2.Container containers = 17;</code>
5656      */
getContainersBuilderList()5657     public java.util.List<com.google.cloud.run.v2.Container.Builder> getContainersBuilderList() {
5658       return getContainersFieldBuilder().getBuilderList();
5659     }
5660 
5661     private com.google.protobuf.RepeatedFieldBuilderV3<
5662             com.google.cloud.run.v2.Container,
5663             com.google.cloud.run.v2.Container.Builder,
5664             com.google.cloud.run.v2.ContainerOrBuilder>
getContainersFieldBuilder()5665         getContainersFieldBuilder() {
5666       if (containersBuilder_ == null) {
5667         containersBuilder_ =
5668             new com.google.protobuf.RepeatedFieldBuilderV3<
5669                 com.google.cloud.run.v2.Container,
5670                 com.google.cloud.run.v2.Container.Builder,
5671                 com.google.cloud.run.v2.ContainerOrBuilder>(
5672                 containers_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean());
5673         containers_ = null;
5674       }
5675       return containersBuilder_;
5676     }
5677 
5678     private java.util.List<com.google.cloud.run.v2.Volume> volumes_ =
5679         java.util.Collections.emptyList();
5680 
ensureVolumesIsMutable()5681     private void ensureVolumesIsMutable() {
5682       if (!((bitField0_ & 0x00020000) != 0)) {
5683         volumes_ = new java.util.ArrayList<com.google.cloud.run.v2.Volume>(volumes_);
5684         bitField0_ |= 0x00020000;
5685       }
5686     }
5687 
5688     private com.google.protobuf.RepeatedFieldBuilderV3<
5689             com.google.cloud.run.v2.Volume,
5690             com.google.cloud.run.v2.Volume.Builder,
5691             com.google.cloud.run.v2.VolumeOrBuilder>
5692         volumesBuilder_;
5693 
5694     /**
5695      *
5696      *
5697      * <pre>
5698      * A list of Volumes to make available to containers.
5699      * </pre>
5700      *
5701      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5702      */
getVolumesList()5703     public java.util.List<com.google.cloud.run.v2.Volume> getVolumesList() {
5704       if (volumesBuilder_ == null) {
5705         return java.util.Collections.unmodifiableList(volumes_);
5706       } else {
5707         return volumesBuilder_.getMessageList();
5708       }
5709     }
5710     /**
5711      *
5712      *
5713      * <pre>
5714      * A list of Volumes to make available to containers.
5715      * </pre>
5716      *
5717      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5718      */
getVolumesCount()5719     public int getVolumesCount() {
5720       if (volumesBuilder_ == null) {
5721         return volumes_.size();
5722       } else {
5723         return volumesBuilder_.getCount();
5724       }
5725     }
5726     /**
5727      *
5728      *
5729      * <pre>
5730      * A list of Volumes to make available to containers.
5731      * </pre>
5732      *
5733      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5734      */
getVolumes(int index)5735     public com.google.cloud.run.v2.Volume getVolumes(int index) {
5736       if (volumesBuilder_ == null) {
5737         return volumes_.get(index);
5738       } else {
5739         return volumesBuilder_.getMessage(index);
5740       }
5741     }
5742     /**
5743      *
5744      *
5745      * <pre>
5746      * A list of Volumes to make available to containers.
5747      * </pre>
5748      *
5749      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5750      */
setVolumes(int index, com.google.cloud.run.v2.Volume value)5751     public Builder setVolumes(int index, com.google.cloud.run.v2.Volume value) {
5752       if (volumesBuilder_ == null) {
5753         if (value == null) {
5754           throw new NullPointerException();
5755         }
5756         ensureVolumesIsMutable();
5757         volumes_.set(index, value);
5758         onChanged();
5759       } else {
5760         volumesBuilder_.setMessage(index, value);
5761       }
5762       return this;
5763     }
5764     /**
5765      *
5766      *
5767      * <pre>
5768      * A list of Volumes to make available to containers.
5769      * </pre>
5770      *
5771      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5772      */
setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue)5773     public Builder setVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) {
5774       if (volumesBuilder_ == null) {
5775         ensureVolumesIsMutable();
5776         volumes_.set(index, builderForValue.build());
5777         onChanged();
5778       } else {
5779         volumesBuilder_.setMessage(index, builderForValue.build());
5780       }
5781       return this;
5782     }
5783     /**
5784      *
5785      *
5786      * <pre>
5787      * A list of Volumes to make available to containers.
5788      * </pre>
5789      *
5790      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5791      */
addVolumes(com.google.cloud.run.v2.Volume value)5792     public Builder addVolumes(com.google.cloud.run.v2.Volume value) {
5793       if (volumesBuilder_ == null) {
5794         if (value == null) {
5795           throw new NullPointerException();
5796         }
5797         ensureVolumesIsMutable();
5798         volumes_.add(value);
5799         onChanged();
5800       } else {
5801         volumesBuilder_.addMessage(value);
5802       }
5803       return this;
5804     }
5805     /**
5806      *
5807      *
5808      * <pre>
5809      * A list of Volumes to make available to containers.
5810      * </pre>
5811      *
5812      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5813      */
addVolumes(int index, com.google.cloud.run.v2.Volume value)5814     public Builder addVolumes(int index, com.google.cloud.run.v2.Volume value) {
5815       if (volumesBuilder_ == null) {
5816         if (value == null) {
5817           throw new NullPointerException();
5818         }
5819         ensureVolumesIsMutable();
5820         volumes_.add(index, value);
5821         onChanged();
5822       } else {
5823         volumesBuilder_.addMessage(index, value);
5824       }
5825       return this;
5826     }
5827     /**
5828      *
5829      *
5830      * <pre>
5831      * A list of Volumes to make available to containers.
5832      * </pre>
5833      *
5834      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5835      */
addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue)5836     public Builder addVolumes(com.google.cloud.run.v2.Volume.Builder builderForValue) {
5837       if (volumesBuilder_ == null) {
5838         ensureVolumesIsMutable();
5839         volumes_.add(builderForValue.build());
5840         onChanged();
5841       } else {
5842         volumesBuilder_.addMessage(builderForValue.build());
5843       }
5844       return this;
5845     }
5846     /**
5847      *
5848      *
5849      * <pre>
5850      * A list of Volumes to make available to containers.
5851      * </pre>
5852      *
5853      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5854      */
addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue)5855     public Builder addVolumes(int index, com.google.cloud.run.v2.Volume.Builder builderForValue) {
5856       if (volumesBuilder_ == null) {
5857         ensureVolumesIsMutable();
5858         volumes_.add(index, builderForValue.build());
5859         onChanged();
5860       } else {
5861         volumesBuilder_.addMessage(index, builderForValue.build());
5862       }
5863       return this;
5864     }
5865     /**
5866      *
5867      *
5868      * <pre>
5869      * A list of Volumes to make available to containers.
5870      * </pre>
5871      *
5872      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5873      */
addAllVolumes( java.lang.Iterable<? extends com.google.cloud.run.v2.Volume> values)5874     public Builder addAllVolumes(
5875         java.lang.Iterable<? extends com.google.cloud.run.v2.Volume> values) {
5876       if (volumesBuilder_ == null) {
5877         ensureVolumesIsMutable();
5878         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, volumes_);
5879         onChanged();
5880       } else {
5881         volumesBuilder_.addAllMessages(values);
5882       }
5883       return this;
5884     }
5885     /**
5886      *
5887      *
5888      * <pre>
5889      * A list of Volumes to make available to containers.
5890      * </pre>
5891      *
5892      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5893      */
clearVolumes()5894     public Builder clearVolumes() {
5895       if (volumesBuilder_ == null) {
5896         volumes_ = java.util.Collections.emptyList();
5897         bitField0_ = (bitField0_ & ~0x00020000);
5898         onChanged();
5899       } else {
5900         volumesBuilder_.clear();
5901       }
5902       return this;
5903     }
5904     /**
5905      *
5906      *
5907      * <pre>
5908      * A list of Volumes to make available to containers.
5909      * </pre>
5910      *
5911      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5912      */
removeVolumes(int index)5913     public Builder removeVolumes(int index) {
5914       if (volumesBuilder_ == null) {
5915         ensureVolumesIsMutable();
5916         volumes_.remove(index);
5917         onChanged();
5918       } else {
5919         volumesBuilder_.remove(index);
5920       }
5921       return this;
5922     }
5923     /**
5924      *
5925      *
5926      * <pre>
5927      * A list of Volumes to make available to containers.
5928      * </pre>
5929      *
5930      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5931      */
getVolumesBuilder(int index)5932     public com.google.cloud.run.v2.Volume.Builder getVolumesBuilder(int index) {
5933       return getVolumesFieldBuilder().getBuilder(index);
5934     }
5935     /**
5936      *
5937      *
5938      * <pre>
5939      * A list of Volumes to make available to containers.
5940      * </pre>
5941      *
5942      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5943      */
getVolumesOrBuilder(int index)5944     public com.google.cloud.run.v2.VolumeOrBuilder getVolumesOrBuilder(int index) {
5945       if (volumesBuilder_ == null) {
5946         return volumes_.get(index);
5947       } else {
5948         return volumesBuilder_.getMessageOrBuilder(index);
5949       }
5950     }
5951     /**
5952      *
5953      *
5954      * <pre>
5955      * A list of Volumes to make available to containers.
5956      * </pre>
5957      *
5958      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5959      */
5960     public java.util.List<? extends com.google.cloud.run.v2.VolumeOrBuilder>
getVolumesOrBuilderList()5961         getVolumesOrBuilderList() {
5962       if (volumesBuilder_ != null) {
5963         return volumesBuilder_.getMessageOrBuilderList();
5964       } else {
5965         return java.util.Collections.unmodifiableList(volumes_);
5966       }
5967     }
5968     /**
5969      *
5970      *
5971      * <pre>
5972      * A list of Volumes to make available to containers.
5973      * </pre>
5974      *
5975      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5976      */
addVolumesBuilder()5977     public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder() {
5978       return getVolumesFieldBuilder()
5979           .addBuilder(com.google.cloud.run.v2.Volume.getDefaultInstance());
5980     }
5981     /**
5982      *
5983      *
5984      * <pre>
5985      * A list of Volumes to make available to containers.
5986      * </pre>
5987      *
5988      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
5989      */
addVolumesBuilder(int index)5990     public com.google.cloud.run.v2.Volume.Builder addVolumesBuilder(int index) {
5991       return getVolumesFieldBuilder()
5992           .addBuilder(index, com.google.cloud.run.v2.Volume.getDefaultInstance());
5993     }
5994     /**
5995      *
5996      *
5997      * <pre>
5998      * A list of Volumes to make available to containers.
5999      * </pre>
6000      *
6001      * <code>repeated .google.cloud.run.v2.Volume volumes = 18;</code>
6002      */
getVolumesBuilderList()6003     public java.util.List<com.google.cloud.run.v2.Volume.Builder> getVolumesBuilderList() {
6004       return getVolumesFieldBuilder().getBuilderList();
6005     }
6006 
6007     private com.google.protobuf.RepeatedFieldBuilderV3<
6008             com.google.cloud.run.v2.Volume,
6009             com.google.cloud.run.v2.Volume.Builder,
6010             com.google.cloud.run.v2.VolumeOrBuilder>
getVolumesFieldBuilder()6011         getVolumesFieldBuilder() {
6012       if (volumesBuilder_ == null) {
6013         volumesBuilder_ =
6014             new com.google.protobuf.RepeatedFieldBuilderV3<
6015                 com.google.cloud.run.v2.Volume,
6016                 com.google.cloud.run.v2.Volume.Builder,
6017                 com.google.cloud.run.v2.VolumeOrBuilder>(
6018                 volumes_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean());
6019         volumes_ = null;
6020       }
6021       return volumesBuilder_;
6022     }
6023 
6024     private int executionEnvironment_ = 0;
6025     /**
6026      *
6027      *
6028      * <pre>
6029      * The execution environment being used to host this Revision.
6030      * </pre>
6031      *
6032      * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
6033      *
6034      * @return The enum numeric value on the wire for executionEnvironment.
6035      */
6036     @java.lang.Override
getExecutionEnvironmentValue()6037     public int getExecutionEnvironmentValue() {
6038       return executionEnvironment_;
6039     }
6040     /**
6041      *
6042      *
6043      * <pre>
6044      * The execution environment being used to host this Revision.
6045      * </pre>
6046      *
6047      * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
6048      *
6049      * @param value The enum numeric value on the wire for executionEnvironment to set.
6050      * @return This builder for chaining.
6051      */
setExecutionEnvironmentValue(int value)6052     public Builder setExecutionEnvironmentValue(int value) {
6053       executionEnvironment_ = value;
6054       bitField0_ |= 0x00040000;
6055       onChanged();
6056       return this;
6057     }
6058     /**
6059      *
6060      *
6061      * <pre>
6062      * The execution environment being used to host this Revision.
6063      * </pre>
6064      *
6065      * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
6066      *
6067      * @return The executionEnvironment.
6068      */
6069     @java.lang.Override
getExecutionEnvironment()6070     public com.google.cloud.run.v2.ExecutionEnvironment getExecutionEnvironment() {
6071       com.google.cloud.run.v2.ExecutionEnvironment result =
6072           com.google.cloud.run.v2.ExecutionEnvironment.forNumber(executionEnvironment_);
6073       return result == null ? com.google.cloud.run.v2.ExecutionEnvironment.UNRECOGNIZED : result;
6074     }
6075     /**
6076      *
6077      *
6078      * <pre>
6079      * The execution environment being used to host this Revision.
6080      * </pre>
6081      *
6082      * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
6083      *
6084      * @param value The executionEnvironment to set.
6085      * @return This builder for chaining.
6086      */
setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironment value)6087     public Builder setExecutionEnvironment(com.google.cloud.run.v2.ExecutionEnvironment value) {
6088       if (value == null) {
6089         throw new NullPointerException();
6090       }
6091       bitField0_ |= 0x00040000;
6092       executionEnvironment_ = value.getNumber();
6093       onChanged();
6094       return this;
6095     }
6096     /**
6097      *
6098      *
6099      * <pre>
6100      * The execution environment being used to host this Revision.
6101      * </pre>
6102      *
6103      * <code>.google.cloud.run.v2.ExecutionEnvironment execution_environment = 20;</code>
6104      *
6105      * @return This builder for chaining.
6106      */
clearExecutionEnvironment()6107     public Builder clearExecutionEnvironment() {
6108       bitField0_ = (bitField0_ & ~0x00040000);
6109       executionEnvironment_ = 0;
6110       onChanged();
6111       return this;
6112     }
6113 
6114     private java.lang.Object encryptionKey_ = "";
6115     /**
6116      *
6117      *
6118      * <pre>
6119      * A reference to a customer managed encryption key (CMEK) to use to encrypt
6120      * this container image. For more information, go to
6121      * https://cloud.google.com/run/docs/securing/using-cmek
6122      * </pre>
6123      *
6124      * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
6125      *
6126      * @return The encryptionKey.
6127      */
getEncryptionKey()6128     public java.lang.String getEncryptionKey() {
6129       java.lang.Object ref = encryptionKey_;
6130       if (!(ref instanceof java.lang.String)) {
6131         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
6132         java.lang.String s = bs.toStringUtf8();
6133         encryptionKey_ = s;
6134         return s;
6135       } else {
6136         return (java.lang.String) ref;
6137       }
6138     }
6139     /**
6140      *
6141      *
6142      * <pre>
6143      * A reference to a customer managed encryption key (CMEK) to use to encrypt
6144      * this container image. For more information, go to
6145      * https://cloud.google.com/run/docs/securing/using-cmek
6146      * </pre>
6147      *
6148      * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
6149      *
6150      * @return The bytes for encryptionKey.
6151      */
getEncryptionKeyBytes()6152     public com.google.protobuf.ByteString getEncryptionKeyBytes() {
6153       java.lang.Object ref = encryptionKey_;
6154       if (ref instanceof String) {
6155         com.google.protobuf.ByteString b =
6156             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
6157         encryptionKey_ = b;
6158         return b;
6159       } else {
6160         return (com.google.protobuf.ByteString) ref;
6161       }
6162     }
6163     /**
6164      *
6165      *
6166      * <pre>
6167      * A reference to a customer managed encryption key (CMEK) to use to encrypt
6168      * this container image. For more information, go to
6169      * https://cloud.google.com/run/docs/securing/using-cmek
6170      * </pre>
6171      *
6172      * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
6173      *
6174      * @param value The encryptionKey to set.
6175      * @return This builder for chaining.
6176      */
setEncryptionKey(java.lang.String value)6177     public Builder setEncryptionKey(java.lang.String value) {
6178       if (value == null) {
6179         throw new NullPointerException();
6180       }
6181       encryptionKey_ = value;
6182       bitField0_ |= 0x00080000;
6183       onChanged();
6184       return this;
6185     }
6186     /**
6187      *
6188      *
6189      * <pre>
6190      * A reference to a customer managed encryption key (CMEK) to use to encrypt
6191      * this container image. For more information, go to
6192      * https://cloud.google.com/run/docs/securing/using-cmek
6193      * </pre>
6194      *
6195      * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
6196      *
6197      * @return This builder for chaining.
6198      */
clearEncryptionKey()6199     public Builder clearEncryptionKey() {
6200       encryptionKey_ = getDefaultInstance().getEncryptionKey();
6201       bitField0_ = (bitField0_ & ~0x00080000);
6202       onChanged();
6203       return this;
6204     }
6205     /**
6206      *
6207      *
6208      * <pre>
6209      * A reference to a customer managed encryption key (CMEK) to use to encrypt
6210      * this container image. For more information, go to
6211      * https://cloud.google.com/run/docs/securing/using-cmek
6212      * </pre>
6213      *
6214      * <code>string encryption_key = 21 [(.google.api.resource_reference) = { ... }</code>
6215      *
6216      * @param value The bytes for encryptionKey to set.
6217      * @return This builder for chaining.
6218      */
setEncryptionKeyBytes(com.google.protobuf.ByteString value)6219     public Builder setEncryptionKeyBytes(com.google.protobuf.ByteString value) {
6220       if (value == null) {
6221         throw new NullPointerException();
6222       }
6223       checkByteStringIsUtf8(value);
6224       encryptionKey_ = value;
6225       bitField0_ |= 0x00080000;
6226       onChanged();
6227       return this;
6228     }
6229 
6230     private int encryptionKeyRevocationAction_ = 0;
6231     /**
6232      *
6233      *
6234      * <pre>
6235      * The action to take if the encryption key is revoked.
6236      * </pre>
6237      *
6238      * <code>
6239      * .google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
6240      * </code>
6241      *
6242      * @return The enum numeric value on the wire for encryptionKeyRevocationAction.
6243      */
6244     @java.lang.Override
getEncryptionKeyRevocationActionValue()6245     public int getEncryptionKeyRevocationActionValue() {
6246       return encryptionKeyRevocationAction_;
6247     }
6248     /**
6249      *
6250      *
6251      * <pre>
6252      * The action to take if the encryption key is revoked.
6253      * </pre>
6254      *
6255      * <code>
6256      * .google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
6257      * </code>
6258      *
6259      * @param value The enum numeric value on the wire for encryptionKeyRevocationAction to set.
6260      * @return This builder for chaining.
6261      */
setEncryptionKeyRevocationActionValue(int value)6262     public Builder setEncryptionKeyRevocationActionValue(int value) {
6263       encryptionKeyRevocationAction_ = value;
6264       bitField0_ |= 0x00100000;
6265       onChanged();
6266       return this;
6267     }
6268     /**
6269      *
6270      *
6271      * <pre>
6272      * The action to take if the encryption key is revoked.
6273      * </pre>
6274      *
6275      * <code>
6276      * .google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
6277      * </code>
6278      *
6279      * @return The encryptionKeyRevocationAction.
6280      */
6281     @java.lang.Override
6282     public com.google.cloud.run.v2.EncryptionKeyRevocationAction
getEncryptionKeyRevocationAction()6283         getEncryptionKeyRevocationAction() {
6284       com.google.cloud.run.v2.EncryptionKeyRevocationAction result =
6285           com.google.cloud.run.v2.EncryptionKeyRevocationAction.forNumber(
6286               encryptionKeyRevocationAction_);
6287       return result == null
6288           ? com.google.cloud.run.v2.EncryptionKeyRevocationAction.UNRECOGNIZED
6289           : result;
6290     }
6291     /**
6292      *
6293      *
6294      * <pre>
6295      * The action to take if the encryption key is revoked.
6296      * </pre>
6297      *
6298      * <code>
6299      * .google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
6300      * </code>
6301      *
6302      * @param value The encryptionKeyRevocationAction to set.
6303      * @return This builder for chaining.
6304      */
setEncryptionKeyRevocationAction( com.google.cloud.run.v2.EncryptionKeyRevocationAction value)6305     public Builder setEncryptionKeyRevocationAction(
6306         com.google.cloud.run.v2.EncryptionKeyRevocationAction value) {
6307       if (value == null) {
6308         throw new NullPointerException();
6309       }
6310       bitField0_ |= 0x00100000;
6311       encryptionKeyRevocationAction_ = value.getNumber();
6312       onChanged();
6313       return this;
6314     }
6315     /**
6316      *
6317      *
6318      * <pre>
6319      * The action to take if the encryption key is revoked.
6320      * </pre>
6321      *
6322      * <code>
6323      * .google.cloud.run.v2.EncryptionKeyRevocationAction encryption_key_revocation_action = 23;
6324      * </code>
6325      *
6326      * @return This builder for chaining.
6327      */
clearEncryptionKeyRevocationAction()6328     public Builder clearEncryptionKeyRevocationAction() {
6329       bitField0_ = (bitField0_ & ~0x00100000);
6330       encryptionKeyRevocationAction_ = 0;
6331       onChanged();
6332       return this;
6333     }
6334 
6335     private com.google.protobuf.Duration encryptionKeyShutdownDuration_;
6336     private com.google.protobuf.SingleFieldBuilderV3<
6337             com.google.protobuf.Duration,
6338             com.google.protobuf.Duration.Builder,
6339             com.google.protobuf.DurationOrBuilder>
6340         encryptionKeyShutdownDurationBuilder_;
6341     /**
6342      *
6343      *
6344      * <pre>
6345      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6346      * shutting down all instances. The minimum increment is 1 hour.
6347      * </pre>
6348      *
6349      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6350      *
6351      * @return Whether the encryptionKeyShutdownDuration field is set.
6352      */
hasEncryptionKeyShutdownDuration()6353     public boolean hasEncryptionKeyShutdownDuration() {
6354       return ((bitField0_ & 0x00200000) != 0);
6355     }
6356     /**
6357      *
6358      *
6359      * <pre>
6360      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6361      * shutting down all instances. The minimum increment is 1 hour.
6362      * </pre>
6363      *
6364      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6365      *
6366      * @return The encryptionKeyShutdownDuration.
6367      */
getEncryptionKeyShutdownDuration()6368     public com.google.protobuf.Duration getEncryptionKeyShutdownDuration() {
6369       if (encryptionKeyShutdownDurationBuilder_ == null) {
6370         return encryptionKeyShutdownDuration_ == null
6371             ? com.google.protobuf.Duration.getDefaultInstance()
6372             : encryptionKeyShutdownDuration_;
6373       } else {
6374         return encryptionKeyShutdownDurationBuilder_.getMessage();
6375       }
6376     }
6377     /**
6378      *
6379      *
6380      * <pre>
6381      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6382      * shutting down all instances. The minimum increment is 1 hour.
6383      * </pre>
6384      *
6385      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6386      */
setEncryptionKeyShutdownDuration(com.google.protobuf.Duration value)6387     public Builder setEncryptionKeyShutdownDuration(com.google.protobuf.Duration value) {
6388       if (encryptionKeyShutdownDurationBuilder_ == null) {
6389         if (value == null) {
6390           throw new NullPointerException();
6391         }
6392         encryptionKeyShutdownDuration_ = value;
6393       } else {
6394         encryptionKeyShutdownDurationBuilder_.setMessage(value);
6395       }
6396       bitField0_ |= 0x00200000;
6397       onChanged();
6398       return this;
6399     }
6400     /**
6401      *
6402      *
6403      * <pre>
6404      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6405      * shutting down all instances. The minimum increment is 1 hour.
6406      * </pre>
6407      *
6408      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6409      */
setEncryptionKeyShutdownDuration( com.google.protobuf.Duration.Builder builderForValue)6410     public Builder setEncryptionKeyShutdownDuration(
6411         com.google.protobuf.Duration.Builder builderForValue) {
6412       if (encryptionKeyShutdownDurationBuilder_ == null) {
6413         encryptionKeyShutdownDuration_ = builderForValue.build();
6414       } else {
6415         encryptionKeyShutdownDurationBuilder_.setMessage(builderForValue.build());
6416       }
6417       bitField0_ |= 0x00200000;
6418       onChanged();
6419       return this;
6420     }
6421     /**
6422      *
6423      *
6424      * <pre>
6425      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6426      * shutting down all instances. The minimum increment is 1 hour.
6427      * </pre>
6428      *
6429      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6430      */
mergeEncryptionKeyShutdownDuration(com.google.protobuf.Duration value)6431     public Builder mergeEncryptionKeyShutdownDuration(com.google.protobuf.Duration value) {
6432       if (encryptionKeyShutdownDurationBuilder_ == null) {
6433         if (((bitField0_ & 0x00200000) != 0)
6434             && encryptionKeyShutdownDuration_ != null
6435             && encryptionKeyShutdownDuration_
6436                 != com.google.protobuf.Duration.getDefaultInstance()) {
6437           getEncryptionKeyShutdownDurationBuilder().mergeFrom(value);
6438         } else {
6439           encryptionKeyShutdownDuration_ = value;
6440         }
6441       } else {
6442         encryptionKeyShutdownDurationBuilder_.mergeFrom(value);
6443       }
6444       bitField0_ |= 0x00200000;
6445       onChanged();
6446       return this;
6447     }
6448     /**
6449      *
6450      *
6451      * <pre>
6452      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6453      * shutting down all instances. The minimum increment is 1 hour.
6454      * </pre>
6455      *
6456      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6457      */
clearEncryptionKeyShutdownDuration()6458     public Builder clearEncryptionKeyShutdownDuration() {
6459       bitField0_ = (bitField0_ & ~0x00200000);
6460       encryptionKeyShutdownDuration_ = null;
6461       if (encryptionKeyShutdownDurationBuilder_ != null) {
6462         encryptionKeyShutdownDurationBuilder_.dispose();
6463         encryptionKeyShutdownDurationBuilder_ = null;
6464       }
6465       onChanged();
6466       return this;
6467     }
6468     /**
6469      *
6470      *
6471      * <pre>
6472      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6473      * shutting down all instances. The minimum increment is 1 hour.
6474      * </pre>
6475      *
6476      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6477      */
getEncryptionKeyShutdownDurationBuilder()6478     public com.google.protobuf.Duration.Builder getEncryptionKeyShutdownDurationBuilder() {
6479       bitField0_ |= 0x00200000;
6480       onChanged();
6481       return getEncryptionKeyShutdownDurationFieldBuilder().getBuilder();
6482     }
6483     /**
6484      *
6485      *
6486      * <pre>
6487      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6488      * shutting down all instances. The minimum increment is 1 hour.
6489      * </pre>
6490      *
6491      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6492      */
getEncryptionKeyShutdownDurationOrBuilder()6493     public com.google.protobuf.DurationOrBuilder getEncryptionKeyShutdownDurationOrBuilder() {
6494       if (encryptionKeyShutdownDurationBuilder_ != null) {
6495         return encryptionKeyShutdownDurationBuilder_.getMessageOrBuilder();
6496       } else {
6497         return encryptionKeyShutdownDuration_ == null
6498             ? com.google.protobuf.Duration.getDefaultInstance()
6499             : encryptionKeyShutdownDuration_;
6500       }
6501     }
6502     /**
6503      *
6504      *
6505      * <pre>
6506      * If encryption_key_revocation_action is SHUTDOWN, the duration before
6507      * shutting down all instances. The minimum increment is 1 hour.
6508      * </pre>
6509      *
6510      * <code>.google.protobuf.Duration encryption_key_shutdown_duration = 24;</code>
6511      */
6512     private com.google.protobuf.SingleFieldBuilderV3<
6513             com.google.protobuf.Duration,
6514             com.google.protobuf.Duration.Builder,
6515             com.google.protobuf.DurationOrBuilder>
getEncryptionKeyShutdownDurationFieldBuilder()6516         getEncryptionKeyShutdownDurationFieldBuilder() {
6517       if (encryptionKeyShutdownDurationBuilder_ == null) {
6518         encryptionKeyShutdownDurationBuilder_ =
6519             new com.google.protobuf.SingleFieldBuilderV3<
6520                 com.google.protobuf.Duration,
6521                 com.google.protobuf.Duration.Builder,
6522                 com.google.protobuf.DurationOrBuilder>(
6523                 getEncryptionKeyShutdownDuration(), getParentForChildren(), isClean());
6524         encryptionKeyShutdownDuration_ = null;
6525       }
6526       return encryptionKeyShutdownDurationBuilder_;
6527     }
6528 
6529     private boolean reconciling_;
6530     /**
6531      *
6532      *
6533      * <pre>
6534      * Output only. Indicates whether the resource's reconciliation is still in
6535      * progress. See comments in `Service.reconciling` for additional information
6536      * on reconciliation process in Cloud Run.
6537      * </pre>
6538      *
6539      * <code>bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
6540      *
6541      * @return The reconciling.
6542      */
6543     @java.lang.Override
getReconciling()6544     public boolean getReconciling() {
6545       return reconciling_;
6546     }
6547     /**
6548      *
6549      *
6550      * <pre>
6551      * Output only. Indicates whether the resource's reconciliation is still in
6552      * progress. See comments in `Service.reconciling` for additional information
6553      * on reconciliation process in Cloud Run.
6554      * </pre>
6555      *
6556      * <code>bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
6557      *
6558      * @param value The reconciling to set.
6559      * @return This builder for chaining.
6560      */
setReconciling(boolean value)6561     public Builder setReconciling(boolean value) {
6562 
6563       reconciling_ = value;
6564       bitField0_ |= 0x00400000;
6565       onChanged();
6566       return this;
6567     }
6568     /**
6569      *
6570      *
6571      * <pre>
6572      * Output only. Indicates whether the resource's reconciliation is still in
6573      * progress. See comments in `Service.reconciling` for additional information
6574      * on reconciliation process in Cloud Run.
6575      * </pre>
6576      *
6577      * <code>bool reconciling = 30 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
6578      *
6579      * @return This builder for chaining.
6580      */
clearReconciling()6581     public Builder clearReconciling() {
6582       bitField0_ = (bitField0_ & ~0x00400000);
6583       reconciling_ = false;
6584       onChanged();
6585       return this;
6586     }
6587 
6588     private java.util.List<com.google.cloud.run.v2.Condition> conditions_ =
6589         java.util.Collections.emptyList();
6590 
ensureConditionsIsMutable()6591     private void ensureConditionsIsMutable() {
6592       if (!((bitField0_ & 0x00800000) != 0)) {
6593         conditions_ = new java.util.ArrayList<com.google.cloud.run.v2.Condition>(conditions_);
6594         bitField0_ |= 0x00800000;
6595       }
6596     }
6597 
6598     private com.google.protobuf.RepeatedFieldBuilderV3<
6599             com.google.cloud.run.v2.Condition,
6600             com.google.cloud.run.v2.Condition.Builder,
6601             com.google.cloud.run.v2.ConditionOrBuilder>
6602         conditionsBuilder_;
6603 
6604     /**
6605      *
6606      *
6607      * <pre>
6608      * Output only. The Condition of this Revision, containing its readiness
6609      * status, and detailed error information in case it did not reach a serving
6610      * state.
6611      * </pre>
6612      *
6613      * <code>
6614      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6615      * </code>
6616      */
getConditionsList()6617     public java.util.List<com.google.cloud.run.v2.Condition> getConditionsList() {
6618       if (conditionsBuilder_ == null) {
6619         return java.util.Collections.unmodifiableList(conditions_);
6620       } else {
6621         return conditionsBuilder_.getMessageList();
6622       }
6623     }
6624     /**
6625      *
6626      *
6627      * <pre>
6628      * Output only. The Condition of this Revision, containing its readiness
6629      * status, and detailed error information in case it did not reach a serving
6630      * state.
6631      * </pre>
6632      *
6633      * <code>
6634      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6635      * </code>
6636      */
getConditionsCount()6637     public int getConditionsCount() {
6638       if (conditionsBuilder_ == null) {
6639         return conditions_.size();
6640       } else {
6641         return conditionsBuilder_.getCount();
6642       }
6643     }
6644     /**
6645      *
6646      *
6647      * <pre>
6648      * Output only. The Condition of this Revision, containing its readiness
6649      * status, and detailed error information in case it did not reach a serving
6650      * state.
6651      * </pre>
6652      *
6653      * <code>
6654      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6655      * </code>
6656      */
getConditions(int index)6657     public com.google.cloud.run.v2.Condition getConditions(int index) {
6658       if (conditionsBuilder_ == null) {
6659         return conditions_.get(index);
6660       } else {
6661         return conditionsBuilder_.getMessage(index);
6662       }
6663     }
6664     /**
6665      *
6666      *
6667      * <pre>
6668      * Output only. The Condition of this Revision, containing its readiness
6669      * status, and detailed error information in case it did not reach a serving
6670      * state.
6671      * </pre>
6672      *
6673      * <code>
6674      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6675      * </code>
6676      */
setConditions(int index, com.google.cloud.run.v2.Condition value)6677     public Builder setConditions(int index, com.google.cloud.run.v2.Condition value) {
6678       if (conditionsBuilder_ == null) {
6679         if (value == null) {
6680           throw new NullPointerException();
6681         }
6682         ensureConditionsIsMutable();
6683         conditions_.set(index, value);
6684         onChanged();
6685       } else {
6686         conditionsBuilder_.setMessage(index, value);
6687       }
6688       return this;
6689     }
6690     /**
6691      *
6692      *
6693      * <pre>
6694      * Output only. The Condition of this Revision, containing its readiness
6695      * status, and detailed error information in case it did not reach a serving
6696      * state.
6697      * </pre>
6698      *
6699      * <code>
6700      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6701      * </code>
6702      */
setConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue)6703     public Builder setConditions(
6704         int index, com.google.cloud.run.v2.Condition.Builder builderForValue) {
6705       if (conditionsBuilder_ == null) {
6706         ensureConditionsIsMutable();
6707         conditions_.set(index, builderForValue.build());
6708         onChanged();
6709       } else {
6710         conditionsBuilder_.setMessage(index, builderForValue.build());
6711       }
6712       return this;
6713     }
6714     /**
6715      *
6716      *
6717      * <pre>
6718      * Output only. The Condition of this Revision, containing its readiness
6719      * status, and detailed error information in case it did not reach a serving
6720      * state.
6721      * </pre>
6722      *
6723      * <code>
6724      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6725      * </code>
6726      */
addConditions(com.google.cloud.run.v2.Condition value)6727     public Builder addConditions(com.google.cloud.run.v2.Condition value) {
6728       if (conditionsBuilder_ == null) {
6729         if (value == null) {
6730           throw new NullPointerException();
6731         }
6732         ensureConditionsIsMutable();
6733         conditions_.add(value);
6734         onChanged();
6735       } else {
6736         conditionsBuilder_.addMessage(value);
6737       }
6738       return this;
6739     }
6740     /**
6741      *
6742      *
6743      * <pre>
6744      * Output only. The Condition of this Revision, containing its readiness
6745      * status, and detailed error information in case it did not reach a serving
6746      * state.
6747      * </pre>
6748      *
6749      * <code>
6750      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6751      * </code>
6752      */
addConditions(int index, com.google.cloud.run.v2.Condition value)6753     public Builder addConditions(int index, com.google.cloud.run.v2.Condition value) {
6754       if (conditionsBuilder_ == null) {
6755         if (value == null) {
6756           throw new NullPointerException();
6757         }
6758         ensureConditionsIsMutable();
6759         conditions_.add(index, value);
6760         onChanged();
6761       } else {
6762         conditionsBuilder_.addMessage(index, value);
6763       }
6764       return this;
6765     }
6766     /**
6767      *
6768      *
6769      * <pre>
6770      * Output only. The Condition of this Revision, containing its readiness
6771      * status, and detailed error information in case it did not reach a serving
6772      * state.
6773      * </pre>
6774      *
6775      * <code>
6776      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6777      * </code>
6778      */
addConditions(com.google.cloud.run.v2.Condition.Builder builderForValue)6779     public Builder addConditions(com.google.cloud.run.v2.Condition.Builder builderForValue) {
6780       if (conditionsBuilder_ == null) {
6781         ensureConditionsIsMutable();
6782         conditions_.add(builderForValue.build());
6783         onChanged();
6784       } else {
6785         conditionsBuilder_.addMessage(builderForValue.build());
6786       }
6787       return this;
6788     }
6789     /**
6790      *
6791      *
6792      * <pre>
6793      * Output only. The Condition of this Revision, containing its readiness
6794      * status, and detailed error information in case it did not reach a serving
6795      * state.
6796      * </pre>
6797      *
6798      * <code>
6799      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6800      * </code>
6801      */
addConditions( int index, com.google.cloud.run.v2.Condition.Builder builderForValue)6802     public Builder addConditions(
6803         int index, com.google.cloud.run.v2.Condition.Builder builderForValue) {
6804       if (conditionsBuilder_ == null) {
6805         ensureConditionsIsMutable();
6806         conditions_.add(index, builderForValue.build());
6807         onChanged();
6808       } else {
6809         conditionsBuilder_.addMessage(index, builderForValue.build());
6810       }
6811       return this;
6812     }
6813     /**
6814      *
6815      *
6816      * <pre>
6817      * Output only. The Condition of this Revision, containing its readiness
6818      * status, and detailed error information in case it did not reach a serving
6819      * state.
6820      * </pre>
6821      *
6822      * <code>
6823      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6824      * </code>
6825      */
addAllConditions( java.lang.Iterable<? extends com.google.cloud.run.v2.Condition> values)6826     public Builder addAllConditions(
6827         java.lang.Iterable<? extends com.google.cloud.run.v2.Condition> values) {
6828       if (conditionsBuilder_ == null) {
6829         ensureConditionsIsMutable();
6830         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_);
6831         onChanged();
6832       } else {
6833         conditionsBuilder_.addAllMessages(values);
6834       }
6835       return this;
6836     }
6837     /**
6838      *
6839      *
6840      * <pre>
6841      * Output only. The Condition of this Revision, containing its readiness
6842      * status, and detailed error information in case it did not reach a serving
6843      * state.
6844      * </pre>
6845      *
6846      * <code>
6847      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6848      * </code>
6849      */
clearConditions()6850     public Builder clearConditions() {
6851       if (conditionsBuilder_ == null) {
6852         conditions_ = java.util.Collections.emptyList();
6853         bitField0_ = (bitField0_ & ~0x00800000);
6854         onChanged();
6855       } else {
6856         conditionsBuilder_.clear();
6857       }
6858       return this;
6859     }
6860     /**
6861      *
6862      *
6863      * <pre>
6864      * Output only. The Condition of this Revision, containing its readiness
6865      * status, and detailed error information in case it did not reach a serving
6866      * state.
6867      * </pre>
6868      *
6869      * <code>
6870      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6871      * </code>
6872      */
removeConditions(int index)6873     public Builder removeConditions(int index) {
6874       if (conditionsBuilder_ == null) {
6875         ensureConditionsIsMutable();
6876         conditions_.remove(index);
6877         onChanged();
6878       } else {
6879         conditionsBuilder_.remove(index);
6880       }
6881       return this;
6882     }
6883     /**
6884      *
6885      *
6886      * <pre>
6887      * Output only. The Condition of this Revision, containing its readiness
6888      * status, and detailed error information in case it did not reach a serving
6889      * state.
6890      * </pre>
6891      *
6892      * <code>
6893      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6894      * </code>
6895      */
getConditionsBuilder(int index)6896     public com.google.cloud.run.v2.Condition.Builder getConditionsBuilder(int index) {
6897       return getConditionsFieldBuilder().getBuilder(index);
6898     }
6899     /**
6900      *
6901      *
6902      * <pre>
6903      * Output only. The Condition of this Revision, containing its readiness
6904      * status, and detailed error information in case it did not reach a serving
6905      * state.
6906      * </pre>
6907      *
6908      * <code>
6909      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6910      * </code>
6911      */
getConditionsOrBuilder(int index)6912     public com.google.cloud.run.v2.ConditionOrBuilder getConditionsOrBuilder(int index) {
6913       if (conditionsBuilder_ == null) {
6914         return conditions_.get(index);
6915       } else {
6916         return conditionsBuilder_.getMessageOrBuilder(index);
6917       }
6918     }
6919     /**
6920      *
6921      *
6922      * <pre>
6923      * Output only. The Condition of this Revision, containing its readiness
6924      * status, and detailed error information in case it did not reach a serving
6925      * state.
6926      * </pre>
6927      *
6928      * <code>
6929      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6930      * </code>
6931      */
6932     public java.util.List<? extends com.google.cloud.run.v2.ConditionOrBuilder>
getConditionsOrBuilderList()6933         getConditionsOrBuilderList() {
6934       if (conditionsBuilder_ != null) {
6935         return conditionsBuilder_.getMessageOrBuilderList();
6936       } else {
6937         return java.util.Collections.unmodifiableList(conditions_);
6938       }
6939     }
6940     /**
6941      *
6942      *
6943      * <pre>
6944      * Output only. The Condition of this Revision, containing its readiness
6945      * status, and detailed error information in case it did not reach a serving
6946      * state.
6947      * </pre>
6948      *
6949      * <code>
6950      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6951      * </code>
6952      */
addConditionsBuilder()6953     public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder() {
6954       return getConditionsFieldBuilder()
6955           .addBuilder(com.google.cloud.run.v2.Condition.getDefaultInstance());
6956     }
6957     /**
6958      *
6959      *
6960      * <pre>
6961      * Output only. The Condition of this Revision, containing its readiness
6962      * status, and detailed error information in case it did not reach a serving
6963      * state.
6964      * </pre>
6965      *
6966      * <code>
6967      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6968      * </code>
6969      */
addConditionsBuilder(int index)6970     public com.google.cloud.run.v2.Condition.Builder addConditionsBuilder(int index) {
6971       return getConditionsFieldBuilder()
6972           .addBuilder(index, com.google.cloud.run.v2.Condition.getDefaultInstance());
6973     }
6974     /**
6975      *
6976      *
6977      * <pre>
6978      * Output only. The Condition of this Revision, containing its readiness
6979      * status, and detailed error information in case it did not reach a serving
6980      * state.
6981      * </pre>
6982      *
6983      * <code>
6984      * repeated .google.cloud.run.v2.Condition conditions = 31 [(.google.api.field_behavior) = OUTPUT_ONLY];
6985      * </code>
6986      */
getConditionsBuilderList()6987     public java.util.List<com.google.cloud.run.v2.Condition.Builder> getConditionsBuilderList() {
6988       return getConditionsFieldBuilder().getBuilderList();
6989     }
6990 
6991     private com.google.protobuf.RepeatedFieldBuilderV3<
6992             com.google.cloud.run.v2.Condition,
6993             com.google.cloud.run.v2.Condition.Builder,
6994             com.google.cloud.run.v2.ConditionOrBuilder>
getConditionsFieldBuilder()6995         getConditionsFieldBuilder() {
6996       if (conditionsBuilder_ == null) {
6997         conditionsBuilder_ =
6998             new com.google.protobuf.RepeatedFieldBuilderV3<
6999                 com.google.cloud.run.v2.Condition,
7000                 com.google.cloud.run.v2.Condition.Builder,
7001                 com.google.cloud.run.v2.ConditionOrBuilder>(
7002                 conditions_, ((bitField0_ & 0x00800000) != 0), getParentForChildren(), isClean());
7003         conditions_ = null;
7004       }
7005       return conditionsBuilder_;
7006     }
7007 
7008     private long observedGeneration_;
7009     /**
7010      *
7011      *
7012      * <pre>
7013      * Output only. The generation of this Revision currently serving traffic. See
7014      * comments in `reconciling` for additional information on reconciliation
7015      * process in Cloud Run.
7016      * </pre>
7017      *
7018      * <code>int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7019      *
7020      * @return The observedGeneration.
7021      */
7022     @java.lang.Override
getObservedGeneration()7023     public long getObservedGeneration() {
7024       return observedGeneration_;
7025     }
7026     /**
7027      *
7028      *
7029      * <pre>
7030      * Output only. The generation of this Revision currently serving traffic. See
7031      * comments in `reconciling` for additional information on reconciliation
7032      * process in Cloud Run.
7033      * </pre>
7034      *
7035      * <code>int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7036      *
7037      * @param value The observedGeneration to set.
7038      * @return This builder for chaining.
7039      */
setObservedGeneration(long value)7040     public Builder setObservedGeneration(long value) {
7041 
7042       observedGeneration_ = value;
7043       bitField0_ |= 0x01000000;
7044       onChanged();
7045       return this;
7046     }
7047     /**
7048      *
7049      *
7050      * <pre>
7051      * Output only. The generation of this Revision currently serving traffic. See
7052      * comments in `reconciling` for additional information on reconciliation
7053      * process in Cloud Run.
7054      * </pre>
7055      *
7056      * <code>int64 observed_generation = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7057      *
7058      * @return This builder for chaining.
7059      */
clearObservedGeneration()7060     public Builder clearObservedGeneration() {
7061       bitField0_ = (bitField0_ & ~0x01000000);
7062       observedGeneration_ = 0L;
7063       onChanged();
7064       return this;
7065     }
7066 
7067     private java.lang.Object logUri_ = "";
7068     /**
7069      *
7070      *
7071      * <pre>
7072      * Output only. The Google Console URI to obtain logs for the Revision.
7073      * </pre>
7074      *
7075      * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7076      *
7077      * @return The logUri.
7078      */
getLogUri()7079     public java.lang.String getLogUri() {
7080       java.lang.Object ref = logUri_;
7081       if (!(ref instanceof java.lang.String)) {
7082         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
7083         java.lang.String s = bs.toStringUtf8();
7084         logUri_ = s;
7085         return s;
7086       } else {
7087         return (java.lang.String) ref;
7088       }
7089     }
7090     /**
7091      *
7092      *
7093      * <pre>
7094      * Output only. The Google Console URI to obtain logs for the Revision.
7095      * </pre>
7096      *
7097      * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7098      *
7099      * @return The bytes for logUri.
7100      */
getLogUriBytes()7101     public com.google.protobuf.ByteString getLogUriBytes() {
7102       java.lang.Object ref = logUri_;
7103       if (ref instanceof String) {
7104         com.google.protobuf.ByteString b =
7105             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
7106         logUri_ = b;
7107         return b;
7108       } else {
7109         return (com.google.protobuf.ByteString) ref;
7110       }
7111     }
7112     /**
7113      *
7114      *
7115      * <pre>
7116      * Output only. The Google Console URI to obtain logs for the Revision.
7117      * </pre>
7118      *
7119      * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7120      *
7121      * @param value The logUri to set.
7122      * @return This builder for chaining.
7123      */
setLogUri(java.lang.String value)7124     public Builder setLogUri(java.lang.String value) {
7125       if (value == null) {
7126         throw new NullPointerException();
7127       }
7128       logUri_ = value;
7129       bitField0_ |= 0x02000000;
7130       onChanged();
7131       return this;
7132     }
7133     /**
7134      *
7135      *
7136      * <pre>
7137      * Output only. The Google Console URI to obtain logs for the Revision.
7138      * </pre>
7139      *
7140      * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7141      *
7142      * @return This builder for chaining.
7143      */
clearLogUri()7144     public Builder clearLogUri() {
7145       logUri_ = getDefaultInstance().getLogUri();
7146       bitField0_ = (bitField0_ & ~0x02000000);
7147       onChanged();
7148       return this;
7149     }
7150     /**
7151      *
7152      *
7153      * <pre>
7154      * Output only. The Google Console URI to obtain logs for the Revision.
7155      * </pre>
7156      *
7157      * <code>string log_uri = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7158      *
7159      * @param value The bytes for logUri to set.
7160      * @return This builder for chaining.
7161      */
setLogUriBytes(com.google.protobuf.ByteString value)7162     public Builder setLogUriBytes(com.google.protobuf.ByteString value) {
7163       if (value == null) {
7164         throw new NullPointerException();
7165       }
7166       checkByteStringIsUtf8(value);
7167       logUri_ = value;
7168       bitField0_ |= 0x02000000;
7169       onChanged();
7170       return this;
7171     }
7172 
7173     private boolean satisfiesPzs_;
7174     /**
7175      *
7176      *
7177      * <pre>
7178      * Output only. Reserved for future use.
7179      * </pre>
7180      *
7181      * <code>bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7182      *
7183      * @return The satisfiesPzs.
7184      */
7185     @java.lang.Override
getSatisfiesPzs()7186     public boolean getSatisfiesPzs() {
7187       return satisfiesPzs_;
7188     }
7189     /**
7190      *
7191      *
7192      * <pre>
7193      * Output only. Reserved for future use.
7194      * </pre>
7195      *
7196      * <code>bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7197      *
7198      * @param value The satisfiesPzs to set.
7199      * @return This builder for chaining.
7200      */
setSatisfiesPzs(boolean value)7201     public Builder setSatisfiesPzs(boolean value) {
7202 
7203       satisfiesPzs_ = value;
7204       bitField0_ |= 0x04000000;
7205       onChanged();
7206       return this;
7207     }
7208     /**
7209      *
7210      *
7211      * <pre>
7212      * Output only. Reserved for future use.
7213      * </pre>
7214      *
7215      * <code>bool satisfies_pzs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7216      *
7217      * @return This builder for chaining.
7218      */
clearSatisfiesPzs()7219     public Builder clearSatisfiesPzs() {
7220       bitField0_ = (bitField0_ & ~0x04000000);
7221       satisfiesPzs_ = false;
7222       onChanged();
7223       return this;
7224     }
7225 
7226     private boolean sessionAffinity_;
7227     /**
7228      *
7229      *
7230      * <pre>
7231      * Enable session affinity.
7232      * </pre>
7233      *
7234      * <code>bool session_affinity = 38;</code>
7235      *
7236      * @return The sessionAffinity.
7237      */
7238     @java.lang.Override
getSessionAffinity()7239     public boolean getSessionAffinity() {
7240       return sessionAffinity_;
7241     }
7242     /**
7243      *
7244      *
7245      * <pre>
7246      * Enable session affinity.
7247      * </pre>
7248      *
7249      * <code>bool session_affinity = 38;</code>
7250      *
7251      * @param value The sessionAffinity to set.
7252      * @return This builder for chaining.
7253      */
setSessionAffinity(boolean value)7254     public Builder setSessionAffinity(boolean value) {
7255 
7256       sessionAffinity_ = value;
7257       bitField0_ |= 0x08000000;
7258       onChanged();
7259       return this;
7260     }
7261     /**
7262      *
7263      *
7264      * <pre>
7265      * Enable session affinity.
7266      * </pre>
7267      *
7268      * <code>bool session_affinity = 38;</code>
7269      *
7270      * @return This builder for chaining.
7271      */
clearSessionAffinity()7272     public Builder clearSessionAffinity() {
7273       bitField0_ = (bitField0_ & ~0x08000000);
7274       sessionAffinity_ = false;
7275       onChanged();
7276       return this;
7277     }
7278 
7279     private java.lang.Object etag_ = "";
7280     /**
7281      *
7282      *
7283      * <pre>
7284      * Output only. A system-generated fingerprint for this version of the
7285      * resource. May be used to detect modification conflict during updates.
7286      * </pre>
7287      *
7288      * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7289      *
7290      * @return The etag.
7291      */
getEtag()7292     public java.lang.String getEtag() {
7293       java.lang.Object ref = etag_;
7294       if (!(ref instanceof java.lang.String)) {
7295         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
7296         java.lang.String s = bs.toStringUtf8();
7297         etag_ = s;
7298         return s;
7299       } else {
7300         return (java.lang.String) ref;
7301       }
7302     }
7303     /**
7304      *
7305      *
7306      * <pre>
7307      * Output only. A system-generated fingerprint for this version of the
7308      * resource. May be used to detect modification conflict during updates.
7309      * </pre>
7310      *
7311      * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7312      *
7313      * @return The bytes for etag.
7314      */
getEtagBytes()7315     public com.google.protobuf.ByteString getEtagBytes() {
7316       java.lang.Object ref = etag_;
7317       if (ref instanceof String) {
7318         com.google.protobuf.ByteString b =
7319             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
7320         etag_ = b;
7321         return b;
7322       } else {
7323         return (com.google.protobuf.ByteString) ref;
7324       }
7325     }
7326     /**
7327      *
7328      *
7329      * <pre>
7330      * Output only. A system-generated fingerprint for this version of the
7331      * resource. May be used to detect modification conflict during updates.
7332      * </pre>
7333      *
7334      * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7335      *
7336      * @param value The etag to set.
7337      * @return This builder for chaining.
7338      */
setEtag(java.lang.String value)7339     public Builder setEtag(java.lang.String value) {
7340       if (value == null) {
7341         throw new NullPointerException();
7342       }
7343       etag_ = value;
7344       bitField0_ |= 0x10000000;
7345       onChanged();
7346       return this;
7347     }
7348     /**
7349      *
7350      *
7351      * <pre>
7352      * Output only. A system-generated fingerprint for this version of the
7353      * resource. May be used to detect modification conflict during updates.
7354      * </pre>
7355      *
7356      * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7357      *
7358      * @return This builder for chaining.
7359      */
clearEtag()7360     public Builder clearEtag() {
7361       etag_ = getDefaultInstance().getEtag();
7362       bitField0_ = (bitField0_ & ~0x10000000);
7363       onChanged();
7364       return this;
7365     }
7366     /**
7367      *
7368      *
7369      * <pre>
7370      * Output only. A system-generated fingerprint for this version of the
7371      * resource. May be used to detect modification conflict during updates.
7372      * </pre>
7373      *
7374      * <code>string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
7375      *
7376      * @param value The bytes for etag to set.
7377      * @return This builder for chaining.
7378      */
setEtagBytes(com.google.protobuf.ByteString value)7379     public Builder setEtagBytes(com.google.protobuf.ByteString value) {
7380       if (value == null) {
7381         throw new NullPointerException();
7382       }
7383       checkByteStringIsUtf8(value);
7384       etag_ = value;
7385       bitField0_ |= 0x10000000;
7386       onChanged();
7387       return this;
7388     }
7389 
7390     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)7391     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
7392       return super.setUnknownFields(unknownFields);
7393     }
7394 
7395     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)7396     public final Builder mergeUnknownFields(
7397         final com.google.protobuf.UnknownFieldSet unknownFields) {
7398       return super.mergeUnknownFields(unknownFields);
7399     }
7400 
7401     // @@protoc_insertion_point(builder_scope:google.cloud.run.v2.Revision)
7402   }
7403 
7404   // @@protoc_insertion_point(class_scope:google.cloud.run.v2.Revision)
7405   private static final com.google.cloud.run.v2.Revision DEFAULT_INSTANCE;
7406 
7407   static {
7408     DEFAULT_INSTANCE = new com.google.cloud.run.v2.Revision();
7409   }
7410 
getDefaultInstance()7411   public static com.google.cloud.run.v2.Revision getDefaultInstance() {
7412     return DEFAULT_INSTANCE;
7413   }
7414 
7415   private static final com.google.protobuf.Parser<Revision> PARSER =
7416       new com.google.protobuf.AbstractParser<Revision>() {
7417         @java.lang.Override
7418         public Revision parsePartialFrom(
7419             com.google.protobuf.CodedInputStream input,
7420             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
7421             throws com.google.protobuf.InvalidProtocolBufferException {
7422           Builder builder = newBuilder();
7423           try {
7424             builder.mergeFrom(input, extensionRegistry);
7425           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
7426             throw e.setUnfinishedMessage(builder.buildPartial());
7427           } catch (com.google.protobuf.UninitializedMessageException e) {
7428             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
7429           } catch (java.io.IOException e) {
7430             throw new com.google.protobuf.InvalidProtocolBufferException(e)
7431                 .setUnfinishedMessage(builder.buildPartial());
7432           }
7433           return builder.buildPartial();
7434         }
7435       };
7436 
parser()7437   public static com.google.protobuf.Parser<Revision> parser() {
7438     return PARSER;
7439   }
7440 
7441   @java.lang.Override
getParserForType()7442   public com.google.protobuf.Parser<Revision> getParserForType() {
7443     return PARSER;
7444   }
7445 
7446   @java.lang.Override
getDefaultInstanceForType()7447   public com.google.cloud.run.v2.Revision getDefaultInstanceForType() {
7448     return DEFAULT_INSTANCE;
7449   }
7450 }
7451