Send feedback
Class CreateHmacKeyResponse.Builder (2.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.14.0 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-21 UTC."],[],[]]