Send feedback
Class UpdateHmacKeyRequest.Builder (2.9.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.9.3 keyboard_arrow_down
public static final class UpdateHmacKeyRequest . Builder extends GeneratedMessageV3 . Builder<UpdateHmacKeyRequest . Builder > implements UpdateHmacKeyRequestOrBuilder
Request object to update an HMAC key state.
Protobuf type google.storage.v2.UpdateHmacKeyRequest
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateHmacKeyRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public UpdateHmacKeyRequest build ()
Returns
buildPartial()
public UpdateHmacKeyRequest buildPartial ()
Returns
clear()
public UpdateHmacKeyRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateHmacKeyRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateHmacKeyRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearUpdateMask()
public UpdateHmacKeyRequest . Builder clearUpdateMask ()
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Returns
clone()
public UpdateHmacKeyRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public UpdateHmacKeyRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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
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
getUpdateMask()
public FieldMask getUpdateMask ()
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Returns
getUpdateMaskBuilder()
public FieldMask . Builder getUpdateMaskBuilder ()
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Returns
getUpdateMaskOrBuilder()
public FieldMaskOrBuilder getUpdateMaskOrBuilder ()
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Returns
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.
.google.protobuf.FieldMask update_mask = 3;
Returns
Type
Description
boolean
Whether the updateMask field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
public UpdateHmacKeyRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public UpdateHmacKeyRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeFrom(UpdateHmacKeyRequest other)
public UpdateHmacKeyRequest . Builder mergeFrom ( UpdateHmacKeyRequest other )
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateHmacKeyRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
mergeUpdateMask(FieldMask value)
public UpdateHmacKeyRequest . Builder mergeUpdateMask ( FieldMask value )
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateHmacKeyRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateHmacKeyRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateHmacKeyRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setUpdateMask(FieldMask value)
public UpdateHmacKeyRequest . Builder setUpdateMask ( FieldMask value )
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Returns
setUpdateMask(FieldMask.Builder builderForValue)
public UpdateHmacKeyRequest . Builder setUpdateMask ( FieldMask . Builder builderForValue )
Update mask for hmac_key.
.google.protobuf.FieldMask update_mask = 3;
Parameter
Name
Description
builderForValue
Builder
Returns
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]