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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateHmacKeyResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateHmacKeyResponse build()
buildPartial()
public CreateHmacKeyResponse buildPartial()
clear()
public CreateHmacKeyResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateHmacKeyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public CreateHmacKeyResponse.Builder clearMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateHmacKeyResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSecretKeyBytes()
public CreateHmacKeyResponse.Builder clearSecretKeyBytes()
HMAC key secret material.
In raw bytes format (not base64-encoded).
bytes secret_key_bytes = 3;
clone()
public CreateHmacKeyResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateHmacKeyResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public HmacKeyMetadata getMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
public HmacKeyMetadata.Builder getMetadataBuilder()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
public HmacKeyMetadataOrBuilder getMetadataOrBuilder()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
getSecretKeyBytes()
public ByteString getSecretKeyBytes()
HMAC key secret material.
In raw bytes format (not base64-encoded).
bytes secret_key_bytes = 3;
Returns |
Type |
Description |
ByteString |
The secretKeyBytes.
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public CreateHmacKeyResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateHmacKeyResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(CreateHmacKeyResponse other)
public CreateHmacKeyResponse.Builder mergeFrom(CreateHmacKeyResponse other)
public CreateHmacKeyResponse.Builder mergeMetadata(HmacKeyMetadata value)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateHmacKeyResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateHmacKeyResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata value)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata.Builder builderForValue)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateHmacKeyResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateHmacKeyResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides