Class EnvVarSource.Builder (0.45.0)

public static final class EnvVarSource.Builder extends GeneratedMessageV3.Builder<EnvVarSource.Builder> implements EnvVarSourceOrBuilder

EnvVarSource represents a source for the value of an EnvVar.

Protobuf type google.cloud.run.v2.EnvVarSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EnvVarSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EnvVarSource.Builder
Overrides

build()

public EnvVarSource build()
Returns
Type Description
EnvVarSource

buildPartial()

public EnvVarSource buildPartial()
Returns
Type Description
EnvVarSource

clear()

public EnvVarSource.Builder clear()
Returns
Type Description
EnvVarSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public EnvVarSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EnvVarSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EnvVarSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EnvVarSource.Builder
Overrides

clearSecretKeyRef()

public EnvVarSource.Builder clearSecretKeyRef()

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

public EnvVarSource.Builder clone()
Returns
Type Description
EnvVarSource.Builder
Overrides

getDefaultInstanceForType()

public EnvVarSource getDefaultInstanceForType()
Returns
Type Description
EnvVarSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSecretKeyRef()

public SecretKeySelector getSecretKeyRef()

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

public SecretKeySelector.Builder getSecretKeyRefBuilder()

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

public SecretKeySelectorOrBuilder getSecretKeyRefOrBuilder()

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

public boolean hasSecretKeyRef()

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

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EnvVarSource other)

public EnvVarSource.Builder mergeFrom(EnvVarSource other)
Parameter
Name Description
other EnvVarSource
Returns
Type Description
EnvVarSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EnvVarSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnvVarSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EnvVarSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EnvVarSource.Builder
Overrides

mergeSecretKeyRef(SecretKeySelector value)

public EnvVarSource.Builder mergeSecretKeyRef(SecretKeySelector value)

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)

public final EnvVarSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EnvVarSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public EnvVarSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EnvVarSource.Builder
Overrides

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

public EnvVarSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EnvVarSource.Builder
Overrides

setSecretKeyRef(SecretKeySelector value)

public EnvVarSource.Builder setSecretKeyRef(SecretKeySelector value)

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)

public EnvVarSource.Builder setSecretKeyRef(SecretKeySelector.Builder builderForValue)

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)

public final EnvVarSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EnvVarSource.Builder
Overrides