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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UpdateHmacKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UpdateHmacKeyRequest build()
buildPartial()
public UpdateHmacKeyRequest buildPartial()
clear()
public UpdateHmacKeyRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public UpdateHmacKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public UpdateHmacKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public UpdateHmacKeyRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public UpdateHmacKeyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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];
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];
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;
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public UpdateHmacKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UpdateHmacKeyRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(UpdateHmacKeyRequest other)
public UpdateHmacKeyRequest.Builder mergeFrom(UpdateHmacKeyRequest other)
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];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UpdateHmacKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
setField(Descriptors.FieldDescriptor field, Object value)
public UpdateHmacKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UpdateHmacKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateHmacKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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
|