Class UpdateHmacKeyRequest.Builder (2.23.0)

public static final class UpdateHmacKeyRequest.Builder extends GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder> implements UpdateHmacKeyRequestOrBuilder

Request object to update an HMAC key state. HmacKeyMetadata.state is required and the only writable field in UpdateHmacKey operation. Specifying fields other than state will result in an error.

Protobuf type google.storage.v2.UpdateHmacKeyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateHmacKeyRequest build()
Returns
Type Description
UpdateHmacKeyRequest

buildPartial()

public UpdateHmacKeyRequest buildPartial()
Returns
Type Description
UpdateHmacKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHmacKey()

public UpdateHmacKeyRequest.Builder clearHmacKey()

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateHmacKeyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateHmacKeyRequest.Builder clearUpdateMask()

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
UpdateHmacKeyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateHmacKeyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateHmacKeyRequest

getDescriptorForType()

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

getHmacKey()

public HmacKeyMetadata getHmacKey()

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HmacKeyMetadata

The hmacKey.

getHmacKeyBuilder()

public HmacKeyMetadata.Builder getHmacKeyBuilder()

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HmacKeyMetadata.Builder

getHmacKeyOrBuilder()

public HmacKeyMetadataOrBuilder getHmacKeyOrBuilder()

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HmacKeyMetadataOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Returns
Type Description
FieldMaskOrBuilder

hasHmacKey()

public boolean hasHmacKey()

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the hmacKey field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

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(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(UpdateHmacKeyRequest other)

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

mergeHmacKey(HmacKeyMetadata value)

public UpdateHmacKeyRequest.Builder mergeHmacKey(HmacKeyMetadata value)

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HmacKeyMetadata
Returns
Type Description
UpdateHmacKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateHmacKeyRequest.Builder mergeUpdateMask(FieldMask value)

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateHmacKeyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHmacKey(HmacKeyMetadata value)

public UpdateHmacKeyRequest.Builder setHmacKey(HmacKeyMetadata value)

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HmacKeyMetadata
Returns
Type Description
UpdateHmacKeyRequest.Builder

setHmacKey(HmacKeyMetadata.Builder builderForValue)

public UpdateHmacKeyRequest.Builder setHmacKey(HmacKeyMetadata.Builder builderForValue)

Required. The HMAC key to update. If present, the hmac_key's id field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.

.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue HmacKeyMetadata.Builder
Returns
Type Description
UpdateHmacKeyRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateHmacKeyRequest.Builder setUpdateMask(FieldMask value)

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateHmacKeyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateHmacKeyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Update mask for hmac_key. Not specifying any fields will mean only the state field is updated to the value specified in hmac_key.

.google.protobuf.FieldMask update_mask = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateHmacKeyRequest.Builder