Class Secret.Builder (2.46.0)

public static final class Secret.Builder extends GeneratedMessageV3.Builder<Secret.Builder> implements SecretOrBuilder

A securely stored value.

Protobuf type google.cloud.metastore.v1alpha.Secret

Implements

SecretOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Secret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Secret.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public Secret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Secret.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Secret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Secret.Builder
Overrides

clearValue()

public Secret.Builder clearValue()
Returns
Type Description
Secret.Builder

clone()

public Secret.Builder clone()
Returns
Type Description
Secret.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Secret.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Secret.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Secret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Secret.Builder
Overrides

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 String

The 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 ByteString

The bytes for cloudSecret to set.

Returns
Type Description
Secret.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Secret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Secret.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Secret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Secret.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Secret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Secret.Builder
Overrides