Class SecretKeySelector (0.31.0)

publicfinalclass SecretKeySelectorextendsGeneratedMessageV3implementsSecretKeySelectorOrBuilder

SecretEnvVarSource represents a source for the value of an EnvVar.

Protobuf type google.cloud.run.v2.SecretKeySelector

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

SECRET_FIELD_NUMBER

publicstaticfinalintSECRET_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

publicstaticfinalintVERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticSecretKeySelectorgetDefaultInstance()
Returns
Type Description
SecretKeySelector

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticSecretKeySelector.BuildernewBuilder()
Returns
Type Description
SecretKeySelector.Builder

newBuilder(SecretKeySelector prototype)

publicstaticSecretKeySelector.BuildernewBuilder(SecretKeySelectorprototype)
Parameter
Name Description
prototype SecretKeySelector
Returns
Type Description
SecretKeySelector.Builder

parseDelimitedFrom(InputStream input)

publicstaticSecretKeySelectorparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SecretKeySelector
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

publicstaticSecretKeySelectorparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
SecretKeySelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

publicstaticSecretKeySelectorparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
SecretKeySelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

publicstaticSecretKeySelectorparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SecretKeySelector
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

publicstaticSecretKeySelectorparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SecretKeySelector
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

publicstaticSecretKeySelectorparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SecretKeySelector
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

publicSecretKeySelectorgetDefaultInstanceForType()
Returns
Type Description
SecretKeySelector

getParserForType()

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

getSecret()

publicStringgetSecret()

Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.

string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The secret.

getSecretBytes()

publicByteStringgetSecretBytes()

Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.

string secret = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for secret.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getVersion()

publicStringgetVersion()

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

string version = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The version.

getVersionBytes()

publicByteStringgetVersionBytes()

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

string version = 2 [(.google.api.resource_reference) = { ... }

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()

publicSecretKeySelector.BuildernewBuilderForType()
Returns
Type Description
SecretKeySelector.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSecretKeySelector.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SecretKeySelector.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicSecretKeySelector.BuildertoBuilder()
Returns
Type Description
SecretKeySelector.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.