Class CreateHmacKeyResponse (2.14.0)

public final class CreateHmacKeyResponse extends GeneratedMessageV3 implements CreateHmacKeyResponseOrBuilder

Create hmac response. The only time the secret for an HMAC will be returned.

Protobuf type google.storage.v2.CreateHmacKeyResponse

Static Fields

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
Type Description
int

SECRET_KEY_BYTES_FIELD_NUMBER

public static final int SECRET_KEY_BYTES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateHmacKeyResponse getDefaultInstance()
Returns
Type Description
CreateHmacKeyResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CreateHmacKeyResponse.Builder newBuilder()
Returns
Type Description
CreateHmacKeyResponse.Builder

newBuilder(CreateHmacKeyResponse prototype)

public static CreateHmacKeyResponse.Builder newBuilder(CreateHmacKeyResponse prototype)
Parameter
Name Description
prototype CreateHmacKeyResponse
Returns
Type Description
CreateHmacKeyResponse.Builder

parseDelimitedFrom(InputStream input)

public static CreateHmacKeyResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateHmacKeyResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateHmacKeyResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateHmacKeyResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateHmacKeyResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateHmacKeyResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateHmacKeyResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateHmacKeyResponse> parser()
Returns
Type Description
Parser<CreateHmacKeyResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateHmacKeyResponse getDefaultInstanceForType()
Returns
Type Description
CreateHmacKeyResponse

getMetadata()

public HmacKeyMetadata getMetadata()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
Type Description
HmacKeyMetadata

The metadata.

getMetadataOrBuilder()

public HmacKeyMetadataOrBuilder getMetadataOrBuilder()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
Type Description
HmacKeyMetadataOrBuilder

getParserForType()

public Parser<CreateHmacKeyResponse> getParserForType()
Returns
Type Description
Parser<CreateHmacKeyResponse>
Overrides

getSecretKeyBytes()

public ByteString getSecretKeyBytes()

HMAC key secret material. In raw bytes format (not base64-encoded).

bytes secret_key_bytes = 3;

Returns
Type Description
ByteString

The secretKeyBytes.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hasMetadata()

public boolean hasMetadata()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
Type Description
boolean

Whether the metadata field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateHmacKeyResponse.Builder newBuilderForType()
Returns
Type Description
CreateHmacKeyResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateHmacKeyResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateHmacKeyResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateHmacKeyResponse.Builder toBuilder()
Returns
Type Description
CreateHmacKeyResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException