public final class SecretVolumeSource extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
SecretVolumeSource.Builder
The secret's value will be presented as the content of a file whose
name is defined in the item path.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MODE_FIELD_NUMBER |
static int |
ITEMS_FIELD_NUMBER |
static int |
SECRET_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SecretVolumeSource |
getDefaultInstance() |
SecretVolumeSource |
getDefaultInstanceForType() |
int |
getDefaultMode()
Integer representation of mode bits to use on created files by default.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
VersionToPath |
getItems(int index)
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.
|
com.google.protobuf.Parser<SecretVolumeSource> |
getParserForType() |
String |
getSecret()
Required.
|
com.google.protobuf.ByteString |
getSecretBytes()
Required.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SecretVolumeSource.Builder |
newBuilder() |
static SecretVolumeSource.Builder |
newBuilder(SecretVolumeSource prototype) |
SecretVolumeSource.Builder |
newBuilderForType() |
protected SecretVolumeSource.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SecretVolumeSource |
parseDelimitedFrom(InputStream input) |
static SecretVolumeSource |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecretVolumeSource |
parseFrom(byte[] data) |
static SecretVolumeSource |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecretVolumeSource |
parseFrom(ByteBuffer data) |
static SecretVolumeSource |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecretVolumeSource |
parseFrom(com.google.protobuf.ByteString data) |
static SecretVolumeSource |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecretVolumeSource |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SecretVolumeSource |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SecretVolumeSource |
parseFrom(InputStream input) |
static SecretVolumeSource |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SecretVolumeSource> |
parser() |
SecretVolumeSource.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SECRET_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
public static final int DEFAULT_MODE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SecretVolumeSource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecretVolumeSource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecretVolumeSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecretVolumeSource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecretVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecretVolumeSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SecretVolumeSource parseFrom(InputStream input) throws IOException
IOExceptionpublic static SecretVolumeSource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SecretVolumeSource parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SecretVolumeSource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SecretVolumeSource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SecretVolumeSource parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SecretVolumeSource.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SecretVolumeSource.Builder newBuilder()
public static SecretVolumeSource.Builder newBuilder(SecretVolumeSource prototype)
public SecretVolumeSource.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SecretVolumeSource.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SecretVolumeSource getDefaultInstance()
public static com.google.protobuf.Parser<SecretVolumeSource> parser()
public com.google.protobuf.Parser<SecretVolumeSource> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SecretVolumeSource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.