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