- 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.v2beta.SecretVolume
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SecretVolume.BuilderImplements
SecretVolumeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.functions.v2beta.SecretVolume.SecretVersion> |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
value | SecretVolume.SecretVersion |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
builderForValue | SecretVolume.SecretVersion.Builder |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameters | |
---|---|
Name | Description |
index | int |
value | SecretVolume.SecretVersion |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | SecretVolume.SecretVersion.Builder |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
SecretVolume.SecretVersion.Builder |
build()
public SecretVolume build()
Returns | |
---|---|
Type | Description |
SecretVolume |
buildPartial()
public SecretVolume buildPartial()
Returns | |
---|---|
Type | Description |
SecretVolume |
clear()
public SecretVolume.Builder clear()
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
SecretVolume.Builder | This builder for chaining. |
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Returns | |
---|---|
Type | Description |
SecretVolume.Builder |
getDefaultInstanceForType()
public SecretVolume getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SecretVolume |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
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;
Returns | |
---|---|
Type | Description |
String | The secret. |
getSecretBytes()
public ByteString getSecretBytes()
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.functions.v2beta.SecretVolume.SecretVersionOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SecretVolume other)
public SecretVolume.Builder mergeFrom(SecretVolume other)
Parameter | |
---|---|
Name | Description |
other | SecretVolume |
Returns | |
---|---|
Type | Description |
SecretVolume.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SecretVolume.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SecretVolume.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SecretVolume.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
SecretVolume.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretVolume.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | String The mountPath to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for mountPath to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | String The projectId to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setSecret(String value)
public SecretVolume.Builder setSecret(String value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;
Parameter | |
---|---|
Name | Description |
value | String The secret to set. |
Returns | |
---|---|
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for secret to set. |
Returns | |
---|---|
Type | Description |
SecretVolume.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretVolume.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameters | |
---|---|
Name | Description |
index | int |
value | SecretVolume.SecretVersion |
Returns | |
---|---|
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.v2beta.SecretVolume.SecretVersion versions = 4;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | SecretVolume.SecretVersion.Builder |
Returns | |
---|---|
Type | Description |
SecretVolume.Builder |