public static final class UpdateHmacKeyRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder> implements UpdateHmacKeyRequestOrBuilder
Request object to update an HMAC key state. HmacKeyMetadata.state is required and the only writable field in UpdateHmacKey operation. Specifying fields other than state will result in an error.Protobuf type
google.storage.v2.UpdateHmacKeyRequest
Modifier and Type | Method and Description |
---|---|
UpdateHmacKeyRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateHmacKeyRequest |
build() |
UpdateHmacKeyRequest |
buildPartial() |
UpdateHmacKeyRequest.Builder |
clear() |
UpdateHmacKeyRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
UpdateHmacKeyRequest.Builder |
clearHmacKey()
Required.
|
UpdateHmacKeyRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
UpdateHmacKeyRequest.Builder |
clearUpdateMask()
Update mask for hmac_key.
|
UpdateHmacKeyRequest.Builder |
clone() |
UpdateHmacKeyRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
HmacKeyMetadata |
getHmacKey()
Required.
|
HmacKeyMetadata.Builder |
getHmacKeyBuilder()
Required.
|
HmacKeyMetadataOrBuilder |
getHmacKeyOrBuilder()
Required.
|
com.google.protobuf.FieldMask |
getUpdateMask()
Update mask for hmac_key.
|
com.google.protobuf.FieldMask.Builder |
getUpdateMaskBuilder()
Update mask for hmac_key.
|
com.google.protobuf.FieldMaskOrBuilder |
getUpdateMaskOrBuilder()
Update mask for hmac_key.
|
boolean |
hasHmacKey()
Required.
|
boolean |
hasUpdateMask()
Update mask for hmac_key.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
UpdateHmacKeyRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UpdateHmacKeyRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
UpdateHmacKeyRequest.Builder |
mergeFrom(UpdateHmacKeyRequest other) |
UpdateHmacKeyRequest.Builder |
mergeHmacKey(HmacKeyMetadata value)
Required.
|
UpdateHmacKeyRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateHmacKeyRequest.Builder |
mergeUpdateMask(com.google.protobuf.FieldMask value)
Update mask for hmac_key.
|
UpdateHmacKeyRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UpdateHmacKeyRequest.Builder |
setHmacKey(HmacKeyMetadata.Builder builderForValue)
Required.
|
UpdateHmacKeyRequest.Builder |
setHmacKey(HmacKeyMetadata value)
Required.
|
UpdateHmacKeyRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
UpdateHmacKeyRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UpdateHmacKeyRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Update mask for hmac_key.
|
UpdateHmacKeyRequest.Builder |
setUpdateMask(com.google.protobuf.FieldMask value)
Update mask for hmac_key.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public UpdateHmacKeyRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public UpdateHmacKeyRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public UpdateHmacKeyRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder mergeFrom(UpdateHmacKeyRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public UpdateHmacKeyRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<UpdateHmacKeyRequest.Builder>
IOException
public boolean hasHmacKey()
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
hasHmacKey
in interface UpdateHmacKeyRequestOrBuilder
public HmacKeyMetadata getHmacKey()
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
getHmacKey
in interface UpdateHmacKeyRequestOrBuilder
public UpdateHmacKeyRequest.Builder setHmacKey(HmacKeyMetadata value)
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
public UpdateHmacKeyRequest.Builder setHmacKey(HmacKeyMetadata.Builder builderForValue)
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
public UpdateHmacKeyRequest.Builder mergeHmacKey(HmacKeyMetadata value)
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
public UpdateHmacKeyRequest.Builder clearHmacKey()
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
public HmacKeyMetadata.Builder getHmacKeyBuilder()
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
public HmacKeyMetadataOrBuilder getHmacKeyOrBuilder()
Required. The HMAC key to update. If present, the hmac_key's `id` field will be used to identify the key. Otherwise, the hmac_key's access_id and project fields will be used to identify the key.
.google.storage.v2.HmacKeyMetadata hmac_key = 1 [(.google.api.field_behavior) = REQUIRED];
getHmacKeyOrBuilder
in interface UpdateHmacKeyRequestOrBuilder
public boolean hasUpdateMask()
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
hasUpdateMask
in interface UpdateHmacKeyRequestOrBuilder
public com.google.protobuf.FieldMask getUpdateMask()
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
getUpdateMask
in interface UpdateHmacKeyRequestOrBuilder
public UpdateHmacKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
public UpdateHmacKeyRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
public UpdateHmacKeyRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
public UpdateHmacKeyRequest.Builder clearUpdateMask()
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
Update mask for hmac_key. Not specifying any fields will mean only the `state` field is updated to the value specified in `hmac_key`.
.google.protobuf.FieldMask update_mask = 3;
getUpdateMaskOrBuilder
in interface UpdateHmacKeyRequestOrBuilder
public final UpdateHmacKeyRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
public final UpdateHmacKeyRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<UpdateHmacKeyRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.