public final class Secret extends GeneratedMessageV3 implements SecretOrBuilder
A securely stored value.
Protobuf type google.cloud.metastore.v1beta.Secret
Static Fields
public static final int CLOUD_SECRET_FIELD_NUMBER
Field Value
Static Methods
public static Secret getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static Secret.Builder newBuilder()
Returns
public static Secret.Builder newBuilder(Secret prototype)
Parameter
Name | Description |
prototype | Secret
|
Returns
public static Secret parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Secret parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Secret parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static Secret parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Secret parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static Secret parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Secret parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Secret parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Secret parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Secret parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Secret parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static Secret parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<Secret> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public String getCloudSecret()
The relative resource name of a Secret Manager secret version, in the
following form:
projects/{project_number}/secrets/{secret_id}/versions/{version_id}
.
string cloud_secret = 2;
Returns
Type | Description |
String | The cloudSecret.
|
public ByteString getCloudSecretBytes()
The relative resource name of a Secret Manager secret version, in the
following form:
projects/{project_number}/secrets/{secret_id}/versions/{version_id}
.
string cloud_secret = 2;
Returns
Type | Description |
ByteString | The bytes for cloudSecret.
|
public Secret getDefaultInstanceForType()
Returns
public Parser<Secret> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Secret.ValueCase getValueCase()
Returns
public boolean hasCloudSecret()
The relative resource name of a Secret Manager secret version, in the
following form:
projects/{project_number}/secrets/{secret_id}/versions/{version_id}
.
string cloud_secret = 2;
Returns
Type | Description |
boolean | Whether the cloudSecret field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Secret.Builder newBuilderForType()
Returns
protected Secret.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public Secret.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions