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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateHmacKeyResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateHmacKeyResponse build()
Returns
buildPartial()
public CreateHmacKeyResponse buildPartial()
Returns
clear()
public CreateHmacKeyResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateHmacKeyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public CreateHmacKeyResponse.Builder clearMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateHmacKeyResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearSecretKeyBytes()
public CreateHmacKeyResponse.Builder clearSecretKeyBytes()
HMAC key secret material.
In raw bytes format (not base64-encoded).
bytes secret_key_bytes = 3;
Returns
clone()
public CreateHmacKeyResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateHmacKeyResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public HmacKeyMetadata getMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns
public HmacKeyMetadata.Builder getMetadataBuilder()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns
public HmacKeyMetadataOrBuilder getMetadataOrBuilder()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns
getSecretKeyBytes()
public ByteString getSecretKeyBytes()
HMAC key secret material.
In raw bytes format (not base64-encoded).
bytes secret_key_bytes = 3;
Returns
public boolean hasMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns
Type |
Description |
boolean |
Whether the metadata field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public CreateHmacKeyResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateHmacKeyResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(CreateHmacKeyResponse other)
public CreateHmacKeyResponse.Builder mergeFrom(CreateHmacKeyResponse other)
Parameter
Returns
public CreateHmacKeyResponse.Builder mergeMetadata(HmacKeyMetadata value)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateHmacKeyResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateHmacKeyResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata value)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Parameter
Returns
public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata.Builder builderForValue)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateHmacKeyResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Name |
Description |
value |
ByteString
The secretKeyBytes to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateHmacKeyResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides