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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretVolume.SecretVersion.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SecretVolume.SecretVersion build()
Returns
buildPartial()
public SecretVolume.SecretVersion buildPartial()
Returns
clear()
public SecretVolume.SecretVersion.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SecretVolume.SecretVersion.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretVolume.SecretVersion.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearVersion()
public SecretVolume.SecretVersion.Builder clearVersion()
Version of the secret (version number or the string 'latest'). It is
preferrable to use latest
version with secret volumes as secret value
changes are reflected immediately.
string version = 1;
Returns
clone()
public SecretVolume.SecretVersion.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SecretVolume.SecretVersion getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
getVersion()
public String getVersion()
Version of the secret (version number or the string 'latest'). It is
preferrable 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
preferrable to use latest
version with secret volumes as secret value
changes are reflected immediately.
string version = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SecretVolume.SecretVersion other)
public SecretVolume.SecretVersion.Builder mergeFrom(SecretVolume.SecretVersion other)
Parameter
Returns
public SecretVolume.SecretVersion.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SecretVolume.SecretVersion.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretVolume.SecretVersion.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SecretVolume.SecretVersion.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretVolume.SecretVersion.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretVolume.SecretVersion.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setVersion(String value)
public SecretVolume.SecretVersion.Builder setVersion(String value)
Version of the secret (version number or the string 'latest'). It is
preferrable 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
setVersionBytes(ByteString value)
public SecretVolume.SecretVersion.Builder setVersionBytes(ByteString value)
Version of the secret (version number or the string 'latest'). It is
preferrable 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