• 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/aiplatform/v1beta1/env_var.proto
18 
19 package com.google.cloud.aiplatform.v1beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Represents an environment variable present in a Container or Python Module.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.aiplatform.v1beta1.EnvVar}
29  */
30 public final class EnvVar extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EnvVar)
33     EnvVarOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use EnvVar.newBuilder() to construct.
EnvVar(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private EnvVar(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
EnvVar()40   private EnvVar() {
41     name_ = "";
42     value_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new EnvVar();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.aiplatform.v1beta1.EnvVarProto
58         .internal_static_google_cloud_aiplatform_v1beta1_EnvVar_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.aiplatform.v1beta1.EnvVarProto
65         .internal_static_google_cloud_aiplatform_v1beta1_EnvVar_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.aiplatform.v1beta1.EnvVar.class,
68             com.google.cloud.aiplatform.v1beta1.EnvVar.Builder.class);
69   }
70 
71   public static final int NAME_FIELD_NUMBER = 1;
72 
73   @SuppressWarnings("serial")
74   private volatile java.lang.Object name_ = "";
75   /**
76    *
77    *
78    * <pre>
79    * Required. Name of the environment variable. Must be a valid C identifier.
80    * </pre>
81    *
82    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
83    *
84    * @return The name.
85    */
86   @java.lang.Override
getName()87   public java.lang.String getName() {
88     java.lang.Object ref = name_;
89     if (ref instanceof java.lang.String) {
90       return (java.lang.String) ref;
91     } else {
92       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
93       java.lang.String s = bs.toStringUtf8();
94       name_ = s;
95       return s;
96     }
97   }
98   /**
99    *
100    *
101    * <pre>
102    * Required. Name of the environment variable. Must be a valid C identifier.
103    * </pre>
104    *
105    * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
106    *
107    * @return The bytes for name.
108    */
109   @java.lang.Override
getNameBytes()110   public com.google.protobuf.ByteString getNameBytes() {
111     java.lang.Object ref = name_;
112     if (ref instanceof java.lang.String) {
113       com.google.protobuf.ByteString b =
114           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
115       name_ = b;
116       return b;
117     } else {
118       return (com.google.protobuf.ByteString) ref;
119     }
120   }
121 
122   public static final int VALUE_FIELD_NUMBER = 2;
123 
124   @SuppressWarnings("serial")
125   private volatile java.lang.Object value_ = "";
126   /**
127    *
128    *
129    * <pre>
130    * Required. Variables that reference a $(VAR_NAME) are expanded
131    * using the previous defined environment variables in the container and
132    * any service environment variables. If a variable cannot be resolved,
133    * the reference in the input string will be unchanged. The $(VAR_NAME)
134    * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
135    * references will never be expanded, regardless of whether the variable
136    * exists or not.
137    * </pre>
138    *
139    * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
140    *
141    * @return The value.
142    */
143   @java.lang.Override
getValue()144   public java.lang.String getValue() {
145     java.lang.Object ref = value_;
146     if (ref instanceof java.lang.String) {
147       return (java.lang.String) ref;
148     } else {
149       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
150       java.lang.String s = bs.toStringUtf8();
151       value_ = s;
152       return s;
153     }
154   }
155   /**
156    *
157    *
158    * <pre>
159    * Required. Variables that reference a $(VAR_NAME) are expanded
160    * using the previous defined environment variables in the container and
161    * any service environment variables. If a variable cannot be resolved,
162    * the reference in the input string will be unchanged. The $(VAR_NAME)
163    * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
164    * references will never be expanded, regardless of whether the variable
165    * exists or not.
166    * </pre>
167    *
168    * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
169    *
170    * @return The bytes for value.
171    */
172   @java.lang.Override
getValueBytes()173   public com.google.protobuf.ByteString getValueBytes() {
174     java.lang.Object ref = value_;
175     if (ref instanceof java.lang.String) {
176       com.google.protobuf.ByteString b =
177           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
178       value_ = b;
179       return b;
180     } else {
181       return (com.google.protobuf.ByteString) ref;
182     }
183   }
184 
185   private byte memoizedIsInitialized = -1;
186 
187   @java.lang.Override
isInitialized()188   public final boolean isInitialized() {
189     byte isInitialized = memoizedIsInitialized;
190     if (isInitialized == 1) return true;
191     if (isInitialized == 0) return false;
192 
193     memoizedIsInitialized = 1;
194     return true;
195   }
196 
197   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)198   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
199     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
200       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
201     }
202     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
203       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
204     }
205     getUnknownFields().writeTo(output);
206   }
207 
208   @java.lang.Override
getSerializedSize()209   public int getSerializedSize() {
210     int size = memoizedSize;
211     if (size != -1) return size;
212 
213     size = 0;
214     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
215       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
216     }
217     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) {
218       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
219     }
220     size += getUnknownFields().getSerializedSize();
221     memoizedSize = size;
222     return size;
223   }
224 
225   @java.lang.Override
equals(final java.lang.Object obj)226   public boolean equals(final java.lang.Object obj) {
227     if (obj == this) {
228       return true;
229     }
230     if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.EnvVar)) {
231       return super.equals(obj);
232     }
233     com.google.cloud.aiplatform.v1beta1.EnvVar other =
234         (com.google.cloud.aiplatform.v1beta1.EnvVar) obj;
235 
236     if (!getName().equals(other.getName())) return false;
237     if (!getValue().equals(other.getValue())) return false;
238     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
239     return true;
240   }
241 
242   @java.lang.Override
hashCode()243   public int hashCode() {
244     if (memoizedHashCode != 0) {
245       return memoizedHashCode;
246     }
247     int hash = 41;
248     hash = (19 * hash) + getDescriptor().hashCode();
249     hash = (37 * hash) + NAME_FIELD_NUMBER;
250     hash = (53 * hash) + getName().hashCode();
251     hash = (37 * hash) + VALUE_FIELD_NUMBER;
252     hash = (53 * hash) + getValue().hashCode();
253     hash = (29 * hash) + getUnknownFields().hashCode();
254     memoizedHashCode = hash;
255     return hash;
256   }
257 
parseFrom(java.nio.ByteBuffer data)258   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(java.nio.ByteBuffer data)
259       throws com.google.protobuf.InvalidProtocolBufferException {
260     return PARSER.parseFrom(data);
261   }
262 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)263   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
264       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265       throws com.google.protobuf.InvalidProtocolBufferException {
266     return PARSER.parseFrom(data, extensionRegistry);
267   }
268 
parseFrom( com.google.protobuf.ByteString data)269   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
270       com.google.protobuf.ByteString data)
271       throws com.google.protobuf.InvalidProtocolBufferException {
272     return PARSER.parseFrom(data);
273   }
274 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)275   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
276       com.google.protobuf.ByteString data,
277       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278       throws com.google.protobuf.InvalidProtocolBufferException {
279     return PARSER.parseFrom(data, extensionRegistry);
280   }
281 
parseFrom(byte[] data)282   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(byte[] data)
283       throws com.google.protobuf.InvalidProtocolBufferException {
284     return PARSER.parseFrom(data);
285   }
286 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)287   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
288       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
289       throws com.google.protobuf.InvalidProtocolBufferException {
290     return PARSER.parseFrom(data, extensionRegistry);
291   }
292 
parseFrom(java.io.InputStream input)293   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(java.io.InputStream input)
294       throws java.io.IOException {
295     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
296   }
297 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)298   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
299       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
300       throws java.io.IOException {
301     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
302         PARSER, input, extensionRegistry);
303   }
304 
parseDelimitedFrom( java.io.InputStream input)305   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseDelimitedFrom(
306       java.io.InputStream input) throws java.io.IOException {
307     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
308   }
309 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)310   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseDelimitedFrom(
311       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
312       throws java.io.IOException {
313     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
314         PARSER, input, extensionRegistry);
315   }
316 
parseFrom( com.google.protobuf.CodedInputStream input)317   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
318       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
319     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
320   }
321 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)322   public static com.google.cloud.aiplatform.v1beta1.EnvVar parseFrom(
323       com.google.protobuf.CodedInputStream input,
324       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
325       throws java.io.IOException {
326     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
327         PARSER, input, extensionRegistry);
328   }
329 
330   @java.lang.Override
newBuilderForType()331   public Builder newBuilderForType() {
332     return newBuilder();
333   }
334 
newBuilder()335   public static Builder newBuilder() {
336     return DEFAULT_INSTANCE.toBuilder();
337   }
338 
newBuilder(com.google.cloud.aiplatform.v1beta1.EnvVar prototype)339   public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.EnvVar prototype) {
340     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
341   }
342 
343   @java.lang.Override
toBuilder()344   public Builder toBuilder() {
345     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
346   }
347 
348   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)349   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
350     Builder builder = new Builder(parent);
351     return builder;
352   }
353   /**
354    *
355    *
356    * <pre>
357    * Represents an environment variable present in a Container or Python Module.
358    * </pre>
359    *
360    * Protobuf type {@code google.cloud.aiplatform.v1beta1.EnvVar}
361    */
362   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
363       implements
364       // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EnvVar)
365       com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder {
getDescriptor()366     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
367       return com.google.cloud.aiplatform.v1beta1.EnvVarProto
368           .internal_static_google_cloud_aiplatform_v1beta1_EnvVar_descriptor;
369     }
370 
371     @java.lang.Override
372     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()373         internalGetFieldAccessorTable() {
374       return com.google.cloud.aiplatform.v1beta1.EnvVarProto
375           .internal_static_google_cloud_aiplatform_v1beta1_EnvVar_fieldAccessorTable
376           .ensureFieldAccessorsInitialized(
377               com.google.cloud.aiplatform.v1beta1.EnvVar.class,
378               com.google.cloud.aiplatform.v1beta1.EnvVar.Builder.class);
379     }
380 
381     // Construct using com.google.cloud.aiplatform.v1beta1.EnvVar.newBuilder()
Builder()382     private Builder() {}
383 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)384     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
385       super(parent);
386     }
387 
388     @java.lang.Override
clear()389     public Builder clear() {
390       super.clear();
391       bitField0_ = 0;
392       name_ = "";
393       value_ = "";
394       return this;
395     }
396 
397     @java.lang.Override
getDescriptorForType()398     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
399       return com.google.cloud.aiplatform.v1beta1.EnvVarProto
400           .internal_static_google_cloud_aiplatform_v1beta1_EnvVar_descriptor;
401     }
402 
403     @java.lang.Override
getDefaultInstanceForType()404     public com.google.cloud.aiplatform.v1beta1.EnvVar getDefaultInstanceForType() {
405       return com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance();
406     }
407 
408     @java.lang.Override
build()409     public com.google.cloud.aiplatform.v1beta1.EnvVar build() {
410       com.google.cloud.aiplatform.v1beta1.EnvVar result = buildPartial();
411       if (!result.isInitialized()) {
412         throw newUninitializedMessageException(result);
413       }
414       return result;
415     }
416 
417     @java.lang.Override
buildPartial()418     public com.google.cloud.aiplatform.v1beta1.EnvVar buildPartial() {
419       com.google.cloud.aiplatform.v1beta1.EnvVar result =
420           new com.google.cloud.aiplatform.v1beta1.EnvVar(this);
421       if (bitField0_ != 0) {
422         buildPartial0(result);
423       }
424       onBuilt();
425       return result;
426     }
427 
buildPartial0(com.google.cloud.aiplatform.v1beta1.EnvVar result)428     private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EnvVar result) {
429       int from_bitField0_ = bitField0_;
430       if (((from_bitField0_ & 0x00000001) != 0)) {
431         result.name_ = name_;
432       }
433       if (((from_bitField0_ & 0x00000002) != 0)) {
434         result.value_ = value_;
435       }
436     }
437 
438     @java.lang.Override
clone()439     public Builder clone() {
440       return super.clone();
441     }
442 
443     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)444     public Builder setField(
445         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
446       return super.setField(field, value);
447     }
448 
449     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)450     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
451       return super.clearField(field);
452     }
453 
454     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)455     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
456       return super.clearOneof(oneof);
457     }
458 
459     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)460     public Builder setRepeatedField(
461         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
462       return super.setRepeatedField(field, index, value);
463     }
464 
465     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)466     public Builder addRepeatedField(
467         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
468       return super.addRepeatedField(field, value);
469     }
470 
471     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)472     public Builder mergeFrom(com.google.protobuf.Message other) {
473       if (other instanceof com.google.cloud.aiplatform.v1beta1.EnvVar) {
474         return mergeFrom((com.google.cloud.aiplatform.v1beta1.EnvVar) other);
475       } else {
476         super.mergeFrom(other);
477         return this;
478       }
479     }
480 
mergeFrom(com.google.cloud.aiplatform.v1beta1.EnvVar other)481     public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EnvVar other) {
482       if (other == com.google.cloud.aiplatform.v1beta1.EnvVar.getDefaultInstance()) return this;
483       if (!other.getName().isEmpty()) {
484         name_ = other.name_;
485         bitField0_ |= 0x00000001;
486         onChanged();
487       }
488       if (!other.getValue().isEmpty()) {
489         value_ = other.value_;
490         bitField0_ |= 0x00000002;
491         onChanged();
492       }
493       this.mergeUnknownFields(other.getUnknownFields());
494       onChanged();
495       return this;
496     }
497 
498     @java.lang.Override
isInitialized()499     public final boolean isInitialized() {
500       return true;
501     }
502 
503     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)504     public Builder mergeFrom(
505         com.google.protobuf.CodedInputStream input,
506         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
507         throws java.io.IOException {
508       if (extensionRegistry == null) {
509         throw new java.lang.NullPointerException();
510       }
511       try {
512         boolean done = false;
513         while (!done) {
514           int tag = input.readTag();
515           switch (tag) {
516             case 0:
517               done = true;
518               break;
519             case 10:
520               {
521                 name_ = input.readStringRequireUtf8();
522                 bitField0_ |= 0x00000001;
523                 break;
524               } // case 10
525             case 18:
526               {
527                 value_ = input.readStringRequireUtf8();
528                 bitField0_ |= 0x00000002;
529                 break;
530               } // case 18
531             default:
532               {
533                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
534                   done = true; // was an endgroup tag
535                 }
536                 break;
537               } // default:
538           } // switch (tag)
539         } // while (!done)
540       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
541         throw e.unwrapIOException();
542       } finally {
543         onChanged();
544       } // finally
545       return this;
546     }
547 
548     private int bitField0_;
549 
550     private java.lang.Object name_ = "";
551     /**
552      *
553      *
554      * <pre>
555      * Required. Name of the environment variable. Must be a valid C identifier.
556      * </pre>
557      *
558      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
559      *
560      * @return The name.
561      */
getName()562     public java.lang.String getName() {
563       java.lang.Object ref = name_;
564       if (!(ref instanceof java.lang.String)) {
565         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
566         java.lang.String s = bs.toStringUtf8();
567         name_ = s;
568         return s;
569       } else {
570         return (java.lang.String) ref;
571       }
572     }
573     /**
574      *
575      *
576      * <pre>
577      * Required. Name of the environment variable. Must be a valid C identifier.
578      * </pre>
579      *
580      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
581      *
582      * @return The bytes for name.
583      */
getNameBytes()584     public com.google.protobuf.ByteString getNameBytes() {
585       java.lang.Object ref = name_;
586       if (ref instanceof String) {
587         com.google.protobuf.ByteString b =
588             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
589         name_ = b;
590         return b;
591       } else {
592         return (com.google.protobuf.ByteString) ref;
593       }
594     }
595     /**
596      *
597      *
598      * <pre>
599      * Required. Name of the environment variable. Must be a valid C identifier.
600      * </pre>
601      *
602      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
603      *
604      * @param value The name to set.
605      * @return This builder for chaining.
606      */
setName(java.lang.String value)607     public Builder setName(java.lang.String value) {
608       if (value == null) {
609         throw new NullPointerException();
610       }
611       name_ = value;
612       bitField0_ |= 0x00000001;
613       onChanged();
614       return this;
615     }
616     /**
617      *
618      *
619      * <pre>
620      * Required. Name of the environment variable. Must be a valid C identifier.
621      * </pre>
622      *
623      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
624      *
625      * @return This builder for chaining.
626      */
clearName()627     public Builder clearName() {
628       name_ = getDefaultInstance().getName();
629       bitField0_ = (bitField0_ & ~0x00000001);
630       onChanged();
631       return this;
632     }
633     /**
634      *
635      *
636      * <pre>
637      * Required. Name of the environment variable. Must be a valid C identifier.
638      * </pre>
639      *
640      * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
641      *
642      * @param value The bytes for name to set.
643      * @return This builder for chaining.
644      */
setNameBytes(com.google.protobuf.ByteString value)645     public Builder setNameBytes(com.google.protobuf.ByteString value) {
646       if (value == null) {
647         throw new NullPointerException();
648       }
649       checkByteStringIsUtf8(value);
650       name_ = value;
651       bitField0_ |= 0x00000001;
652       onChanged();
653       return this;
654     }
655 
656     private java.lang.Object value_ = "";
657     /**
658      *
659      *
660      * <pre>
661      * Required. Variables that reference a $(VAR_NAME) are expanded
662      * using the previous defined environment variables in the container and
663      * any service environment variables. If a variable cannot be resolved,
664      * the reference in the input string will be unchanged. The $(VAR_NAME)
665      * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
666      * references will never be expanded, regardless of whether the variable
667      * exists or not.
668      * </pre>
669      *
670      * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
671      *
672      * @return The value.
673      */
getValue()674     public java.lang.String getValue() {
675       java.lang.Object ref = value_;
676       if (!(ref instanceof java.lang.String)) {
677         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
678         java.lang.String s = bs.toStringUtf8();
679         value_ = s;
680         return s;
681       } else {
682         return (java.lang.String) ref;
683       }
684     }
685     /**
686      *
687      *
688      * <pre>
689      * Required. Variables that reference a $(VAR_NAME) are expanded
690      * using the previous defined environment variables in the container and
691      * any service environment variables. If a variable cannot be resolved,
692      * the reference in the input string will be unchanged. The $(VAR_NAME)
693      * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
694      * references will never be expanded, regardless of whether the variable
695      * exists or not.
696      * </pre>
697      *
698      * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
699      *
700      * @return The bytes for value.
701      */
getValueBytes()702     public com.google.protobuf.ByteString getValueBytes() {
703       java.lang.Object ref = value_;
704       if (ref instanceof String) {
705         com.google.protobuf.ByteString b =
706             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
707         value_ = b;
708         return b;
709       } else {
710         return (com.google.protobuf.ByteString) ref;
711       }
712     }
713     /**
714      *
715      *
716      * <pre>
717      * Required. Variables that reference a $(VAR_NAME) are expanded
718      * using the previous defined environment variables in the container and
719      * any service environment variables. If a variable cannot be resolved,
720      * the reference in the input string will be unchanged. The $(VAR_NAME)
721      * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
722      * references will never be expanded, regardless of whether the variable
723      * exists or not.
724      * </pre>
725      *
726      * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
727      *
728      * @param value The value to set.
729      * @return This builder for chaining.
730      */
setValue(java.lang.String value)731     public Builder setValue(java.lang.String value) {
732       if (value == null) {
733         throw new NullPointerException();
734       }
735       value_ = value;
736       bitField0_ |= 0x00000002;
737       onChanged();
738       return this;
739     }
740     /**
741      *
742      *
743      * <pre>
744      * Required. Variables that reference a $(VAR_NAME) are expanded
745      * using the previous defined environment variables in the container and
746      * any service environment variables. If a variable cannot be resolved,
747      * the reference in the input string will be unchanged. The $(VAR_NAME)
748      * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
749      * references will never be expanded, regardless of whether the variable
750      * exists or not.
751      * </pre>
752      *
753      * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
754      *
755      * @return This builder for chaining.
756      */
clearValue()757     public Builder clearValue() {
758       value_ = getDefaultInstance().getValue();
759       bitField0_ = (bitField0_ & ~0x00000002);
760       onChanged();
761       return this;
762     }
763     /**
764      *
765      *
766      * <pre>
767      * Required. Variables that reference a $(VAR_NAME) are expanded
768      * using the previous defined environment variables in the container and
769      * any service environment variables. If a variable cannot be resolved,
770      * the reference in the input string will be unchanged. The $(VAR_NAME)
771      * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
772      * references will never be expanded, regardless of whether the variable
773      * exists or not.
774      * </pre>
775      *
776      * <code>string value = 2 [(.google.api.field_behavior) = REQUIRED];</code>
777      *
778      * @param value The bytes for value to set.
779      * @return This builder for chaining.
780      */
setValueBytes(com.google.protobuf.ByteString value)781     public Builder setValueBytes(com.google.protobuf.ByteString value) {
782       if (value == null) {
783         throw new NullPointerException();
784       }
785       checkByteStringIsUtf8(value);
786       value_ = value;
787       bitField0_ |= 0x00000002;
788       onChanged();
789       return this;
790     }
791 
792     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)793     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
794       return super.setUnknownFields(unknownFields);
795     }
796 
797     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)798     public final Builder mergeUnknownFields(
799         final com.google.protobuf.UnknownFieldSet unknownFields) {
800       return super.mergeUnknownFields(unknownFields);
801     }
802 
803     // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EnvVar)
804   }
805 
806   // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EnvVar)
807   private static final com.google.cloud.aiplatform.v1beta1.EnvVar DEFAULT_INSTANCE;
808 
809   static {
810     DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EnvVar();
811   }
812 
getDefaultInstance()813   public static com.google.cloud.aiplatform.v1beta1.EnvVar getDefaultInstance() {
814     return DEFAULT_INSTANCE;
815   }
816 
817   private static final com.google.protobuf.Parser<EnvVar> PARSER =
818       new com.google.protobuf.AbstractParser<EnvVar>() {
819         @java.lang.Override
820         public EnvVar parsePartialFrom(
821             com.google.protobuf.CodedInputStream input,
822             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
823             throws com.google.protobuf.InvalidProtocolBufferException {
824           Builder builder = newBuilder();
825           try {
826             builder.mergeFrom(input, extensionRegistry);
827           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
828             throw e.setUnfinishedMessage(builder.buildPartial());
829           } catch (com.google.protobuf.UninitializedMessageException e) {
830             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
831           } catch (java.io.IOException e) {
832             throw new com.google.protobuf.InvalidProtocolBufferException(e)
833                 .setUnfinishedMessage(builder.buildPartial());
834           }
835           return builder.buildPartial();
836         }
837       };
838 
parser()839   public static com.google.protobuf.Parser<EnvVar> parser() {
840     return PARSER;
841   }
842 
843   @java.lang.Override
getParserForType()844   public com.google.protobuf.Parser<EnvVar> getParserForType() {
845     return PARSER;
846   }
847 
848   @java.lang.Override
getDefaultInstanceForType()849   public com.google.cloud.aiplatform.v1beta1.EnvVar getDefaultInstanceForType() {
850     return DEFAULT_INSTANCE;
851   }
852 }
853