Class UpdateHmacKeyRequest.Builder (2.17.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateHmacKeyRequest build()
Returns
TypeDescription
UpdateHmacKeyRequest

buildPartial()

public UpdateHmacKeyRequest buildPartial()
Returns
TypeDescription
UpdateHmacKeyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public UpdateHmacKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateHmacKeyRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public UpdateHmacKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateHmacKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public UpdateHmacKeyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateHmacKeyRequest.Builder
Overrides

mergeFrom(UpdateHmacKeyRequest other)

public UpdateHmacKeyRequest.Builder mergeFrom(UpdateHmacKeyRequest other)
Parameter
NameDescription
otherUpdateHmacKeyRequest
Returns
TypeDescription
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
NameDescription
valueHmacKeyMetadata
Returns
TypeDescription
UpdateHmacKeyRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateHmacKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueHmacKeyMetadata
Returns
TypeDescription
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
NameDescription
builderForValueHmacKeyMetadata.Builder
Returns
TypeDescription
UpdateHmacKeyRequest.Builder

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

public UpdateHmacKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateHmacKeyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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