Package com.google.cloud.functions.v1
Class SecretVolume.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SecretVolume.Builder>
com.google.cloud.functions.v1.SecretVolume.Builder
- All Implemented Interfaces:
SecretVolumeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SecretVolume
public static final class SecretVolume.Builder
extends com.google.protobuf.GeneratedMessage.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. Secret value is not a part of the configuration. Every filesystem read operation performs a lookup in secret manager to retrieve the secret value.Protobuf type
google.cloud.functions.v1.SecretVolume-
Method Summary
Modifier and TypeMethodDescriptionaddAllVersions(Iterable<? extends SecretVolume.SecretVersion> values) List of secret versions to mount for this secret.addVersions(int index, SecretVolume.SecretVersion value) List of secret versions to mount for this secret.addVersions(int index, SecretVolume.SecretVersion.Builder builderForValue) List of secret versions to mount for this secret.List of secret versions to mount for this secret.addVersions(SecretVolume.SecretVersion.Builder builderForValue) List of secret versions to mount for this secret.List of secret versions to mount for this secret.addVersionsBuilder(int index) List of secret versions to mount for this secret.build()clear()The path within the container to mount the secret volume.Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret.Name of the secret in secret manager (not the full resource name).List of secret versions to mount for this secret.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe path within the container to mount the secret volume.com.google.protobuf.ByteStringThe path within the container to mount the secret volume.Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret.com.google.protobuf.ByteStringProject identifier (preferrably project number but can also be the project ID) of the project that contains the secret.Name of the secret in secret manager (not the full resource name).com.google.protobuf.ByteStringName of the secret in secret manager (not the full resource name).getVersions(int index) List of secret versions to mount for this secret.getVersionsBuilder(int index) List of secret versions to mount for this secret.List of secret versions to mount for this secret.intList of secret versions to mount for this secret.List of secret versions to mount for this secret.getVersionsOrBuilder(int index) List of secret versions to mount for this secret.List<? extends SecretVolume.SecretVersionOrBuilder>List of secret versions to mount for this secret.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SecretVolume other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeVersions(int index) List of secret versions to mount for this secret.setMountPath(String value) The path within the container to mount the secret volume.setMountPathBytes(com.google.protobuf.ByteString value) The path within the container to mount the secret volume.setProjectId(String value) Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret.setProjectIdBytes(com.google.protobuf.ByteString value) Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret.Name of the secret in secret manager (not the full resource name).setSecretBytes(com.google.protobuf.ByteString value) Name of the secret in secret manager (not the full resource name).setVersions(int index, SecretVolume.SecretVersion value) List of secret versions to mount for this secret.setVersions(int index, SecretVolume.SecretVersion.Builder builderForValue) List of secret versions to mount for this secret.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SecretVolume.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SecretVolume.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SecretVolume.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecretVolume.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SecretVolume.Builder>
-
mergeFrom
public SecretVolume.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecretVolume.Builder>- Throws:
IOException
-
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 paths: /etc/secrets Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
string mount_path = 1;- Specified by:
getMountPathin interfaceSecretVolumeOrBuilder- Returns:
- The mountPath.
-
getMountPathBytes
public com.google.protobuf.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 paths: /etc/secrets Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
string mount_path = 1;- Specified by:
getMountPathBytesin interfaceSecretVolumeOrBuilder- Returns:
- The bytes for mountPath.
-
setMountPath
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 paths: /etc/secrets Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
string mount_path = 1;- Parameters:
value- The mountPath to set.- Returns:
- This builder for chaining.
-
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 paths: /etc/secrets Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
string mount_path = 1;- Returns:
- This builder for chaining.
-
setMountPathBytes
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 paths: /etc/secrets Restricted mount paths: /cloudsql, /dev/log, /pod, /proc, /var/log
string mount_path = 1;- Parameters:
value- The bytes for mountPath to set.- Returns:
- This builder for chaining.
-
getProjectId
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;- Specified by:
getProjectIdin interfaceSecretVolumeOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceSecretVolumeOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;- Returns:
- This builder for chaining.
-
setProjectIdBytes
Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function.
string project_id = 2;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getSecret
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Specified by:
getSecretin interfaceSecretVolumeOrBuilder- Returns:
- The secret.
-
getSecretBytes
public com.google.protobuf.ByteString getSecretBytes()Name of the secret in secret manager (not the full resource name).
string secret = 3;- Specified by:
getSecretBytesin interfaceSecretVolumeOrBuilder- Returns:
- The bytes for secret.
-
setSecret
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Parameters:
value- The secret to set.- Returns:
- This builder for chaining.
-
clearSecret
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Returns:
- This builder for chaining.
-
setSecretBytes
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Parameters:
value- The bytes for secret to set.- Returns:
- This builder for chaining.
-
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.v1.SecretVolume.SecretVersion versions = 4;- Specified by:
getVersionsListin interfaceSecretVolumeOrBuilder
-
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.v1.SecretVolume.SecretVersion versions = 4;- Specified by:
getVersionsCountin interfaceSecretVolumeOrBuilder
-
getVersions
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.v1.SecretVolume.SecretVersion versions = 4;- Specified by:
getVersionsin interfaceSecretVolumeOrBuilder
-
setVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
setVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
addVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
addVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
addVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
addVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
addAllVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
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.v1.SecretVolume.SecretVersion versions = 4; -
removeVersions
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.v1.SecretVolume.SecretVersion versions = 4; -
getVersionsBuilder
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.v1.SecretVolume.SecretVersion versions = 4; -
getVersionsOrBuilder
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.v1.SecretVolume.SecretVersion versions = 4;- Specified by:
getVersionsOrBuilderin interfaceSecretVolumeOrBuilder
-
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.v1.SecretVolume.SecretVersion versions = 4;- Specified by:
getVersionsOrBuilderListin interfaceSecretVolumeOrBuilder
-
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.v1.SecretVolume.SecretVersion versions = 4; -
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.v1.SecretVolume.SecretVersion versions = 4; -
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.v1.SecretVolume.SecretVersion versions = 4;
-