public final class UpdateHmacKeyRequest extends GeneratedMessageV3 implements UpdateHmacKeyRequestOrBuilder
Request object to update an HMAC key state.
Protobuf type google.storage.v2.UpdateHmacKeyRequest
Static Fields
COMMON_REQUEST_PARAMS_FIELD_NUMBER
public static final int COMMON_REQUEST_PARAMS_FIELD_NUMBER
Field Value
HMAC_KEY_FIELD_NUMBER
public static final int HMAC_KEY_FIELD_NUMBER
Field Value
UPDATE_MASK_FIELD_NUMBER
public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static UpdateHmacKeyRequest getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static UpdateHmacKeyRequest.Builder newBuilder()
Returns
newBuilder(UpdateHmacKeyRequest prototype)
public static UpdateHmacKeyRequest.Builder newBuilder(UpdateHmacKeyRequest prototype)
Parameter
Returns
public static UpdateHmacKeyRequest parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateHmacKeyRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static UpdateHmacKeyRequest parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static UpdateHmacKeyRequest parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateHmacKeyRequest parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static UpdateHmacKeyRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static UpdateHmacKeyRequest parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static UpdateHmacKeyRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static UpdateHmacKeyRequest parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UpdateHmacKeyRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<UpdateHmacKeyRequest> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCommonRequestParams()
public CommonRequestParams getCommonRequestParams()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 2;
Returns
getCommonRequestParamsOrBuilder()
public CommonRequestParamsOrBuilder getCommonRequestParamsOrBuilder()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 2;
Returns
getDefaultInstanceForType()
public UpdateHmacKeyRequest getDefaultInstanceForType()
Returns
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
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
getParserForType()
public Parser<UpdateHmacKeyRequest> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getUpdateMask()
public FieldMask getUpdateMask()
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
hasCommonRequestParams()
public boolean hasCommonRequestParams()
A set of parameters common to all Storage API requests.
.google.storage.v2.CommonRequestParams common_request_params = 2;
Returns
Type |
Description |
boolean |
Whether the commonRequestParams field is set.
|
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public UpdateHmacKeyRequest.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UpdateHmacKeyRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public UpdateHmacKeyRequest.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions