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