public static final class SecretVolumeSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder> implements SecretVolumeSourceOrBuilder
The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret.Protobuf type
google.cloud.run.v2.SecretVolumeSource| Modifier and Type | Method and Description |
|---|---|
SecretVolumeSource.Builder |
addAllItems(Iterable<? extends VersionToPath> values)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
addItems(int index,
VersionToPath.Builder builderForValue)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
addItems(int index,
VersionToPath value)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
addItems(VersionToPath.Builder builderForValue)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
addItems(VersionToPath value)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
VersionToPath.Builder |
addItemsBuilder()
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
VersionToPath.Builder |
addItemsBuilder(int index)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecretVolumeSource |
build() |
SecretVolumeSource |
buildPartial() |
SecretVolumeSource.Builder |
clear() |
SecretVolumeSource.Builder |
clearDefaultMode()
Integer representation of mode bits to use on created files by default.
|
SecretVolumeSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SecretVolumeSource.Builder |
clearItems()
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SecretVolumeSource.Builder |
clearSecret()
Required.
|
SecretVolumeSource.Builder |
clone() |
SecretVolumeSource |
getDefaultInstanceForType() |
int |
getDefaultMode()
Integer representation of mode bits to use on created files by default.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
VersionToPath |
getItems(int index)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
VersionToPath.Builder |
getItemsBuilder(int index)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
List<VersionToPath.Builder> |
getItemsBuilderList()
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
int |
getItemsCount()
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
List<VersionToPath> |
getItemsList()
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
VersionToPathOrBuilder |
getItemsOrBuilder(int index)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
List<? extends VersionToPathOrBuilder> |
getItemsOrBuilderList()
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
String |
getSecret()
Required.
|
com.google.protobuf.ByteString |
getSecretBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SecretVolumeSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SecretVolumeSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
SecretVolumeSource.Builder |
mergeFrom(SecretVolumeSource other) |
SecretVolumeSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SecretVolumeSource.Builder |
removeItems(int index)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
setDefaultMode(int value)
Integer representation of mode bits to use on created files by default.
|
SecretVolumeSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SecretVolumeSource.Builder |
setItems(int index,
VersionToPath.Builder builderForValue)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
setItems(int index,
VersionToPath value)
If unspecified, the volume will expose a file whose name is the
secret, relative to VolumeMount.mount_path.
|
SecretVolumeSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SecretVolumeSource.Builder |
setSecret(String value)
Required.
|
SecretVolumeSource.Builder |
setSecretBytes(com.google.protobuf.ByteString value)
Required.
|
SecretVolumeSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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<SecretVolumeSource.Builder>public SecretVolumeSource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.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<SecretVolumeSource.Builder>public SecretVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SecretVolumeSource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SecretVolumeSource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SecretVolumeSource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.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<SecretVolumeSource.Builder>public SecretVolumeSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.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<SecretVolumeSource.Builder>public SecretVolumeSource.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<SecretVolumeSource.Builder>public SecretVolumeSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.Builder mergeFrom(SecretVolumeSource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public SecretVolumeSource.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<SecretVolumeSource.Builder>IOExceptionpublic String getSecret()
Required. The name of the secret in Cloud Secret Manager.
Format: {secret} if the secret is in the same project.
projects/{project}/secrets/{secret} if the secret is
in a different project.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];getSecret in interface SecretVolumeSourceOrBuilderpublic com.google.protobuf.ByteString getSecretBytes()
Required. The name of the secret in Cloud Secret Manager.
Format: {secret} if the secret is in the same project.
projects/{project}/secrets/{secret} if the secret is
in a different project.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];getSecretBytes in interface SecretVolumeSourceOrBuilderpublic SecretVolumeSource.Builder setSecret(String value)
Required. The name of the secret in Cloud Secret Manager.
Format: {secret} if the secret is in the same project.
projects/{project}/secrets/{secret} if the secret is
in a different project.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];value - The secret to set.public SecretVolumeSource.Builder clearSecret()
Required. The name of the secret in Cloud Secret Manager.
Format: {secret} if the secret is in the same project.
projects/{project}/secrets/{secret} if the secret is
in a different project.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];public SecretVolumeSource.Builder setSecretBytes(com.google.protobuf.ByteString value)
Required. The name of the secret in Cloud Secret Manager.
Format: {secret} if the secret is in the same project.
projects/{project}/secrets/{secret} if the secret is
in a different project.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for secret to set.public List<VersionToPath> getItemsList()
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;getItemsList in interface SecretVolumeSourceOrBuilderpublic int getItemsCount()
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;getItemsCount in interface SecretVolumeSourceOrBuilderpublic VersionToPath getItems(int index)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;getItems in interface SecretVolumeSourceOrBuilderpublic SecretVolumeSource.Builder setItems(int index, VersionToPath value)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder setItems(int index, VersionToPath.Builder builderForValue)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder addItems(VersionToPath value)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder addItems(int index, VersionToPath value)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder addItems(VersionToPath.Builder builderForValue)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder addItems(int index, VersionToPath.Builder builderForValue)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder addAllItems(Iterable<? extends VersionToPath> values)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder clearItems()
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public SecretVolumeSource.Builder removeItems(int index)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public VersionToPath.Builder getItemsBuilder(int index)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public VersionToPathOrBuilder getItemsOrBuilder(int index)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;getItemsOrBuilder in interface SecretVolumeSourceOrBuilderpublic List<? extends VersionToPathOrBuilder> getItemsOrBuilderList()
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;getItemsOrBuilderList in interface SecretVolumeSourceOrBuilderpublic VersionToPath.Builder addItemsBuilder()
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public VersionToPath.Builder addItemsBuilder(int index)
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public List<VersionToPath.Builder> getItemsBuilderList()
If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.
repeated .google.cloud.run.v2.VersionToPath items = 2;public int getDefaultMode()
Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.
int32 default_mode = 3;getDefaultMode in interface SecretVolumeSourceOrBuilderpublic SecretVolumeSource.Builder setDefaultMode(int value)
Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.
int32 default_mode = 3;value - The defaultMode to set.public SecretVolumeSource.Builder clearDefaultMode()
Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0444. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.
int32 default_mode = 3;public final SecretVolumeSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>public final SecretVolumeSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SecretVolumeSource.Builder>Copyright © 2025 Google LLC. All rights reserved.