Class VersionToPath (0.23.0)

publicfinalclass VersionToPathextendsGeneratedMessageV3implementsVersionToPathOrBuilder

VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.

Protobuf type google.cloud.run.v2.VersionToPath

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)

Static Fields

MODE_FIELD_NUMBER

publicstaticfinalintMODE_FIELD_NUMBER
Field Value
Type Description
int

PATH_FIELD_NUMBER

publicstaticfinalintPATH_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

publicstaticfinalintVERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticVersionToPathgetDefaultInstance()
Returns
Type Description
VersionToPath

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticVersionToPath.BuildernewBuilder()
Returns
Type Description
VersionToPath.Builder

newBuilder(VersionToPath prototype)

publicstaticVersionToPath.BuildernewBuilder(VersionToPathprototype)
Parameter
Name Description
prototype VersionToPath
Returns
Type Description
VersionToPath.Builder

parseDelimitedFrom(InputStream input)

publicstaticVersionToPathparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VersionToPath
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVersionToPathparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionToPath
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticVersionToPathparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
VersionToPath
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticVersionToPathparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionToPath
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticVersionToPathparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
VersionToPath
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticVersionToPathparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionToPath
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticVersionToPathparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VersionToPath
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVersionToPathparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionToPath
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticVersionToPathparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
VersionToPath
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticVersionToPathparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionToPath
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticVersionToPathparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VersionToPath
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticVersionToPathparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VersionToPath
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<VersionToPath>parser()
Returns
Type Description
Parser<VersionToPath>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicVersionToPathgetDefaultInstanceForType()
Returns
Type Description
VersionToPath

getMode()

publicintgetMode()

Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used.

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 777 (a=rwx), set to 0777 (octal) or 511 (base-10). 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.

int32 mode = 3;

Returns
Type Description
int

The mode.

getParserForType()

publicParser<VersionToPath>getParserForType()
Returns
Type Description
Parser<VersionToPath>
Overrides

getPath()

publicStringgetPath()

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The path.

getPathBytes()

publicByteStringgetPathBytes()

Required. The relative path of the secret in the container.

string path = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for path.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getVersion()

publicStringgetVersion()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

publicByteStringgetVersionBytes()

The Cloud Secret Manager secret version. Can be 'latest' for the latest value, or an integer or a secret alias for a specific version.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicVersionToPath.BuildernewBuilderForType()
Returns
Type Description
VersionToPath.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedVersionToPath.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VersionToPath.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicVersionToPath.BuildertoBuilder()
Returns
Type Description
VersionToPath.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.