Class UpdateCryptoKeyVersionRequest.Builder (2.22.0)

public static final class UpdateCryptoKeyVersionRequest.Builder extends GeneratedMessageV3.Builder<UpdateCryptoKeyVersionRequest.Builder> implements UpdateCryptoKeyVersionRequestOrBuilder

Request message for KeyManagementService.UpdateCryptoKeyVersion.

Protobuf type google.cloud.kms.v1.UpdateCryptoKeyVersionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateCryptoKeyVersionRequest build()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest

buildPartial()

public UpdateCryptoKeyVersionRequest buildPartial()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest

clear()

public UpdateCryptoKeyVersionRequest.Builder clear()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder
Overrides

clearCryptoKeyVersion()

public UpdateCryptoKeyVersionRequest.Builder clearCryptoKeyVersion()

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateCryptoKeyVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder
Overrides

clearUpdateMask()

public UpdateCryptoKeyVersionRequest.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
UpdateCryptoKeyVersionRequest.Builder

clone()

public UpdateCryptoKeyVersionRequest.Builder clone()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder
Overrides

getCryptoKeyVersion()

public CryptoKeyVersion getCryptoKeyVersion()

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CryptoKeyVersion

The cryptoKeyVersion.

getCryptoKeyVersionBuilder()

public CryptoKeyVersion.Builder getCryptoKeyVersionBuilder()

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CryptoKeyVersion.Builder

getCryptoKeyVersionOrBuilder()

public CryptoKeyVersionOrBuilder getCryptoKeyVersionOrBuilder()

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CryptoKeyVersionOrBuilder

getDefaultInstanceForType()

public UpdateCryptoKeyVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateCryptoKeyVersionRequest

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

hasCryptoKeyVersion()

public boolean hasCryptoKeyVersion()

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the cryptoKeyVersion 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

mergeCryptoKeyVersion(CryptoKeyVersion value)

public UpdateCryptoKeyVersionRequest.Builder mergeCryptoKeyVersion(CryptoKeyVersion value)

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCryptoKeyVersion
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder

mergeFrom(UpdateCryptoKeyVersionRequest other)

public UpdateCryptoKeyVersionRequest.Builder mergeFrom(UpdateCryptoKeyVersionRequest other)
Parameter
NameDescription
otherUpdateCryptoKeyVersionRequest
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCryptoKeyVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateCryptoKeyVersionRequest.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
UpdateCryptoKeyVersionRequest.Builder

setCryptoKeyVersion(CryptoKeyVersion value)

public UpdateCryptoKeyVersionRequest.Builder setCryptoKeyVersion(CryptoKeyVersion value)

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueCryptoKeyVersion
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder

setCryptoKeyVersion(CryptoKeyVersion.Builder builderForValue)

public UpdateCryptoKeyVersionRequest.Builder setCryptoKeyVersion(CryptoKeyVersion.Builder builderForValue)

Required. CryptoKeyVersion with updated values.

.google.cloud.kms.v1.CryptoKeyVersion crypto_key_version = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueCryptoKeyVersion.Builder
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateCryptoKeyVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UpdateCryptoKeyVersionRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateCryptoKeyVersionRequest.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
UpdateCryptoKeyVersionRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateCryptoKeyVersionRequest.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
UpdateCryptoKeyVersionRequest.Builder