Class CreateHmacKeyResponse (2.9.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
TypeDescription
int

SECRET_KEY_BYTES_FIELD_NUMBER

public static final int SECRET_KEY_BYTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateHmacKeyResponse getDefaultInstance()
Returns
TypeDescription
CreateHmacKeyResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CreateHmacKeyResponse.Builder newBuilder()
Returns
TypeDescription
CreateHmacKeyResponse.Builder

newBuilder(CreateHmacKeyResponse prototype)

public static CreateHmacKeyResponse.Builder newBuilder(CreateHmacKeyResponse prototype)
Parameter
NameDescription
prototypeCreateHmacKeyResponse
Returns
TypeDescription
CreateHmacKeyResponse.Builder

parseDelimitedFrom(InputStream input)

public static CreateHmacKeyResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateHmacKeyResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateHmacKeyResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateHmacKeyResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateHmacKeyResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateHmacKeyResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateHmacKeyResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateHmacKeyResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateHmacKeyResponse> parser()
Returns
TypeDescription
Parser<CreateHmacKeyResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateHmacKeyResponse getDefaultInstanceForType()
Returns
TypeDescription
CreateHmacKeyResponse

getMetadata()

public HmacKeyMetadata getMetadata()

Key metadata.

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

Returns
TypeDescription
HmacKeyMetadata

The metadata.

getMetadataOrBuilder()

public HmacKeyMetadataOrBuilder getMetadataOrBuilder()

Key metadata.

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

Returns
TypeDescription
HmacKeyMetadataOrBuilder

getParserForType()

public Parser<CreateHmacKeyResponse> getParserForType()
Returns
TypeDescription
Parser<CreateHmacKeyResponse>
Overrides

getSecretKeyBytes()

public ByteString getSecretKeyBytes()

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

bytes secret_key_bytes = 3;

Returns
TypeDescription
ByteString

The secretKeyBytes.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasMetadata()

public boolean hasMetadata()

Key metadata.

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

Returns
TypeDescription
boolean

Whether the metadata field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateHmacKeyResponse.Builder newBuilderForType()
Returns
TypeDescription
CreateHmacKeyResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateHmacKeyResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateHmacKeyResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateHmacKeyResponse.Builder toBuilder()
Returns
TypeDescription
CreateHmacKeyResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException