Class EnvVar (0.20.0)

publicfinalclass EnvVarextendsGeneratedMessageV3implementsEnvVarOrBuilder

EnvVar represents an environment variable present in a Container.

Protobuf type google.cloud.run.v2.EnvVar

Implements

EnvVarOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

VALUE_FIELD_NUMBER

publicstaticfinalintVALUE_FIELD_NUMBER
Field Value
Type Description
int

VALUE_SOURCE_FIELD_NUMBER

publicstaticfinalintVALUE_SOURCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticEnvVargetDefaultInstance()
Returns
Type Description
EnvVar

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticEnvVar.BuildernewBuilder()
Returns
Type Description
EnvVar.Builder

newBuilder(EnvVar prototype)

publicstaticEnvVar.BuildernewBuilder(EnvVarprototype)
Parameter
Name Description
prototype EnvVar
Returns
Type Description
EnvVar.Builder

parseDelimitedFrom(InputStream input)

publicstaticEnvVarparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
EnvVar
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEnvVarparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVar
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticEnvVarparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
EnvVar
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticEnvVarparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVar
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticEnvVarparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
EnvVar
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticEnvVarparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVar
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticEnvVarparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EnvVar
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEnvVarparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVar
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticEnvVarparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
EnvVar
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticEnvVarparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVar
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticEnvVarparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EnvVar
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticEnvVarparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVar
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<EnvVar>parser()
Returns
Type Description
Parser<EnvVar>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicEnvVargetDefaultInstanceForType()
Returns
Type Description
EnvVar

getName()

publicStringgetName()

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()

publicByteStringgetNameBytes()

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
ByteString

The bytes for name.

getParserForType()

publicParser<EnvVar>getParserForType()
Returns
Type Description
Parser<EnvVar>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getValue()

publicStringgetValue()

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()

publicByteStringgetValueBytes()

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
ByteString

The bytes for value.

getValueSource()

publicEnvVarSourcegetValueSource()

Source for the environment variable's value.

.google.cloud.run.v2.EnvVarSource value_source = 3;

Returns
Type Description
EnvVarSource

The valueSource.

getValueSourceOrBuilder()

publicEnvVarSourceOrBuildergetValueSourceOrBuilder()

Source for the environment variable's value.

.google.cloud.run.v2.EnvVarSource value_source = 3;

Returns
Type Description
EnvVarSourceOrBuilder

getValuesCase()

publicEnvVar.ValuesCasegetValuesCase()
Returns
Type Description
EnvVar.ValuesCase

hasValue()

publicbooleanhasValue()

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()

publicbooleanhasValueSource()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicEnvVar.BuildernewBuilderForType()
Returns
Type Description
EnvVar.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedEnvVar.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EnvVar.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicEnvVar.BuildertoBuilder()
Returns
Type Description
EnvVar.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.