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