Class SecretVolume.SecretVersion.Builder (2.22.0)

publicstaticfinalclass SecretVolume.SecretVersion.BuilderextendsGeneratedMessageV3.Builder<SecretVolume.SecretVersion.Builder>implementsSecretVolume.SecretVersionOrBuilder

Configuration for a single version.

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

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSecretVolume.SecretVersion.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

build()

publicSecretVolume.SecretVersionbuild()
Returns
Type Description
SecretVolume.SecretVersion

buildPartial()

publicSecretVolume.SecretVersionbuildPartial()
Returns
Type Description
SecretVolume.SecretVersion

clear()

publicSecretVolume.SecretVersion.Builderclear()
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicSecretVolume.SecretVersion.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicSecretVolume.SecretVersion.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

clearPath()

publicSecretVolume.SecretVersion.BuilderclearPath()

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
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

clearVersion()

publicSecretVolume.SecretVersion.BuilderclearVersion()

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

publicSecretVolume.SecretVersion.Builderclone()
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

getDefaultInstanceForType()

publicSecretVolume.SecretVersiongetDefaultInstanceForType()
Returns
Type Description
SecretVolume.SecretVersion

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPath()

publicStringgetPath()

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
Type Description
String

The path.

getPathBytes()

publicByteStringgetPathBytes()

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
Type Description
ByteString

The bytes for path.

getVersion()

publicStringgetVersion()

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

publicByteStringgetVersionBytes()

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

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SecretVolume.SecretVersion other)

publicSecretVolume.SecretVersion.BuildermergeFrom(SecretVolume.SecretVersionother)
Parameter
Name Description
other SecretVolume.SecretVersion
Returns
Type Description
SecretVolume.SecretVersion.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSecretVolume.SecretVersion.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSecretVolume.SecretVersion.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSecretVolume.SecretVersion.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicSecretVolume.SecretVersion.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

setPath(String value)

publicSecretVolume.SecretVersion.BuildersetPath(Stringvalue)

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
Name Description
value String

The path to set.

Returns
Type Description
SecretVolume.SecretVersion.Builder

This builder for chaining.

setPathBytes(ByteString value)

publicSecretVolume.SecretVersion.BuildersetPathBytes(ByteStringvalue)

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

publicSecretVolume.SecretVersion.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSecretVolume.SecretVersion.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SecretVolume.SecretVersion.Builder
Overrides

setVersion(String value)

publicSecretVolume.SecretVersion.BuildersetVersion(Stringvalue)

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)

publicSecretVolume.SecretVersion.BuildersetVersionBytes(ByteStringvalue)

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.