Class UpdateCryptoKeyRequest.Builder (2.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateCryptoKeyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder
Overrides

build()

public UpdateCryptoKeyRequest build()
Returns
TypeDescription
UpdateCryptoKeyRequest

buildPartial()

public UpdateCryptoKeyRequest buildPartial()
Returns
TypeDescription
UpdateCryptoKeyRequest

clear()

public UpdateCryptoKeyRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
UpdateCryptoKeyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateCryptoKeyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCryptoKeyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
UpdateCryptoKeyRequest.Builder

clone()

public UpdateCryptoKeyRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
CryptoKeyOrBuilder

getDefaultInstanceForType()

public UpdateCryptoKeyRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCryptoKeyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
FieldMaskOrBuilder

hasCryptoKey()

public boolean hasCryptoKey()

Required. CryptoKey with updated values.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueCryptoKey
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder

mergeFrom(UpdateCryptoKeyRequest other)

public UpdateCryptoKeyRequest.Builder mergeFrom(UpdateCryptoKeyRequest other)
Parameter
NameDescription
otherUpdateCryptoKeyRequest
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateCryptoKeyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UpdateCryptoKeyRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCryptoKeyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
valueCryptoKey
Returns
TypeDescription
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
NameDescription
builderForValueCryptoKey.Builder
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateCryptoKeyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder
Overrides

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

public UpdateCryptoKeyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCryptoKeyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueFieldMask
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateCryptoKeyRequest.Builder