Class UpdateSecretRequest.Builder (2.51.0)

public static final class UpdateSecretRequest.Builder extends GeneratedMessageV3.Builder<UpdateSecretRequest.Builder> implements UpdateSecretRequestOrBuilder

Request message for SecretManagerService.UpdateSecret.

Protobuf type google.cloud.secretmanager.v1beta2.UpdateSecretRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSecretRequest build()
Returns
Type Description
UpdateSecretRequest

buildPartial()

public UpdateSecretRequest buildPartial()
Returns
Type Description
UpdateSecretRequest

clear()

public UpdateSecretRequest.Builder clear()
Returns
Type Description
UpdateSecretRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecret()

public UpdateSecretRequest.Builder clearSecret()

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSecretRequest.Builder

clearUpdateMask()

public UpdateSecretRequest.Builder clearUpdateMask()

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateSecretRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateSecretRequest getDefaultInstanceForType()
Returns
Type Description
UpdateSecretRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSecret()

public Secret getSecret()

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Secret

The secret.

getSecretBuilder()

public Secret.Builder getSecretBuilder()

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Secret.Builder

getSecretOrBuilder()

public SecretOrBuilder getSecretOrBuilder()

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SecretOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasSecret()

public boolean hasSecret()

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the secret field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateSecretRequest other)

public UpdateSecretRequest.Builder mergeFrom(UpdateSecretRequest other)
Parameter
Name Description
other UpdateSecretRequest
Returns
Type Description
UpdateSecretRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateSecretRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateSecretRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeSecret(Secret value)

public UpdateSecretRequest.Builder mergeSecret(Secret value)

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Secret
Returns
Type Description
UpdateSecretRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateSecretRequest.Builder mergeUpdateMask(FieldMask value)

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSecretRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSecret(Secret value)

public UpdateSecretRequest.Builder setSecret(Secret value)

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Secret
Returns
Type Description
UpdateSecretRequest.Builder

setSecret(Secret.Builder builderForValue)

public UpdateSecretRequest.Builder setSecret(Secret.Builder builderForValue)

Required. Secret with updated field values.

.google.cloud.secretmanager.v1beta2.Secret secret = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Secret.Builder
Returns
Type Description
UpdateSecretRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateSecretRequest.Builder setUpdateMask(FieldMask value)

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateSecretRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateSecretRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. Specifies the fields to be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateSecretRequest.Builder