Class EnvVar.Builder (3.32.0)

public static final class EnvVar.Builder extends GeneratedMessageV3.Builder<EnvVar.Builder> implements EnvVarOrBuilder

Represents an environment variable present in a Container or Python Module.

Protobuf type google.cloud.aiplatform.v1.EnvVar

Implements

EnvVarOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EnvVar.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EnvVar.Builder
Overrides

build()

public EnvVar build()
Returns
TypeDescription
EnvVar

buildPartial()

public EnvVar buildPartial()
Returns
TypeDescription
EnvVar

clear()

public EnvVar.Builder clear()
Returns
TypeDescription
EnvVar.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public EnvVar.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EnvVar.Builder
Overrides

clearName()

public EnvVar.Builder clearName()

Required. Name of the environment variable. Must be a valid C identifier.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EnvVar.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EnvVar.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EnvVar.Builder
Overrides

clearValue()

public EnvVar.Builder clearValue()

Required. Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
EnvVar.Builder

This builder for chaining.

clone()

public EnvVar.Builder clone()
Returns
TypeDescription
EnvVar.Builder
Overrides

getDefaultInstanceForType()

public EnvVar getDefaultInstanceForType()
Returns
TypeDescription
EnvVar

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Name of the environment variable. Must be a valid C identifier.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the environment variable. Must be a valid C identifier.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getValue()

public String getValue()

Required. Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EnvVar other)

public EnvVar.Builder mergeFrom(EnvVar other)
Parameter
NameDescription
otherEnvVar
Returns
TypeDescription
EnvVar.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EnvVar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EnvVar.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EnvVar.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EnvVar.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EnvVar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EnvVar.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public EnvVar.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EnvVar.Builder
Overrides

setName(String value)

public EnvVar.Builder setName(String value)

Required. Name of the environment variable. Must be a valid C identifier.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
EnvVar.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EnvVar.Builder setNameBytes(ByteString value)

Required. Name of the environment variable. Must be a valid C identifier.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
EnvVar.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EnvVar.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EnvVar.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EnvVar.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EnvVar.Builder
Overrides

setValue(String value)

public EnvVar.Builder setValue(String value)

Required. Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
EnvVar.Builder

This builder for chaining.

setValueBytes(ByteString value)

public EnvVar.Builder setValueBytes(ByteString value)

Required. Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
EnvVar.Builder

This builder for chaining.