public final class UpdateHmacKeyRequest extends GeneratedMessageV3 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.<ListT>makeMutableCopy(ListT)
Static Fields
HMAC_KEY_FIELD_NUMBER
public static final int HMAC_KEY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static UpdateHmacKeyRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UpdateHmacKeyRequest.Builder newBuilder()
newBuilder(UpdateHmacKeyRequest prototype)
public static UpdateHmacKeyRequest.Builder newBuilder(UpdateHmacKeyRequest prototype)
public static UpdateHmacKeyRequest parseDelimitedFrom(InputStream input)
public static UpdateHmacKeyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UpdateHmacKeyRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UpdateHmacKeyRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(CodedInputStream input)
public static UpdateHmacKeyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(InputStream input)
public static UpdateHmacKeyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UpdateHmacKeyRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UpdateHmacKeyRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public UpdateHmacKeyRequest getDefaultInstanceForType()
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];
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];
getParserForType()
public Parser<UpdateHmacKeyRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public UpdateHmacKeyRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UpdateHmacKeyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public UpdateHmacKeyRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides