Class HmacKeyMetadata (2.9.1)

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()

Globally unique id for keys.

string access_id = 2;

Returns
TypeDescription
String

The accessId.

getAccessIdBytes()

public ByteString getAccessIdBytes()

Globally unique id for keys.

string access_id = 2;

Returns
TypeDescription
ByteString

The bytes for accessId.

getCreateTime()

public Timestamp getCreateTime()

The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6;

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()

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

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

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

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getParserForType()

public Parser<HmacKeyMetadata> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for project.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceAccountEmail()

public String getServiceAccountEmail()

Email of the service account the key authenticates as.

string service_account_email = 4;

Returns
TypeDescription
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

Email of the service account the key authenticates as.

string service_account_email = 4;

Returns
TypeDescription
ByteString

The bytes for serviceAccountEmail.

getState()

public String getState()

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

string state = 5;

Returns
TypeDescription
String

The state.

getStateBytes()

public ByteString getStateBytes()

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

string state = 5;

Returns
TypeDescription
ByteString

The bytes for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

The last modification time of the HMAC key metadata.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The last modification time of the HMAC key metadata.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The last modification time of the HMAC key metadata.

.google.protobuf.Timestamp update_time = 7;

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