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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateHmacKeyResponse.BuilderImplements
CreateHmacKeyResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateHmacKeyResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
build()
public CreateHmacKeyResponse build()
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse |
buildPartial()
public CreateHmacKeyResponse buildPartial()
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse |
clear()
public CreateHmacKeyResponse.Builder clear()
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateHmacKeyResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
clearMetadata()
public CreateHmacKeyResponse.Builder clearMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateHmacKeyResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
clearSecretKeyBytes()
public CreateHmacKeyResponse.Builder clearSecretKeyBytes()
HMAC key secret material. In raw bytes format (not base64-encoded).
bytes secret_key_bytes = 3;
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder | This builder for chaining. |
clone()
public CreateHmacKeyResponse.Builder clone()
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
getDefaultInstanceForType()
public CreateHmacKeyResponse getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getMetadata()
public HmacKeyMetadata getMetadata()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns | |
---|---|
Type | Description |
HmacKeyMetadata | The metadata. |
getMetadataBuilder()
public HmacKeyMetadata.Builder getMetadataBuilder()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns | |
---|---|
Type | Description |
HmacKeyMetadata.Builder |
getMetadataOrBuilder()
public HmacKeyMetadataOrBuilder getMetadataOrBuilder()
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Returns | |
---|---|
Type | Description |
HmacKeyMetadataOrBuilder |
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. |
hasMetadata()
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 | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateHmacKeyResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateHmacKeyResponse.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
mergeFrom(CreateHmacKeyResponse other)
public CreateHmacKeyResponse.Builder mergeFrom(CreateHmacKeyResponse other)
Parameter | |
---|---|
Name | Description |
other | CreateHmacKeyResponse |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
mergeMetadata(HmacKeyMetadata value)
public CreateHmacKeyResponse.Builder mergeMetadata(HmacKeyMetadata value)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Parameter | |
---|---|
Name | Description |
value | HmacKeyMetadata |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateHmacKeyResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateHmacKeyResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
setMetadata(HmacKeyMetadata value)
public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata value)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Parameter | |
---|---|
Name | Description |
value | HmacKeyMetadata |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
setMetadata(HmacKeyMetadata.Builder builderForValue)
public CreateHmacKeyResponse.Builder setMetadata(HmacKeyMetadata.Builder builderForValue)
Key metadata.
.google.storage.v2.HmacKeyMetadata metadata = 1;
Parameter | |
---|---|
Name | Description |
builderForValue | HmacKeyMetadata.Builder |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateHmacKeyResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |
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 | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateHmacKeyResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateHmacKeyResponse.Builder |