- 2.48.0 (latest)
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.4
- 2.3.0
- 2.2.0
- 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.v1beta.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 |