Package com.google.storage.v2
Interface HmacKeyMetadataOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HmacKeyMetadata,HmacKeyMetadata.Builder
public interface HmacKeyMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionImmutable.com.google.protobuf.ByteStringImmutable.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getEtag()Optional.com.google.protobuf.ByteStringOptional.getId()Immutable.com.google.protobuf.ByteStringImmutable.Immutable.com.google.protobuf.ByteStringImmutable.Output only.com.google.protobuf.ByteStringOutput only.getState()Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getId
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:
- The id.
-
getIdBytes
com.google.protobuf.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:
- The bytes for id.
-
getAccessId
String getAccessId()Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The accessId.
-
getAccessIdBytes
com.google.protobuf.ByteString getAccessIdBytes()Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- The bytes for accessId.
-
getProject
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:
- The project.
-
getProjectBytes
com.google.protobuf.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:
- The bytes for project.
-
getServiceAccountEmail
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:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
com.google.protobuf.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:
- The bytes for serviceAccountEmail.
-
getState
String getState()Optional. State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The state.
-
getStateBytes
com.google.protobuf.ByteString getStateBytes()Optional. State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for state.
-
hasCreateTime
boolean hasCreateTime()Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
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:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.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:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.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]; -
getEtag
String getEtag()Optional. The etag of the HMAC key.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The etag.
-
getEtagBytes
com.google.protobuf.ByteString getEtagBytes()Optional. The etag of the HMAC key.
string etag = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for etag.
-