Class HmacKeyMetadata (2.9.1)
Stay organized with collections
Save and categorize content based on your preferences.
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
public static final int ACCESS_ID_FIELD_NUMBER
Field Value
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
public static final int ETAG_FIELD_NUMBER
Field Value
public static final int ID_FIELD_NUMBER
Field Value
public static final int PROJECT_FIELD_NUMBER
Field Value
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Static Methods
public static HmacKeyMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static HmacKeyMetadata.Builder newBuilder()
Returns
public static HmacKeyMetadata.Builder newBuilder(HmacKeyMetadata prototype)
Parameter
Returns
public static HmacKeyMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HmacKeyMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HmacKeyMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static HmacKeyMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HmacKeyMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static HmacKeyMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HmacKeyMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HmacKeyMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HmacKeyMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HmacKeyMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HmacKeyMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static HmacKeyMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<HmacKeyMetadata> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public String getAccessId()
Globally unique id for keys.
string access_id = 2;
Returns
Type | Description |
String | The accessId.
|
public ByteString getAccessIdBytes()
Globally unique id for keys.
string access_id = 2;
Returns
public Timestamp getCreateTime()
The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6;
Returns
public TimestampOrBuilder getCreateTimeOrBuilder()
The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6;
Returns
public HmacKeyMetadata getDefaultInstanceForType()
Returns
The etag of the HMAC key.
string etag = 8;
Returns
Type | Description |
String | The etag.
|
public ByteString getEtagBytes()
The etag of the HMAC key.
string etag = 8;
Returns
Resource name ID of the key in the format <projectId>/<accessId>.
string id = 1;
Returns
public ByteString getIdBytes()
Resource name ID of the key in the format <projectId>/<accessId>.
string id = 1;
Returns
public Parser<HmacKeyMetadata> getParserForType()
Returns
Overrides
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.
|
public ByteString getProjectBytes()
The project ID that the hmac key is contained in.
string project = 3 [(.google.api.resource_reference) = { ... }
Returns
public int getSerializedSize()
Returns
Overrides
public String getServiceAccountEmail()
Email of the service account the key authenticates as.
string service_account_email = 4;
Returns
Type | Description |
String | The serviceAccountEmail.
|
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.
|
State of the key. One of ACTIVE, INACTIVE, or DELETED.
string state = 5;
Returns
Type | Description |
String | The state.
|
public ByteString getStateBytes()
State of the key. One of ACTIVE, INACTIVE, or DELETED.
string state = 5;
Returns
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public Timestamp getUpdateTime()
The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7;
Returns
public TimestampOrBuilder getUpdateTimeOrBuilder()
The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7;
Returns
public boolean hasCreateTime()
The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6;
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
public boolean hasUpdateTime()
The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7;
Returns
Type | Description |
boolean | Whether the updateTime field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public HmacKeyMetadata.Builder newBuilderForType()
Returns
protected HmacKeyMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public HmacKeyMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-04 UTC."]]