public static final class Secret.Builder extends GeneratedMessageV3.Builder<Secret.Builder> implements SecretOrBuilder
A securely stored value.
Protobuf type google.events.cloud.metastore.v1.Secret
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Secret.BuilderImplements
SecretOrBuilderStatic 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 |
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. |
clearField(Descriptors.FieldDescriptor field)
public Secret.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
Secret.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Secret.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Secret.Builder |
clearValue()
public Secret.Builder clearValue()
Returns | |
---|---|
Type | Description |
Secret.Builder |
clone()
public Secret.Builder clone()
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 GeneratedMessageV3.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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Secret.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
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 | 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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final Secret.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Secret.Builder |