Class CreateHmacKeyResponse.Builder (2.8.0)

public static final class CreateHmacKeyResponse.Builder extends GeneratedMessageV3.Builder<CreateHmacKeyResponse.Builder> implements CreateHmacKeyResponseOrBuilder

Create hmac response. The only time the secret for an HMAC will be returned.

Protobuf type google.storage.v2.CreateHmacKeyResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateHmacKeyResponse build()
Returns
TypeDescription
CreateHmacKeyResponse

buildPartial()

public CreateHmacKeyResponse buildPartial()
Returns
TypeDescription
CreateHmacKeyResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMetadata()

public CreateHmacKeyResponse.Builder clearMetadata()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
TypeDescription
CreateHmacKeyResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSecretKeyBytes()

public CreateHmacKeyResponse.Builder clearSecretKeyBytes()

HMAC key secret material. In raw bytes format (not base64-encoded).

bytes secret_key_bytes = 3;

Returns
TypeDescription
CreateHmacKeyResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateHmacKeyResponse getDefaultInstanceForType()
Returns
TypeDescription
CreateHmacKeyResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetadata()

public HmacKeyMetadata getMetadata()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
TypeDescription
HmacKeyMetadata

The metadata.

getMetadataBuilder()

public HmacKeyMetadata.Builder getMetadataBuilder()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
TypeDescription
HmacKeyMetadata.Builder

getMetadataOrBuilder()

public HmacKeyMetadataOrBuilder getMetadataOrBuilder()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
TypeDescription
HmacKeyMetadataOrBuilder

getSecretKeyBytes()

public ByteString getSecretKeyBytes()

HMAC key secret material. In raw bytes format (not base64-encoded).

bytes secret_key_bytes = 3;

Returns
TypeDescription
ByteString

The secretKeyBytes.

hasMetadata()

public boolean hasMetadata()

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Returns
TypeDescription
boolean

Whether the metadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CreateHmacKeyResponse other)

public CreateHmacKeyResponse.Builder mergeFrom(CreateHmacKeyResponse other)
Parameter
NameDescription
otherCreateHmacKeyResponse
Returns
TypeDescription
CreateHmacKeyResponse.Builder

mergeMetadata(HmacKeyMetadata value)

public CreateHmacKeyResponse.Builder mergeMetadata(HmacKeyMetadata value)

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Parameter
NameDescription
valueHmacKeyMetadata
Returns
TypeDescription
CreateHmacKeyResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMetadata(HmacKeyMetadata value)

public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata value)

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Parameter
NameDescription
valueHmacKeyMetadata
Returns
TypeDescription
CreateHmacKeyResponse.Builder

setMetadata(HmacKeyMetadata.Builder builderForValue)

public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata.Builder builderForValue)

Key metadata.

.google.storage.v2.HmacKeyMetadata metadata = 1;

Parameter
NameDescription
builderForValueHmacKeyMetadata.Builder
Returns
TypeDescription
CreateHmacKeyResponse.Builder

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

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

setSecretKeyBytes(ByteString value)

public CreateHmacKeyResponse.Builder setSecretKeyBytes(ByteString value)

HMAC key secret material. In raw bytes format (not base64-encoded).

bytes secret_key_bytes = 3;

Parameter
NameDescription
valueByteString

The secretKeyBytes to set.

Returns
TypeDescription
CreateHmacKeyResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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