Class Secret.Builder (2.1.9)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Secret.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Secret.Builder
Overrides

build()

public Secret build()
Returns
TypeDescription
Secret

buildPartial()

public Secret buildPartial()
Returns
TypeDescription
Secret

clear()

public Secret.Builder clear()
Returns
TypeDescription
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
TypeDescription
Secret.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Secret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Secret.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Secret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Secret.Builder
Overrides

clearValue()

public Secret.Builder clearValue()
Returns
TypeDescription
Secret.Builder

clone()

public Secret.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cloudSecret.

getDefaultInstanceForType()

public Secret getDefaultInstanceForType()
Returns
TypeDescription
Secret

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValueCase()

public Secret.ValueCase getValueCase()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the cloudSecret field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Secret other)

public Secret.Builder mergeFrom(Secret other)
Parameter
NameDescription
otherSecret
Returns
TypeDescription
Secret.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Secret.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Secret.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Secret.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Secret.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Secret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The cloudSecret to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for cloudSecret to set.

Returns
TypeDescription
Secret.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Secret.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Secret.Builder
Overrides

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

public Secret.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Secret.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Secret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Secret.Builder
Overrides