Class HmacKeyMetadata (2.4.5)

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
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_FIELD_NUMBER

public static final int PROJECT_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static HmacKeyMetadata getDefaultInstance()
Returns
Type Description
HmacKeyMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(HmacKeyMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAccessId()

public String getAccessId()

Globally unique id for keys.

string access_id = 2;

Returns
Type Description
String

The accessId.

getAccessIdBytes()

public ByteString getAccessIdBytes()

Globally unique id for keys.

string access_id = 2;

Returns
Type Description
ByteString

The bytes for accessId.

getCreateTime()

public Timestamp getCreateTime()

The creation time of the HMAC key in RFC 3339 format.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The creation time of the HMAC key in RFC 3339 format.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public HmacKeyMetadata getDefaultInstanceForType()
Returns
Type Description
HmacKeyMetadata

getId()

public String getId()

Resource name ID of the key in the format <projectId>/<accessId>.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Resource name ID of the key in the format <projectId>/<accessId>.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getParserForType()

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

getProject()

public String getProject()

The project ID that the hmac key is contained in.

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

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The project ID that the hmac key is contained in.

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

Returns
Type Description
ByteString

The bytes for project.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccountEmail()

public String getServiceAccountEmail()

Email of the service account the key authenticates as.

string service_account_email = 4;

Returns
Type Description
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

Email of the service account the key authenticates as.

string service_account_email = 4;

Returns
Type Description
ByteString

The bytes for serviceAccountEmail.

getState()

public String getState()

State of the key. One of ACTIVE, INACTIVE, or DELETED.

string state = 5;

Returns
Type Description
String

The state.

getStateBytes()

public ByteString getStateBytes()

State of the key. One of ACTIVE, INACTIVE, or DELETED.

string state = 5;

Returns
Type Description
ByteString

The bytes for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

The last modification time of the HMAC key metadata in RFC 3339 format.

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The last modification time of the HMAC key metadata in RFC 3339 format.

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The creation time of the HMAC key in RFC 3339 format.

.google.protobuf.Timestamp create_time = 6;

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The last modification time of the HMAC key metadata in RFC 3339 format.

.google.protobuf.Timestamp update_time = 7;

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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