Class EnvVarSource.Builder (0.2.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EnvVarSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EnvVarSource.Builder
Overrides

build()

public EnvVarSource build()
Returns
TypeDescription
EnvVarSource

buildPartial()

public EnvVarSource buildPartial()
Returns
TypeDescription
EnvVarSource

clear()

public EnvVarSource.Builder clear()
Returns
TypeDescription
EnvVarSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public EnvVarSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EnvVarSource.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EnvVarSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
EnvVarSource.Builder

clone()

public EnvVarSource.Builder clone()
Returns
TypeDescription
EnvVarSource.Builder
Overrides

getDefaultInstanceForType()

public EnvVarSource getDefaultInstanceForType()
Returns
TypeDescription
EnvVarSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the secretKeyRef field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EnvVarSource other)

public EnvVarSource.Builder mergeFrom(EnvVarSource other)
Parameter
NameDescription
otherEnvVarSource
Returns
TypeDescription
EnvVarSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EnvVarSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EnvVarSource.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EnvVarSource.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSecretKeySelector
Returns
TypeDescription
EnvVarSource.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EnvVarSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EnvVarSource.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public EnvVarSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EnvVarSource.Builder
Overrides

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

public EnvVarSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSecretKeySelector
Returns
TypeDescription
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
NameDescription
builderForValueSecretKeySelector.Builder
Returns
TypeDescription
EnvVarSource.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final EnvVarSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EnvVarSource.Builder
Overrides