Class EnvVarSource.Builder (0.20.0)

publicstaticfinalclass EnvVarSource.BuilderextendsGeneratedMessageV3.Builder<EnvVarSource.Builder>implementsEnvVarSourceOrBuilder

EnvVarSource represents a source for the value of an EnvVar.

Protobuf type google.cloud.run.v2.EnvVarSource

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicEnvVarSource.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EnvVarSource.Builder
Overrides

build()

publicEnvVarSourcebuild()
Returns
Type Description
EnvVarSource

buildPartial()

publicEnvVarSourcebuildPartial()
Returns
Type Description
EnvVarSource

clear()

publicEnvVarSource.Builderclear()
Returns
Type Description
EnvVarSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicEnvVarSource.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EnvVarSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicEnvVarSource.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EnvVarSource.Builder
Overrides

clearSecretKeyRef()

publicEnvVarSource.BuilderclearSecretKeyRef()

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Returns
Type Description
EnvVarSource.Builder

clone()

publicEnvVarSource.Builderclone()
Returns
Type Description
EnvVarSource.Builder
Overrides

getDefaultInstanceForType()

publicEnvVarSourcegetDefaultInstanceForType()
Returns
Type Description
EnvVarSource

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSecretKeyRef()

publicSecretKeySelectorgetSecretKeyRef()

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Returns
Type Description
SecretKeySelector

The secretKeyRef.

getSecretKeyRefBuilder()

publicSecretKeySelector.BuildergetSecretKeyRefBuilder()

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Returns
Type Description
SecretKeySelector.Builder

getSecretKeyRefOrBuilder()

publicSecretKeySelectorOrBuildergetSecretKeyRefOrBuilder()

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Returns
Type Description
SecretKeySelectorOrBuilder

hasSecretKeyRef()

publicbooleanhasSecretKeyRef()

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Returns
Type Description
boolean

Whether the secretKeyRef field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EnvVarSource other)

publicEnvVarSource.BuildermergeFrom(EnvVarSourceother)
Parameter
Name Description
other EnvVarSource
Returns
Type Description
EnvVarSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicEnvVarSource.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVarSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicEnvVarSource.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
EnvVarSource.Builder
Overrides

mergeSecretKeyRef(SecretKeySelector value)

publicEnvVarSource.BuildermergeSecretKeyRef(SecretKeySelectorvalue)

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Parameter
Name Description
value SecretKeySelector
Returns
Type Description
EnvVarSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalEnvVarSource.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EnvVarSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicEnvVarSource.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EnvVarSource.Builder
Overrides

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

publicEnvVarSource.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EnvVarSource.Builder
Overrides

setSecretKeyRef(SecretKeySelector value)

publicEnvVarSource.BuildersetSecretKeyRef(SecretKeySelectorvalue)

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Parameter
Name Description
value SecretKeySelector
Returns
Type Description
EnvVarSource.Builder

setSecretKeyRef(SecretKeySelector.Builder builderForValue)

publicEnvVarSource.BuildersetSecretKeyRef(SecretKeySelector.BuilderbuilderForValue)

Selects a secret and a specific version from Cloud Secret Manager.

.google.cloud.run.v2.SecretKeySelector secret_key_ref = 1;

Parameter
Name Description
builderForValue SecretKeySelector.Builder
Returns
Type Description
EnvVarSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalEnvVarSource.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EnvVarSource.Builder
Overrides

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.