Class KeyOperationAttestation.Builder (2.52.0)

public static final class KeyOperationAttestation.Builder extends GeneratedMessageV3.Builder<KeyOperationAttestation.Builder> implements KeyOperationAttestationOrBuilder

Contains an HSM-generated attestation about a key operation. For more information, see Verifying attestations.

Protobuf type google.cloud.kms.v1.KeyOperationAttestation

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KeyOperationAttestation build()
Returns
Type Description
KeyOperationAttestation

buildPartial()

public KeyOperationAttestation buildPartial()
Returns
Type Description
KeyOperationAttestation

clear()

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

clearCertChains()

public KeyOperationAttestation.Builder clearCertChains()

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.Builder

clearContent()

public KeyOperationAttestation.Builder clearContent()

Output only. The attestation data provided by the HSM when the key operation was performed.

bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFormat()

public KeyOperationAttestation.Builder clearFormat()

Output only. The format of the attestation data.

.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCertChains()

public KeyOperationAttestation.CertificateChains getCertChains()

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.CertificateChains

The certChains.

getCertChainsBuilder()

public KeyOperationAttestation.CertificateChains.Builder getCertChainsBuilder()

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.CertificateChains.Builder

getCertChainsOrBuilder()

public KeyOperationAttestation.CertificateChainsOrBuilder getCertChainsOrBuilder()

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.CertificateChainsOrBuilder

getContent()

public ByteString getContent()

Output only. The attestation data provided by the HSM when the key operation was performed.

bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The content.

getDefaultInstanceForType()

public KeyOperationAttestation getDefaultInstanceForType()
Returns
Type Description
KeyOperationAttestation

getDescriptorForType()

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

getFormat()

public KeyOperationAttestation.AttestationFormat getFormat()

Output only. The format of the attestation data.

.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KeyOperationAttestation.AttestationFormat

The format.

getFormatValue()

public int getFormatValue()

Output only. The format of the attestation data.

.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for format.

hasCertChains()

public boolean hasCertChains()

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the certChains field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCertChains(KeyOperationAttestation.CertificateChains value)

public KeyOperationAttestation.Builder mergeCertChains(KeyOperationAttestation.CertificateChains value)

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KeyOperationAttestation.CertificateChains
Returns
Type Description
KeyOperationAttestation.Builder

mergeFrom(KeyOperationAttestation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCertChains(KeyOperationAttestation.CertificateChains value)

public KeyOperationAttestation.Builder setCertChains(KeyOperationAttestation.CertificateChains value)

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KeyOperationAttestation.CertificateChains
Returns
Type Description
KeyOperationAttestation.Builder

setCertChains(KeyOperationAttestation.CertificateChains.Builder builderForValue)

public KeyOperationAttestation.Builder setCertChains(KeyOperationAttestation.CertificateChains.Builder builderForValue)

Output only. The certificate chains needed to validate the attestation

.google.cloud.kms.v1.KeyOperationAttestation.CertificateChains cert_chains = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue KeyOperationAttestation.CertificateChains.Builder
Returns
Type Description
KeyOperationAttestation.Builder

setContent(ByteString value)

public KeyOperationAttestation.Builder setContent(ByteString value)

Output only. The attestation data provided by the HSM when the key operation was performed.

bytes content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The content to set.

Returns
Type Description
KeyOperationAttestation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormat(KeyOperationAttestation.AttestationFormat value)

public KeyOperationAttestation.Builder setFormat(KeyOperationAttestation.AttestationFormat value)

Output only. The format of the attestation data.

.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KeyOperationAttestation.AttestationFormat

The format to set.

Returns
Type Description
KeyOperationAttestation.Builder

This builder for chaining.

setFormatValue(int value)

public KeyOperationAttestation.Builder setFormatValue(int value)

Output only. The format of the attestation data.

.google.cloud.kms.v1.KeyOperationAttestation.AttestationFormat format = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for format to set.

Returns
Type Description
KeyOperationAttestation.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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