Class HmacKeyMetadata.Builder (2.36.1)

public static final class HmacKeyMetadata.Builder extends GeneratedMessageV3.Builder<HmacKeyMetadata.Builder> implements HmacKeyMetadataOrBuilder

Hmac Key Metadata, which includes all information other than the secret.

Protobuf type google.storage.v2.HmacKeyMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HmacKeyMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

build()

public HmacKeyMetadata build()
Returns
TypeDescription
HmacKeyMetadata

buildPartial()

public HmacKeyMetadata buildPartial()
Returns
TypeDescription
HmacKeyMetadata

clear()

public HmacKeyMetadata.Builder clear()
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

clearAccessId()

public HmacKeyMetadata.Builder clearAccessId()

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

clearCreateTime()

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];

Returns
TypeDescription
HmacKeyMetadata.Builder

clearEtag()

public HmacKeyMetadata.Builder clearEtag()

The etag of the HMAC key.

string etag = 8;

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HmacKeyMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

clearId()

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];

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public HmacKeyMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

clearProject()

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) = { ... }

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

clearServiceAccountEmail()

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];

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

clearState()

public HmacKeyMetadata.Builder clearState()

State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.

string state = 5;

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

clearUpdateTime()

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];

Returns
TypeDescription
HmacKeyMetadata.Builder

clone()

public HmacKeyMetadata.Builder clone()
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

getAccessId()

public String getAccessId()

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
String

The accessId.

getAccessIdBytes()

public ByteString getAccessIdBytes()

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
ByteString

The bytes for accessId.

getCreateTime()

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
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public HmacKeyMetadata getDefaultInstanceForType()
Returns
TypeDescription
HmacKeyMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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

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
TypeDescription
String

The id.

getIdBytes()

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];

Returns
TypeDescription
ByteString

The bytes for id.

getProject()

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
TypeDescription
String

The project.

getProjectBytes()

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
TypeDescription
ByteString

The bytes for project.

getServiceAccountEmail()

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
TypeDescription
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

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
TypeDescription
ByteString

The bytes for serviceAccountEmail.

getState()

public String getState()

State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.

string state = 5;

Returns
TypeDescription
String

The state.

getStateBytes()

public ByteString getStateBytes()

State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.

string state = 5;

Returns
TypeDescription
ByteString

The bytes for state.

getUpdateTime()

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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public 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];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

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];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

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
TypeDescription
boolean

Whether the createTime field is set.

hasUpdateTime()

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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public HmacKeyMetadata.Builder mergeCreateTime(Timestamp value)

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HmacKeyMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HmacKeyMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public HmacKeyMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

mergeFrom(HmacKeyMetadata other)

public HmacKeyMetadata.Builder mergeFrom(HmacKeyMetadata other)
Parameter
NameDescription
otherHmacKeyMetadata
Returns
TypeDescription
HmacKeyMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HmacKeyMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

mergeUpdateTime(Timestamp value)

public HmacKeyMetadata.Builder mergeUpdateTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HmacKeyMetadata.Builder

setAccessId(String value)

public HmacKeyMetadata.Builder setAccessId(String value)

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueString

The accessId to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setAccessIdBytes(ByteString value)

public HmacKeyMetadata.Builder setAccessIdBytes(ByteString value)

Immutable. Globally unique id for keys.

string access_id = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueByteString

The bytes for accessId to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public HmacKeyMetadata.Builder setCreateTime(Timestamp value)

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HmacKeyMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public HmacKeyMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the HMAC key.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
HmacKeyMetadata.Builder

setEtag(String value)

public HmacKeyMetadata.Builder setEtag(String value)

The etag of the HMAC key.

string etag = 8;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public HmacKeyMetadata.Builder setEtagBytes(ByteString value)

The etag of the HMAC key.

string etag = 8;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HmacKeyMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

setId(String value)

public 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];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setIdBytes(ByteString value)

public HmacKeyMetadata.Builder setIdBytes(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];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setProject(String value)

public 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) = { ... }

Parameter
NameDescription
valueString

The project to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public HmacKeyMetadata.Builder setProjectBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HmacKeyMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

setServiceAccountEmail(String value)

public 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];

Parameter
NameDescription
valueString

The serviceAccountEmail to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setServiceAccountEmailBytes(ByteString value)

public HmacKeyMetadata.Builder setServiceAccountEmailBytes(ByteString value)

Output only. Email of the service account the key authenticates as.

string service_account_email = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for serviceAccountEmail to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setState(String value)

public 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;

Parameter
NameDescription
valueString

The state to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setStateBytes(ByteString value)

public HmacKeyMetadata.Builder setStateBytes(ByteString value)

State of the key. One of ACTIVE, INACTIVE, or DELETED. Writable, can be updated by UpdateHmacKey operation.

string state = 5;

Parameter
NameDescription
valueByteString

The bytes for state to set.

Returns
TypeDescription
HmacKeyMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final HmacKeyMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
HmacKeyMetadata.Builder
Overrides

setUpdateTime(Timestamp value)

public HmacKeyMetadata.Builder setUpdateTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
HmacKeyMetadata.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public HmacKeyMetadata.Builder setUpdateTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
HmacKeyMetadata.Builder