public static final class Secret.Builder extends GeneratedMessage.Builder<Secret.Builder> implements SecretOrBuilderA securely stored value.
Protobuf type google.cloud.metastore.v1beta.Secret
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Secret.BuilderImplements
SecretOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Secret build()| Returns | |
|---|---|
| Type | Description |
Secret |
|
buildPartial()
public Secret buildPartial()| Returns | |
|---|---|
| Type | Description |
Secret |
|
clear()
public Secret.Builder clear()| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
clearCloudSecret()
public Secret.Builder clearCloudSecret()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 |
Secret.Builder |
This builder for chaining. |
clearValue()
public Secret.Builder clearValue()| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
getCloudSecret()
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. |
getCloudSecretBytes()
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. |
getDefaultInstanceForType()
public Secret getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Secret |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getValueCase()
public Secret.ValueCase getValueCase()| Returns | |
|---|---|
| Type | Description |
Secret.ValueCase |
|
hasCloudSecret()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Secret other)
public Secret.Builder mergeFrom(Secret other)| Parameter | |
|---|---|
| Name | Description |
other |
Secret |
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Secret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Secret.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
setCloudSecret(String value)
public Secret.Builder setCloudSecret(String value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cloudSecret to set. |
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
This builder for chaining. |
setCloudSecretBytes(ByteString value)
public Secret.Builder setCloudSecretBytes(ByteString value)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cloudSecret to set. |
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
This builder for chaining. |