public static final class Secret.Builder extends GeneratedMessageV3.Builder<Secret.Builder> implements SecretOrBuilder
A securely stored value.
Protobuf type google.cloud.metastore.v1beta.Secret
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Secret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
Returns
public Secret buildPartial()
Returns
public Secret.Builder clear()
Returns
Overrides
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
public Secret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Secret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Secret.Builder clearValue()
Returns
public Secret.Builder clone()
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 Descriptors.Descriptor getDescriptorForType()
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Secret.Builder mergeFrom(Secret other)
Parameter
Returns
public Secret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Secret.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Secret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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 | String
The cloudSecret to set.
|
Returns
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 | ByteString
The bytes for cloudSecret to set.
|
Returns
public Secret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Secret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Secret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides