Send feedback
Class SecretKeySelector.Builder (0.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.2.1 keyboard_arrow_down
public static final class SecretKeySelector . Builder extends GeneratedMessageV3 . Builder<SecretKeySelector . Builder > implements SecretKeySelectorOrBuilder
SecretEnvVarSource represents a source for the value of an EnvVar.
Protobuf type google.cloud.run.v2.SecretKeySelector
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SecretKeySelector . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public SecretKeySelector build ()
Returns
buildPartial()
public SecretKeySelector buildPartial ()
Returns
clear()
public SecretKeySelector . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SecretKeySelector . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SecretKeySelector . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearSecret()
public SecretKeySelector . Builder clearSecret ()
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
clearVersion()
public SecretKeySelector . Builder clearVersion ()
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
clone()
public SecretKeySelector . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public SecretKeySelector getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(SecretKeySelector other)
public SecretKeySelector . Builder mergeFrom ( SecretKeySelector other )
Parameter
Returns
public SecretKeySelector . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SecretKeySelector . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SecretKeySelector . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SecretKeySelector . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SecretKeySelector . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setSecret(String value)
public SecretKeySelector . Builder setSecret ( String value )
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) = { ... }
Parameter
Name Description value String
The secret to set.
Returns
setSecretBytes(ByteString value)
public SecretKeySelector . Builder setSecretBytes ( ByteString value )
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) = { ... }
Parameter
Name Description value ByteString
The bytes for secret to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SecretKeySelector . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setVersion(String value)
public SecretKeySelector . Builder setVersion ( String value )
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) = { ... }
Parameter
Name Description value String
The version to set.
Returns
setVersionBytes(ByteString value)
public SecretKeySelector . Builder setVersionBytes ( ByteString value )
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) = { ... }
Parameter
Name Description value ByteString
The bytes for version to set.
Returns
Send feedback
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-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]