public static final class HmacKeyMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder> implements HmacKeyMetadataOrBuilder
Hmac Key Metadata, which includes all information other than the secret.Protobuf type
google.storage.v2.HmacKeyMetadata| Modifier and Type | Method and Description |
|---|---|
HmacKeyMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HmacKeyMetadata |
build() |
HmacKeyMetadata |
buildPartial() |
HmacKeyMetadata.Builder |
clear() |
HmacKeyMetadata.Builder |
clearAccessId()
Immutable.
|
HmacKeyMetadata.Builder |
clearCreateTime()
Output only.
|
HmacKeyMetadata.Builder |
clearEtag()
The etag of the HMAC key.
|
HmacKeyMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
HmacKeyMetadata.Builder |
clearId()
Immutable.
|
HmacKeyMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
HmacKeyMetadata.Builder |
clearProject()
Immutable.
|
HmacKeyMetadata.Builder |
clearServiceAccountEmail()
Output only.
|
HmacKeyMetadata.Builder |
clearState()
State of the key.
|
HmacKeyMetadata.Builder |
clearUpdateTime()
Output only.
|
HmacKeyMetadata.Builder |
clone() |
String |
getAccessId()
Immutable.
|
com.google.protobuf.ByteString |
getAccessIdBytes()
Immutable.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
HmacKeyMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEtag()
The etag of the HMAC key.
|
com.google.protobuf.ByteString |
getEtagBytes()
The etag of the HMAC key.
|
String |
getId()
Immutable.
|
com.google.protobuf.ByteString |
getIdBytes()
Immutable.
|
String |
getProject()
Immutable.
|
com.google.protobuf.ByteString |
getProjectBytes()
Immutable.
|
String |
getServiceAccountEmail()
Output only.
|
com.google.protobuf.ByteString |
getServiceAccountEmailBytes()
Output only.
|
String |
getState()
State of the key.
|
com.google.protobuf.ByteString |
getStateBytes()
State of the key.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
HmacKeyMetadata.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
HmacKeyMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
HmacKeyMetadata.Builder |
mergeFrom(HmacKeyMetadata other) |
HmacKeyMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
HmacKeyMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HmacKeyMetadata.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
HmacKeyMetadata.Builder |
setAccessId(String value)
Immutable.
|
HmacKeyMetadata.Builder |
setAccessIdBytes(com.google.protobuf.ByteString value)
Immutable.
|
HmacKeyMetadata.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
HmacKeyMetadata.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
HmacKeyMetadata.Builder |
setEtag(String value)
The etag of the HMAC key.
|
HmacKeyMetadata.Builder |
setEtagBytes(com.google.protobuf.ByteString value)
The etag of the HMAC key.
|
HmacKeyMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
HmacKeyMetadata.Builder |
setId(String value)
Immutable.
|
HmacKeyMetadata.Builder |
setIdBytes(com.google.protobuf.ByteString value)
Immutable.
|
HmacKeyMetadata.Builder |
setProject(String value)
Immutable.
|
HmacKeyMetadata.Builder |
setProjectBytes(com.google.protobuf.ByteString value)
Immutable.
|
HmacKeyMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
HmacKeyMetadata.Builder |
setServiceAccountEmail(String value)
Output only.
|
HmacKeyMetadata.Builder |
setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
Output only.
|
HmacKeyMetadata.Builder |
setState(String value)
State of the key.
|
HmacKeyMetadata.Builder |
setStateBytes(com.google.protobuf.ByteString value)
State of the key.
|
HmacKeyMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
HmacKeyMetadata.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
HmacKeyMetadata.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic HmacKeyMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic HmacKeyMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic HmacKeyMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder mergeFrom(HmacKeyMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public HmacKeyMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<HmacKeyMetadata.Builder>IOExceptionpublic 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];getId in interface HmacKeyMetadataOrBuilderpublic 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];getIdBytes in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setId(String value)
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];value - The id to set.public HmacKeyMetadata.Builder clearId()
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 HmacKeyMetadata.Builder setIdBytes(com.google.protobuf.ByteString value)
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];value - The bytes for id to set.public String getAccessId()
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];getAccessId in interface HmacKeyMetadataOrBuilderpublic com.google.protobuf.ByteString getAccessIdBytes()
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];getAccessIdBytes in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setAccessId(String value)
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];value - The accessId to set.public HmacKeyMetadata.Builder clearAccessId()
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];public HmacKeyMetadata.Builder setAccessIdBytes(com.google.protobuf.ByteString value)
Immutable. Globally unique id for keys.
string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for accessId to set.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) = { ... }
getProject in interface HmacKeyMetadataOrBuilderpublic 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) = { ... }
getProjectBytes in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setProject(String value)
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) = { ... }
value - The project to set.public HmacKeyMetadata.Builder clearProject()
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) = { ... }
public HmacKeyMetadata.Builder setProjectBytes(com.google.protobuf.ByteString value)
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) = { ... }
value - The bytes for project to set.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];getServiceAccountEmail in interface HmacKeyMetadataOrBuilderpublic 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];getServiceAccountEmailBytes in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setServiceAccountEmail(String value)
Output only. Email of the service account the key authenticates as.
string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The serviceAccountEmail to set.public HmacKeyMetadata.Builder clearServiceAccountEmail()
Output only. Email of the service account the key authenticates as.
string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];public HmacKeyMetadata.Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
Output only. Email of the service account the key authenticates as.
string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for serviceAccountEmail to set.public String getState()
State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5;getState in interface HmacKeyMetadataOrBuilderpublic com.google.protobuf.ByteString getStateBytes()
State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5;getStateBytes in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setState(String value)
State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5;value - The state to set.public HmacKeyMetadata.Builder clearState()
State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5;public HmacKeyMetadata.Builder setStateBytes(com.google.protobuf.ByteString value)
State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.
string state = 5;value - The bytes for state to set.public boolean hasCreateTime()
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface HmacKeyMetadataOrBuilderpublic 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];
getCreateTime in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata.Builder clearCreateTime()
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation time of the HMAC key.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public 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];
getCreateTimeOrBuilder in interface HmacKeyMetadataOrBuilderpublic 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];
hasUpdateTime in interface HmacKeyMetadataOrBuilderpublic 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];
getUpdateTime in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public HmacKeyMetadata.Builder clearUpdateTime()
Output only. The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The last modification time of the HMAC key metadata.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public 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];
getUpdateTimeOrBuilder in interface HmacKeyMetadataOrBuilderpublic String getEtag()
The etag of the HMAC key.
string etag = 8;getEtag in interface HmacKeyMetadataOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
The etag of the HMAC key.
string etag = 8;getEtagBytes in interface HmacKeyMetadataOrBuilderpublic HmacKeyMetadata.Builder setEtag(String value)
The etag of the HMAC key.
string etag = 8;value - The etag to set.public HmacKeyMetadata.Builder clearEtag()
The etag of the HMAC key.
string etag = 8;public HmacKeyMetadata.Builder setEtagBytes(com.google.protobuf.ByteString value)
The etag of the HMAC key.
string etag = 8;value - The bytes for etag to set.public final HmacKeyMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>public final HmacKeyMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<HmacKeyMetadata.Builder>Copyright © 2023 Google LLC. All rights reserved.