- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.4
- 2.4.3
- 2.3.6
public static final class SecretVolume.Builder extends GeneratedMessageV3.Builder<SecretVolume.Builder> implements SecretVolumeOrBuilder
Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.
Protobuf type google.cloud.functions.v2.SecretVolume
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecretVolume.BuilderImplements
SecretVolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllVersions(Iterable<? extends SecretVolume.SecretVersion> values)
public SecretVolume.Builder addAllVersions(Iterable<? extends SecretVolume.SecretVersion> values)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
values | Iterable<? extends com.google.cloud.functions.v2.SecretVolume.SecretVersion> |
Type | Description |
SecretVolume.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretVolume.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SecretVolume.Builder |
addVersions(SecretVolume.SecretVersion value)
public SecretVolume.Builder addVersions(SecretVolume.SecretVersion value)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
value | SecretVolume.SecretVersion |
Type | Description |
SecretVolume.Builder |
addVersions(SecretVolume.SecretVersion.Builder builderForValue)
public SecretVolume.Builder addVersions(SecretVolume.SecretVersion.Builder builderForValue)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
builderForValue | SecretVolume.SecretVersion.Builder |
Type | Description |
SecretVolume.Builder |
addVersions(int index, SecretVolume.SecretVersion value)
public SecretVolume.Builder addVersions(int index, SecretVolume.SecretVersion value)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
value | SecretVolume.SecretVersion |
Type | Description |
SecretVolume.Builder |
addVersions(int index, SecretVolume.SecretVersion.Builder builderForValue)
public SecretVolume.Builder addVersions(int index, SecretVolume.SecretVersion.Builder builderForValue)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
builderForValue | SecretVolume.SecretVersion.Builder |
Type | Description |
SecretVolume.Builder |
addVersionsBuilder()
public SecretVolume.SecretVersion.Builder addVersionsBuilder()
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Type | Description |
SecretVolume.SecretVersion.Builder |
addVersionsBuilder(int index)
public SecretVolume.SecretVersion.Builder addVersionsBuilder(int index)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
Type | Description |
SecretVolume.SecretVersion.Builder |
build()
public SecretVolume build()
Type | Description |
SecretVolume |
buildPartial()
public SecretVolume buildPartial()
Type | Description |
SecretVolume |
clear()
public SecretVolume.Builder clear()
Type | Description |
SecretVolume.Builder |
clearField(Descriptors.FieldDescriptor field)
public SecretVolume.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SecretVolume.Builder |
clearMountPath()
public SecretVolume.Builder clearMountPath()
The path within the container to mount the secret volume. For example,
setting the mount_path as /etc/secrets
would mount the secret value files
under the /etc/secrets
directory. This directory will also be completely
shadowed and unavailable to mount any other secrets.
Recommended mount path: /etc/secrets
string mount_path = 1;
Type | Description |
SecretVolume.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretVolume.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SecretVolume.Builder |
clearProjectId()
public SecretVolume.Builder clearProjectId()
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;
Type | Description |
SecretVolume.Builder | This builder for chaining. |
clearSecret()
public SecretVolume.Builder clearSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Type | Description |
SecretVolume.Builder | This builder for chaining. |
clearVersions()
public SecretVolume.Builder clearVersions()
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Type | Description |
SecretVolume.Builder |
clone()
public SecretVolume.Builder clone()
Type | Description |
SecretVolume.Builder |
getDefaultInstanceForType()
public SecretVolume getDefaultInstanceForType()
Type | Description |
SecretVolume |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMountPath()
public String getMountPath()
The path within the container to mount the secret volume. For example,
setting the mount_path as /etc/secrets
would mount the secret value files
under the /etc/secrets
directory. This directory will also be completely
shadowed and unavailable to mount any other secrets.
Recommended mount path: /etc/secrets
string mount_path = 1;
Type | Description |
String | The mountPath. |
getMountPathBytes()
public ByteString getMountPathBytes()
The path within the container to mount the secret volume. For example,
setting the mount_path as /etc/secrets
would mount the secret value files
under the /etc/secrets
directory. This directory will also be completely
shadowed and unavailable to mount any other secrets.
Recommended mount path: /etc/secrets
string mount_path = 1;
Type | Description |
ByteString | The bytes for mountPath. |
getProjectId()
public String getProjectId()
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;
Type | Description |
String | The projectId. |
getProjectIdBytes()
public ByteString getProjectIdBytes()
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;
Type | Description |
ByteString | The bytes for projectId. |
getSecret()
public String getSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Type | Description |
String | The secret. |
getSecretBytes()
public ByteString getSecretBytes()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Type | Description |
ByteString | The bytes for secret. |
getVersions(int index)
public SecretVolume.SecretVersion getVersions(int index)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
Type | Description |
SecretVolume.SecretVersion |
getVersionsBuilder(int index)
public SecretVolume.SecretVersion.Builder getVersionsBuilder(int index)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
Type | Description |
SecretVolume.SecretVersion.Builder |
getVersionsBuilderList()
public List<SecretVolume.SecretVersion.Builder> getVersionsBuilderList()
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Type | Description |
List<Builder> |
getVersionsCount()
public int getVersionsCount()
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Type | Description |
int |
getVersionsList()
public List<SecretVolume.SecretVersion> getVersionsList()
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Type | Description |
List<SecretVersion> |
getVersionsOrBuilder(int index)
public SecretVolume.SecretVersionOrBuilder getVersionsOrBuilder(int index)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
Type | Description |
SecretVolume.SecretVersionOrBuilder |
getVersionsOrBuilderList()
public List<? extends SecretVolume.SecretVersionOrBuilder> getVersionsOrBuilderList()
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Type | Description |
List<? extends com.google.cloud.functions.v2.SecretVolume.SecretVersionOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SecretVolume other)
public SecretVolume.Builder mergeFrom(SecretVolume other)
Name | Description |
other | SecretVolume |
Type | Description |
SecretVolume.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecretVolume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SecretVolume.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SecretVolume.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SecretVolume.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretVolume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SecretVolume.Builder |
removeVersions(int index)
public SecretVolume.Builder removeVersions(int index)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
Type | Description |
SecretVolume.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SecretVolume.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SecretVolume.Builder |
setMountPath(String value)
public SecretVolume.Builder setMountPath(String value)
The path within the container to mount the secret volume. For example,
setting the mount_path as /etc/secrets
would mount the secret value files
under the /etc/secrets
directory. This directory will also be completely
shadowed and unavailable to mount any other secrets.
Recommended mount path: /etc/secrets
string mount_path = 1;
Name | Description |
value | String The mountPath to set. |
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setMountPathBytes(ByteString value)
public SecretVolume.Builder setMountPathBytes(ByteString value)
The path within the container to mount the secret volume. For example,
setting the mount_path as /etc/secrets
would mount the secret value files
under the /etc/secrets
directory. This directory will also be completely
shadowed and unavailable to mount any other secrets.
Recommended mount path: /etc/secrets
string mount_path = 1;
Name | Description |
value | ByteString The bytes for mountPath to set. |
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setProjectId(String value)
public SecretVolume.Builder setProjectId(String value)
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;
Name | Description |
value | String The projectId to set. |
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setProjectIdBytes(ByteString value)
public SecretVolume.Builder setProjectIdBytes(ByteString value)
Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.
string project_id = 2;
Name | Description |
value | ByteString The bytes for projectId to set. |
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretVolume.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SecretVolume.Builder |
setSecret(String value)
public SecretVolume.Builder setSecret(String value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Name | Description |
value | String The secret to set. |
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setSecretBytes(ByteString value)
public SecretVolume.Builder setSecretBytes(ByteString value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Name | Description |
value | ByteString The bytes for secret to set. |
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretVolume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SecretVolume.Builder |
setVersions(int index, SecretVolume.SecretVersion value)
public SecretVolume.Builder setVersions(int index, SecretVolume.SecretVersion value)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
value | SecretVolume.SecretVersion |
Type | Description |
SecretVolume.Builder |
setVersions(int index, SecretVolume.SecretVersion.Builder builderForValue)
public SecretVolume.Builder setVersions(int index, SecretVolume.SecretVersion.Builder builderForValue)
List of secret versions to mount for this secret. If empty, the latest
version of the secret will be made available in a file named after the
secret under the mount point.
repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
Name | Description |
index | int |
builderForValue | SecretVolume.SecretVersion.Builder |
Type | Description |
SecretVolume.Builder |