public final class SecretKeySelector extends GeneratedMessageV3 implements SecretKeySelectorOrBuilder
SecretEnvVarSource represents a source for the value of an EnvVar.
Protobuf type google.cloud.run.v2.SecretKeySelector
Static Fields
SECRET_FIELD_NUMBER
public static final int SECRET_FIELD_NUMBER
Field Value
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SecretKeySelector getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SecretKeySelector.Builder newBuilder()
Returns
newBuilder(SecretKeySelector prototype)
public static SecretKeySelector.Builder newBuilder(SecretKeySelector prototype)
Parameter
Returns
public static SecretKeySelector parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SecretKeySelector parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SecretKeySelector parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SecretKeySelector parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SecretKeySelector parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SecretKeySelector parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SecretKeySelector parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SecretKeySelector parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SecretKeySelector parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SecretKeySelector parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SecretKeySelector parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SecretKeySelector parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SecretKeySelector> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SecretKeySelector getDefaultInstanceForType()
Returns
getParserForType()
public Parser<SecretKeySelector> getParserForType()
Returns
Overrides
getSecret()
public String getSecret()
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()
public ByteString getSecretBytes()
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getVersion()
public String getVersion()
The Cloud Secret Manager secret version.
Can be 'latest' for the latest value or an integer for a specific version.
string version = 2 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The version.
|
getVersionBytes()
public ByteString getVersionBytes()
The Cloud Secret Manager secret version.
Can be 'latest' for the latest value or an integer for a specific version.
string version = 2 [(.google.api.resource_reference) = { ... }
Returns
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SecretKeySelector.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SecretKeySelector.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SecretKeySelector.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions