Class SecretVolume.SecretVersion.Builder (2.20.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.v1.SecretVolume.SecretVersion

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

build()

public SecretVolume.SecretVersion build()
Returns
TypeDescription
SecretVolume.SecretVersion

buildPartial()

public SecretVolume.SecretVersion buildPartial()
Returns
TypeDescription
SecretVolume.SecretVersion

clear()

public SecretVolume.SecretVersion.Builder clear()
Returns
TypeDescription
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 is fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as /secret_foo mounts the secret value file at /etc/secrets/secret_foo.

string path = 2;

Returns
TypeDescription
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
TypeDescription
SecretVolume.SecretVersion.Builder

This builder for chaining.

getDefaultInstanceForType()

public SecretVolume.SecretVersion getDefaultInstanceForType()
Returns
TypeDescription
SecretVolume.SecretVersion

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPath()

public String getPath()

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

string path = 2;

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

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

string path = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SecretVolume.SecretVersion other)

public SecretVolume.SecretVersion.Builder mergeFrom(SecretVolume.SecretVersion other)
Parameter
NameDescription
otherSecretVolume.SecretVersion
Returns
TypeDescription
SecretVolume.SecretVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SecretVolume.SecretVersion.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SecretVolume.SecretVersion.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SecretVolume.SecretVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 is fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as /secret_foo mounts the secret value file at /etc/secrets/secret_foo.

string path = 2;

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
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 is fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as /secret_foo mounts the secret value file at /etc/secrets/secret_foo.

string path = 2;

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
SecretVolume.SecretVersion.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SecretVolume.SecretVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The version to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
SecretVolume.SecretVersion.Builder

This builder for chaining.