Class UpdateSecretRequest.Builder (2.39.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateSecretRequest build()
Returns
TypeDescription
UpdateSecretRequest

buildPartial()

public UpdateSecretRequest buildPartial()
Returns
TypeDescription
UpdateSecretRequest

clear()

public UpdateSecretRequest.Builder clear()
Returns
TypeDescription
UpdateSecretRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateSecretRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UpdateSecretRequest.Builder

clone()

public UpdateSecretRequest.Builder clone()
Returns
TypeDescription
UpdateSecretRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateSecretRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateSecretRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SecretOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. Specifies the fields to be updated.

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

Returns
TypeDescription
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
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. Specifies the fields to be updated.

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

Returns
TypeDescription
FieldMaskOrBuilder

hasSecret()

public boolean hasSecret()

Required. Secret with updated field values.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateSecretRequest other)

public UpdateSecretRequest.Builder mergeFrom(UpdateSecretRequest other)
Parameter
NameDescription
otherUpdateSecretRequest
Returns
TypeDescription
UpdateSecretRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateSecretRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSecret
Returns
TypeDescription
UpdateSecretRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateSecretRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueSecret
Returns
TypeDescription
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
NameDescription
builderForValueSecret.Builder
Returns
TypeDescription
UpdateSecretRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateSecretRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateSecretRequest.Builder