public static final class EnvVar.Builder extends GeneratedMessageV3.Builder<EnvVar.Builder> implements EnvVarOrBuilder
EnvVar represents an environment variable present in a Container.
Protobuf type google.cloud.run.v2.EnvVar
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EnvVar.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public EnvVar buildPartial()
Returns
clear()
public EnvVar.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public EnvVar.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public EnvVar.Builder clearName()
Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
exceed 32768 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public EnvVar.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearValue()
public EnvVar.Builder clearValue()
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route 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.
Defaults to "", and the maximum length is 32768 bytes.
string value = 2;
Returns
clearValueSource()
public EnvVar.Builder clearValueSource()
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Returns
clearValues()
public EnvVar.Builder clearValues()
Returns
clone()
public EnvVar.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public EnvVar getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
exceed 32768 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
exceed 32768 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getValue()
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route 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.
Defaults to "", and the maximum length is 32768 bytes.
string value = 2;
Returns
Type | Description |
String | The value.
|
getValueBytes()
public ByteString getValueBytes()
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route 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.
Defaults to "", and the maximum length is 32768 bytes.
string value = 2;
Returns
getValueSource()
public EnvVarSource getValueSource()
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Returns
getValueSourceBuilder()
public EnvVarSource.Builder getValueSourceBuilder()
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Returns
getValueSourceOrBuilder()
public EnvVarSourceOrBuilder getValueSourceOrBuilder()
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Returns
getValuesCase()
public EnvVar.ValuesCase getValuesCase()
Returns
hasValue()
public boolean hasValue()
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route 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.
Defaults to "", and the maximum length is 32768 bytes.
string value = 2;
Returns
Type | Description |
boolean | Whether the value field is set.
|
hasValueSource()
public boolean hasValueSource()
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Returns
Type | Description |
boolean | Whether the valueSource field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(EnvVar other)
public EnvVar.Builder mergeFrom(EnvVar other)
Parameter
Returns
public EnvVar.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EnvVar.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EnvVar.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeValueSource(EnvVarSource value)
public EnvVar.Builder mergeValueSource(EnvVarSource value)
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public EnvVar.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public EnvVar.Builder setName(String value)
Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
exceed 32768 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public EnvVar.Builder setNameBytes(ByteString value)
Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
exceed 32768 characters.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EnvVar.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EnvVar.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setValue(String value)
public EnvVar.Builder setValue(String value)
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route 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.
Defaults to "", and the maximum length is 32768 bytes.
string value = 2;
Parameter
Name | Description |
value | String
The value to set.
|
Returns
setValueBytes(ByteString value)
public EnvVar.Builder setValueBytes(ByteString value)
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route 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.
Defaults to "", and the maximum length is 32768 bytes.
string value = 2;
Parameter
Name | Description |
value | ByteString
The bytes for value to set.
|
Returns
setValueSource(EnvVarSource value)
public EnvVar.Builder setValueSource(EnvVarSource value)
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Parameter
Returns
setValueSource(EnvVarSource.Builder builderForValue)
public EnvVar.Builder setValueSource(EnvVarSource.Builder builderForValue)
Source for the environment variable's value.
.google.cloud.run.v2.EnvVarSource value_source = 3;
Parameter
Returns