Send feedback
Class SecretRef.Builder (3.64.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class SecretRef . Builder extends GeneratedMessageV3 . Builder<SecretRef . Builder > implements SecretRefOrBuilder
Reference to a secret stored in the Cloud Secret Manager that will
provide the value for this environment variable.
Protobuf type google.cloud.aiplatform.v1.SecretRef
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public SecretRef . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public SecretRef buildPartial ()
public SecretRef . Builder clear ()
Overrides
public SecretRef . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public SecretRef . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public SecretRef . Builder clearSecret ()
Required. The name of the secret in Cloud Secret Manager.
Format: {secret_name}.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];
public SecretRef . Builder clearVersion ()
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;
public SecretRef . Builder clone ()
Overrides
public SecretRef getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public String getSecret ()
Required. The name of the secret in Cloud Secret Manager.
Format: {secret_name}.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
String
The secret.
public ByteString getSecretBytes ()
Required. The name of the secret in Cloud Secret Manager.
Format: {secret_name}.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
ByteString
The bytes for secret.
public String getVersion ()
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;
Returns
Type
Description
String
The version.
public ByteString getVersionBytes ()
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;
Returns
Type
Description
ByteString
The bytes for version.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SecretRef . Builder mergeFrom ( SecretRef other )
public SecretRef . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public SecretRef . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final SecretRef . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public SecretRef . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public SecretRef . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public SecretRef . Builder setSecret ( String value )
Required. The name of the secret in Cloud Secret Manager.
Format: {secret_name}.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
String
The secret to set.
public SecretRef . Builder setSecretBytes ( ByteString value )
Required. The name of the secret in Cloud Secret Manager.
Format: {secret_name}.
string secret = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
ByteString
The bytes for secret to set.
public final SecretRef . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public SecretRef . Builder setVersion ( String value )
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;
Parameter
Name
Description
value
String
The version to set.
public SecretRef . Builder setVersionBytes ( ByteString value )
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;
Parameter
Name
Description
value
ByteString
The bytes for version to set.
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-05-30 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-05-30 UTC."],[],[]]