Class SecretVolume.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
- com.google.cloud.functions.v2beta.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.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 typegoogle.cloud.functions.v2beta.SecretVolume
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretVolume.BuilderaddAllVersions(Iterable<? extends SecretVolume.SecretVersion> values)List of secret versions to mount for this secret.SecretVolume.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecretVolume.BuilderaddVersions(int index, SecretVolume.SecretVersion value)List of secret versions to mount for this secret.SecretVolume.BuilderaddVersions(int index, SecretVolume.SecretVersion.Builder builderForValue)List of secret versions to mount for this secret.SecretVolume.BuilderaddVersions(SecretVolume.SecretVersion value)List of secret versions to mount for this secret.SecretVolume.BuilderaddVersions(SecretVolume.SecretVersion.Builder builderForValue)List of secret versions to mount for this secret.SecretVolume.SecretVersion.BuilderaddVersionsBuilder()List of secret versions to mount for this secret.SecretVolume.SecretVersion.BuilderaddVersionsBuilder(int index)List of secret versions to mount for this secret.SecretVolumebuild()SecretVolumebuildPartial()SecretVolume.Builderclear()SecretVolume.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SecretVolume.BuilderclearMountPath()The path within the container to mount the secret volume.SecretVolume.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SecretVolume.BuilderclearProjectId()Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.SecretVolume.BuilderclearSecret()Name of the secret in secret manager (not the full resource name).SecretVolume.BuilderclearVersions()List of secret versions to mount for this secret.SecretVolume.Builderclone()SecretVolumegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMountPath()The path within the container to mount the secret volume.com.google.protobuf.ByteStringgetMountPathBytes()The path within the container to mount the secret volume.StringgetProjectId()Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.com.google.protobuf.ByteStringgetProjectIdBytes()Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.StringgetSecret()Name of the secret in secret manager (not the full resource name).com.google.protobuf.ByteStringgetSecretBytes()Name of the secret in secret manager (not the full resource name).SecretVolume.SecretVersiongetVersions(int index)List of secret versions to mount for this secret.SecretVolume.SecretVersion.BuildergetVersionsBuilder(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.intgetVersionsCount()List of secret versions to mount for this secret.List<SecretVolume.SecretVersion>getVersionsList()List of secret versions to mount for this secret.SecretVolume.SecretVersionOrBuildergetVersionsOrBuilder(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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SecretVolume.BuildermergeFrom(SecretVolume other)SecretVolume.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SecretVolume.BuildermergeFrom(com.google.protobuf.Message other)SecretVolume.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SecretVolume.BuilderremoveVersions(int index)List of secret versions to mount for this secret.SecretVolume.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SecretVolume.BuildersetMountPath(String value)The path within the container to mount the secret volume.SecretVolume.BuildersetMountPathBytes(com.google.protobuf.ByteString value)The path within the container to mount the secret volume.SecretVolume.BuildersetProjectId(String value)Project identifier (preferably project number but can also be the project ID) of the project that contains the secret.SecretVolume.BuildersetProjectIdBytes(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SecretVolume.BuildersetSecret(String value)Name of the secret in secret manager (not the full resource name).SecretVolume.BuildersetSecretBytes(com.google.protobuf.ByteString value)Name of the secret in secret manager (not the full resource name).SecretVolume.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SecretVolume.BuildersetVersions(int index, SecretVolume.SecretVersion value)List of secret versions to mount for this secret.SecretVolume.BuildersetVersions(int index, SecretVolume.SecretVersion.Builder builderForValue)List of secret versions to mount for this secret.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
clear
public SecretVolume.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
getDefaultInstanceForType
public SecretVolume getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SecretVolume build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SecretVolume buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SecretVolume.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
setField
public SecretVolume.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
clearField
public SecretVolume.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
clearOneof
public SecretVolume.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
setRepeatedField
public SecretVolume.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
addRepeatedField
public SecretVolume.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
mergeFrom
public SecretVolume.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SecretVolume.Builder>
-
mergeFrom
public SecretVolume.Builder mergeFrom(SecretVolume other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- 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 path: /etc/secrets
string mount_path = 1;- Specified by:
getMountPathBytesin interfaceSecretVolumeOrBuilder- Returns:
- The bytes for mountPath.
-
setMountPath
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;- Parameters:
value- The mountPath to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setMountPathBytes
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;- Parameters:
value- The bytes for mountPath to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getProjectIdin interfaceSecretVolumeOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public 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;- Specified by:
getProjectIdBytesin interfaceSecretVolumeOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
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;- Parameters:
value- The projectId to set.- Returns:
- 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:
- This builder for chaining.
-
setProjectIdBytes
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;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getSecret
public String 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
public SecretVolume.Builder setSecret(String value)
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
public SecretVolume.Builder clearSecret()
Name of the secret in secret manager (not the full resource name).
string secret = 3;- Returns:
- This builder for chaining.
-
setSecretBytes
public SecretVolume.Builder setSecretBytes(com.google.protobuf.ByteString value)
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
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;- 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.v2beta.SecretVolume.SecretVersion versions = 4;- Specified by:
getVersionsCountin interfaceSecretVolumeOrBuilder
-
getVersions
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;- Specified by:
getVersionsin interfaceSecretVolumeOrBuilder
-
setVersions
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;
-
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.v2beta.SecretVolume.SecretVersion versions = 4;
-
addVersions
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;
-
addVersions
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;
-
addVersions
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;
-
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.v2beta.SecretVolume.SecretVersion versions = 4;
-
addAllVersions
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;
-
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;
-
removeVersions
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;
-
getVersionsBuilder
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;
-
getVersionsOrBuilder
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;- Specified by:
getVersionsOrBuilderin interfaceSecretVolumeOrBuilder
-
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;- Specified by:
getVersionsOrBuilderListin interfaceSecretVolumeOrBuilder
-
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;
-
addVersionsBuilder
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;
-
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;
-
setUnknownFields
public final SecretVolume.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
mergeUnknownFields
public final SecretVolume.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SecretVolume.Builder>
-
-