Class HmacKeyMetadata (2.20.0)

public final class HmacKeyMetadata extends GeneratedMessageV3 implements HmacKeyMetadataOrBuilder

Hmac Key Metadata, which includes all information other than the secret.

Protobuf type google.storage.v2.HmacKeyMetadata

Static Fields

ACCESS_ID_FIELD_NUMBER

public static final int ACCESS_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_FIELD_NUMBER

public static final int PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HmacKeyMetadata getDefaultInstance()
Returns
TypeDescription
HmacKeyMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(HmacKeyMetadata prototype)

public static HmacKeyMetadata.Builder newBuilder(HmacKeyMetadata prototype)
Parameter
NameDescription
prototypeHmacKeyMetadata
Returns
TypeDescription
HmacKeyMetadata.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAccessId()

public String getAccessId()

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The accessId.

getAccessIdBytes()

public ByteString getAccessIdBytes()

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for accessId.

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public HmacKeyMetadata getDefaultInstanceForType()
Returns
TypeDescription
HmacKeyMetadata

getEtag()

public String getEtag()

The etag of the HMAC key.

string etag = 8;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

The etag of the HMAC key.

string etag = 8;

Returns
TypeDescription
ByteString

The bytes for etag.

getId()

public String getId()

Immutable. Resource name ID of the key in the format <projectIdentifier>/<accessId>. <projectIdentifier> can be the project ID or project number.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Immutable. Resource name ID of the key in the format <projectIdentifier>/<accessId>. <projectIdentifier> can be the project ID or project number.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

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

getProject()

public String getProject()

Immutable. Identifies the project that owns the service account of the specified HMAC key, in the format "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Immutable. Identifies the project that owns the service account of the specified HMAC key, in the format "projects/<projectIdentifier>". <projectIdentifier> can be the project ID or project number.

string project = 3 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for project.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceAccountEmail()

public String getServiceAccountEmail()

Output only. Email of the service account the key authenticates as.

string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

Output only. Email of the service account the key authenticates as.

string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for serviceAccountEmail.

getState()

public String getState()

State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.

string state = 5;

Returns
TypeDescription
String

The state.

getStateBytes()

public ByteString getStateBytes()

State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.

string state = 5;

Returns
TypeDescription
ByteString

The bytes for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last modification time of the HMAC key metadata.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last modification time of the HMAC key metadata.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last modification time of the HMAC key metadata.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime 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 HmacKeyMetadata.Builder newBuilderForType()
Returns
TypeDescription
HmacKeyMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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