public static final class SecretVolume.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
SecretVolume.Builder |
addAllVersions(Iterable<? extends SecretVolume.SecretVersion> values)
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecretVolume.Builder |
addVersions(int index,
SecretVolume.SecretVersion.Builder builderForValue)
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
addVersions(int index,
SecretVolume.SecretVersion value)
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
addVersions(SecretVolume.SecretVersion.Builder builderForValue)
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
addVersions(SecretVolume.SecretVersion value)
List of secret versions to mount for this secret.
|
SecretVolume.SecretVersion.Builder |
addVersionsBuilder()
List of secret versions to mount for this secret.
|
SecretVolume.SecretVersion.Builder |
addVersionsBuilder(int index)
List of secret versions to mount for this secret.
|
SecretVolume |
build() |
SecretVolume |
buildPartial() |
SecretVolume.Builder |
clear() |
SecretVolume.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SecretVolume.Builder |
clearMountPath()
The path within the container to mount the secret volume.
|
SecretVolume.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SecretVolume.Builder |
clearProjectId()
Project identifier (preferably project number but can also be the project
ID) of the project that contains the secret.
|
SecretVolume.Builder |
clearSecret()
Name of the secret in secret manager (not the full resource name).
|
SecretVolume.Builder |
clearVersions()
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
clone() |
SecretVolume |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMountPath()
The path within the container to mount the secret volume.
|
com.google.protobuf.ByteString |
getMountPathBytes()
The path within the container to mount the secret volume.
|
String |
getProjectId()
Project identifier (preferably project number but can also be the project
ID) of the project that contains the secret.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Project identifier (preferably project number but can also be the project
ID) of the project that contains the secret.
|
String |
getSecret()
Name of the secret in secret manager (not the full resource name).
|
com.google.protobuf.ByteString |
getSecretBytes()
Name of the secret in secret manager (not the full resource name).
|
SecretVolume.SecretVersion |
getVersions(int index)
List of secret versions to mount for this secret.
|
SecretVolume.SecretVersion.Builder |
getVersionsBuilder(int index)
List of secret versions to mount for this secret.
|
List<SecretVolume.SecretVersion.Builder> |
getVersionsBuilderList()
List of secret versions to mount for this secret.
|
int |
getVersionsCount()
List of secret versions to mount for this secret.
|
List<SecretVolume.SecretVersion> |
getVersionsList()
List of secret versions to mount for this secret.
|
SecretVolume.SecretVersionOrBuilder |
getVersionsOrBuilder(int index)
List of secret versions to mount for this secret.
|
List<? extends SecretVolume.SecretVersionOrBuilder> |
getVersionsOrBuilderList()
List of secret versions to mount for this secret.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecretVolume.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecretVolume.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecretVolume.Builder |
mergeFrom(SecretVolume other) |
SecretVolume.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecretVolume.Builder |
removeVersions(int index)
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecretVolume.Builder |
setMountPath(String value)
The path within the container to mount the secret volume.
|
SecretVolume.Builder |
setMountPathBytes(com.google.protobuf.ByteString value)
The path within the container to mount the secret volume.
|
SecretVolume.Builder |
setProjectId(String value)
Project identifier (preferably project number but can also be the project
ID) of the project that contains the secret.
|
SecretVolume.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
Project identifier (preferably project number but can also be the project
ID) of the project that contains the secret.
|
SecretVolume.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SecretVolume.Builder |
setSecret(String value)
Name of the secret in secret manager (not the full resource name).
|
SecretVolume.Builder |
setSecretBytes(com.google.protobuf.ByteString value)
Name of the secret in secret manager (not the full resource name).
|
SecretVolume.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecretVolume.Builder |
setVersions(int index,
SecretVolume.SecretVersion.Builder builderForValue)
List of secret versions to mount for this secret.
|
SecretVolume.Builder |
setVersions(int index,
SecretVolume.SecretVersion value)
List of secret versions to mount for this secret.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecretVolume build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecretVolume buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecretVolume.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretVolume.Builder>public SecretVolume.Builder mergeFrom(SecretVolume other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public SecretVolume.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretVolume.Builder>IOExceptionpublic 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;getMountPath in interface SecretVolumeOrBuilderpublic 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 path: /etc/secrets
string mount_path = 1;getMountPathBytes in interface SecretVolumeOrBuilderpublic 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;value - The mountPath to set.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;public SecretVolume.Builder setMountPathBytes(com.google.protobuf.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;value - The bytes for mountPath to set.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;getProjectId in interface SecretVolumeOrBuilderpublic com.google.protobuf.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;getProjectIdBytes in interface SecretVolumeOrBuilderpublic 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;value - The projectId to set.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;public SecretVolume.Builder setProjectIdBytes(com.google.protobuf.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;value - The bytes for projectId to set.public String getSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;getSecret in interface SecretVolumeOrBuilderpublic com.google.protobuf.ByteString getSecretBytes()
Name of the secret in secret manager (not the full resource name).
string secret = 3;getSecretBytes in interface SecretVolumeOrBuilderpublic SecretVolume.Builder setSecret(String value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;value - The secret to set.public SecretVolume.Builder clearSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;public SecretVolume.Builder setSecretBytes(com.google.protobuf.ByteString value)
Name of the secret in secret manager (not the full resource name).
string secret = 3;value - The bytes for secret to set.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;getVersionsList in interface SecretVolumeOrBuilderpublic 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;getVersionsCount in interface SecretVolumeOrBuilderpublic 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;getVersions in interface SecretVolumeOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getVersionsOrBuilder in interface SecretVolumeOrBuilderpublic 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;getVersionsOrBuilderList in interface SecretVolumeOrBuilderpublic 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;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;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;public final SecretVolume.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>public final SecretVolume.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>Copyright © 2023 Google LLC. All rights reserved.