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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
public static final int ACCESS_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ETAG_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int PROJECT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int STATE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int UPDATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static HmacKeyMetadata getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static HmacKeyMetadata.Builder newBuilder()
public static HmacKeyMetadata.Builder newBuilder(HmacKeyMetadata prototype)
public static HmacKeyMetadata parseDelimitedFrom(InputStream input)
public static HmacKeyMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HmacKeyMetadata parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static HmacKeyMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HmacKeyMetadata parseFrom(ByteString data)
public static HmacKeyMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HmacKeyMetadata parseFrom(CodedInputStream input)
public static HmacKeyMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HmacKeyMetadata parseFrom(InputStream input)
public static HmacKeyMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static HmacKeyMetadata parseFrom(ByteBuffer data)
public static HmacKeyMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<HmacKeyMetadata> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public String getAccessId()
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
---|
Type | Description |
String | The accessId.
|
public ByteString getAccessIdBytes()
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
---|
Type | Description |
ByteString | The bytes for accessId.
|
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 |
---|
Type | Description |
Timestamp | The createTime.
|
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for etag.
|
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 |
---|
Type | Description |
String | The id.
|
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];
public Parser<HmacKeyMetadata> getParserForType()
Overrides
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 |
---|
Type | Description |
String | The project.
|
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 |
---|
Type | Description |
ByteString | The bytes for project.
|
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
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 |
---|
Type | Description |
String | The serviceAccountEmail.
|
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 |
---|
Type | Description |
ByteString | The bytes for serviceAccountEmail.
|
State of the key. One of ACTIVE, INACTIVE, or DELETED.
Writable, can be updated by UpdateHmacKey operation.
string state = 5;
Returns |
---|
Type | Description |
String | The state.
|
public ByteString getStateBytes()
State of the key. One of ACTIVE, INACTIVE, or DELETED.
Writable, can be updated by UpdateHmacKey operation.
string state = 5;
Returns |
---|
Type | Description |
ByteString | The bytes for state.
|
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 |
---|
Type | Description |
Timestamp | The updateTime.
|
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];
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 |
---|
Type | Description |
boolean | Whether the createTime field is set.
|
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 |
---|
Type | Description |
boolean | Whether the updateTime field is set.
|
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public HmacKeyMetadata.Builder newBuilderForType()
protected HmacKeyMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public HmacKeyMetadata.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides