Send feedback
Class SecretRef (3.64.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class SecretRef extends GeneratedMessageV3 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.<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
public static final int SECRET_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VERSION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static SecretRef getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static SecretRef . Builder newBuilder ()
public static SecretRef . Builder newBuilder ( SecretRef prototype )
Parameter
Name
Description
prototype
SecretRef
public static SecretRef parseDelimitedFrom ( InputStream input )
public static SecretRef parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SecretRef parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static SecretRef parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static SecretRef parseFrom ( ByteString data )
public static SecretRef parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static SecretRef parseFrom ( CodedInputStream input )
public static SecretRef parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static SecretRef parseFrom ( InputStream input )
public static SecretRef parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SecretRef parseFrom ( ByteBuffer data )
public static SecretRef parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<SecretRef> parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public SecretRef getDefaultInstanceForType ()
public Parser<SecretRef> getParserForType ()
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 int getSerializedSize ()
Returns
Type
Description
int
Overrides
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.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SecretRef . Builder newBuilderForType ()
protected SecretRef . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public SecretRef . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
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."],[],[]]