Class KeyOperationAttestation.Builder (2.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KeyOperationAttestation build()
Returns
TypeDescription
KeyOperationAttestation

buildPartial()

public KeyOperationAttestation buildPartial()
Returns
TypeDescription
KeyOperationAttestation

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public KeyOperationAttestation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
KeyOperationAttestation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The content.

getDefaultInstanceForType()

public KeyOperationAttestation getDefaultInstanceForType()
Returns
TypeDescription
KeyOperationAttestation

getDescriptorForType()

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

Whether the certChains field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueKeyOperationAttestation.CertificateChains
Returns
TypeDescription
KeyOperationAttestation.Builder

mergeFrom(KeyOperationAttestation other)

public KeyOperationAttestation.Builder mergeFrom(KeyOperationAttestation other)
Parameter
NameDescription
otherKeyOperationAttestation
Returns
TypeDescription
KeyOperationAttestation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KeyOperationAttestation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueKeyOperationAttestation.CertificateChains
Returns
TypeDescription
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
NameDescription
builderForValueKeyOperationAttestation.CertificateChains.Builder
Returns
TypeDescription
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
NameDescription
valueByteString

The content to set.

Returns
TypeDescription
KeyOperationAttestation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public KeyOperationAttestation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueKeyOperationAttestation.AttestationFormat

The format to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KeyOperationAttestation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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