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
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public EnvVar.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public EnvVar buildPartial()
Returns
public EnvVar.Builder clear()
Returns
Overrides
public EnvVar.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public EnvVar.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
public EnvVar.Builder clone()
Returns
Overrides
public EnvVar getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Required. Name of the environment variable. Must be a valid C identifier.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Required. Name of the environment variable. Must be a valid C identifier.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Type | Description |
String | The value.
|
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
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public EnvVar.Builder mergeFrom(EnvVar other)
Parameter
Returns
public EnvVar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public EnvVar.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final EnvVar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public EnvVar.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | String
The name to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public EnvVar.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final EnvVar.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Name | Description |
value | String
The value to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for value to set.
|
Returns