Class SecretVolume.SecretVersion.Builder (2.48.0)

public static final class SecretVolume.SecretVersion.Builder extends GeneratedMessageV3.Builder<SecretVolume.SecretVersion.Builder> implements SecretVolume.SecretVersionOrBuilder

Configuration for a single version.

Protobuf type google.cloud.functions.v2alpha.SecretVolume.SecretVersion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SecretVolume.SecretVersion build()
Returns
Type Description
SecretVolume.SecretVersion

buildPartial()

public SecretVolume.SecretVersion buildPartial()
Returns
Type Description
SecretVolume.SecretVersion

clear()

public SecretVolume.SecretVersion.Builder clear()
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public SecretVolume.SecretVersion.Builder clearPath()

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

clearVersion()

public SecretVolume.SecretVersion.Builder clearVersion()

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

clone()

public SecretVolume.SecretVersion.Builder clone()
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

getDefaultInstanceForType()

public SecretVolume.SecretVersion getDefaultInstanceForType()
Returns
Type Description
SecretVolume.SecretVersion

getDescriptorForType()

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

getPath()

public String getPath()

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Returns
Type Description
ByteString

The bytes for path.

getVersion()

public String getVersion()

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecretVolume.SecretVersion other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPath(String value)

public SecretVolume.SecretVersion.Builder setPath(String value)

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

setPathBytes(ByteString value)

public SecretVolume.SecretVersion.Builder setPathBytes(ByteString value)

Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as secret_foo would mount the secret value file at /etc/secrets/secret_foo.

string path = 2;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public SecretVolume.SecretVersion.Builder setVersion(String value)

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public SecretVolume.SecretVersion.Builder setVersionBytes(ByteString value)

Version of the secret (version number or the string 'latest'). It is preferable to use latest version with secret volumes as secret value changes are reflected immediately.

string version = 1;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.