Class SecretVolume.SecretVersion.Builder (2.26.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.v2.SecretVolume.SecretVersion

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SecretVolume.SecretVersion.Builder clone()
Returns
TypeDescription
SecretVolume.SecretVersion.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public SecretVolume.SecretVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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 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
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 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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SecretVolume.SecretVersion.Builder
Overrides

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.