Class UpdateCryptoKeyRequest.Builder (2.50.0)

public static final class UpdateCryptoKeyRequest.Builder extends GeneratedMessageV3.Builder<UpdateCryptoKeyRequest.Builder> implements UpdateCryptoKeyRequestOrBuilder

Request message for KeyManagementService.UpdateCryptoKey.

Protobuf type google.cloud.kms.v1.UpdateCryptoKeyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateCryptoKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

build()

public UpdateCryptoKeyRequest build()
Returns
Type Description
UpdateCryptoKeyRequest

buildPartial()

public UpdateCryptoKeyRequest buildPartial()
Returns
Type Description
UpdateCryptoKeyRequest

clear()

public UpdateCryptoKeyRequest.Builder clear()
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

clearCryptoKey()

public UpdateCryptoKeyRequest.Builder clearCryptoKey()

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCryptoKeyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateCryptoKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCryptoKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

clearUpdateMask()

public UpdateCryptoKeyRequest.Builder clearUpdateMask()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateCryptoKeyRequest.Builder

clone()

public UpdateCryptoKeyRequest.Builder clone()
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

getCryptoKey()

public CryptoKey getCryptoKey()

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CryptoKey

The cryptoKey.

getCryptoKeyBuilder()

public CryptoKey.Builder getCryptoKeyBuilder()

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CryptoKey.Builder

getCryptoKeyOrBuilder()

public CryptoKeyOrBuilder getCryptoKeyOrBuilder()

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CryptoKeyOrBuilder

getDefaultInstanceForType()

public UpdateCryptoKeyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateCryptoKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasCryptoKey()

public boolean hasCryptoKey()

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the cryptoKey field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCryptoKey(CryptoKey value)

public UpdateCryptoKeyRequest.Builder mergeCryptoKey(CryptoKey value)

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CryptoKey
Returns
Type Description
UpdateCryptoKeyRequest.Builder

mergeFrom(UpdateCryptoKeyRequest other)

public UpdateCryptoKeyRequest.Builder mergeFrom(UpdateCryptoKeyRequest other)
Parameter
Name Description
other UpdateCryptoKeyRequest
Returns
Type Description
UpdateCryptoKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateCryptoKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateCryptoKeyRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCryptoKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateCryptoKeyRequest.Builder mergeUpdateMask(FieldMask value)

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCryptoKeyRequest.Builder

setCryptoKey(CryptoKey value)

public UpdateCryptoKeyRequest.Builder setCryptoKey(CryptoKey value)

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CryptoKey
Returns
Type Description
UpdateCryptoKeyRequest.Builder

setCryptoKey(CryptoKey.Builder builderForValue)

public UpdateCryptoKeyRequest.Builder setCryptoKey(CryptoKey.Builder builderForValue)

Required. CryptoKey with updated values.

.google.cloud.kms.v1.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue CryptoKey.Builder
Returns
Type Description
UpdateCryptoKeyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCryptoKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateCryptoKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCryptoKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateCryptoKeyRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateCryptoKeyRequest.Builder setUpdateMask(FieldMask value)

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateCryptoKeyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCryptoKeyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. List of fields to be updated in this request.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateCryptoKeyRequest.Builder