Class GceShieldedIdentity.Builder (0.69.0)

public static final class GceShieldedIdentity.Builder extends GeneratedMessage.Builder<GceShieldedIdentity.Builder> implements GceShieldedIdentityOrBuilder

GceShieldedIdentity contains information about a Compute Engine instance.

Protobuf type google.cloud.confidentialcomputing.v1.GceShieldedIdentity

Static Methods

getDescriptor()

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

Methods

addAkCertChain(ByteString value)

public GceShieldedIdentity.Builder addAkCertChain(ByteString value)

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The akCertChain to add.

Returns
Type Description
GceShieldedIdentity.Builder

This builder for chaining.

addAllAkCertChain(Iterable<? extends ByteString> values)

public GceShieldedIdentity.Builder addAllAkCertChain(Iterable<? extends ByteString> values)

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.protobuf.ByteString>

The akCertChain to add.

Returns
Type Description
GceShieldedIdentity.Builder

This builder for chaining.

build()

public GceShieldedIdentity build()
Returns
Type Description
GceShieldedIdentity

buildPartial()

public GceShieldedIdentity buildPartial()
Returns
Type Description
GceShieldedIdentity

clear()

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

clearAkCert()

public GceShieldedIdentity.Builder clearAkCert()

Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise known as an AK or a TPM restricted signing key) used to generate the quotes.

bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GceShieldedIdentity.Builder

This builder for chaining.

clearAkCertChain()

public GceShieldedIdentity.Builder clearAkCertChain()

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GceShieldedIdentity.Builder

This builder for chaining.

getAkCert()

public ByteString getAkCert()

Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise known as an AK or a TPM restricted signing key) used to generate the quotes.

bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The akCert.

getAkCertChain(int index)

public ByteString getAkCertChain(int index)

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ByteString

The akCertChain at the given index.

getAkCertChainCount()

public int getAkCertChainCount()

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of akCertChain.

getAkCertChainList()

public List<ByteString> getAkCertChainList()

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ByteString>

A list containing the akCertChain.

getDefaultInstanceForType()

public GceShieldedIdentity getDefaultInstanceForType()
Returns
Type Description
GceShieldedIdentity

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GceShieldedIdentity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAkCert(ByteString value)

public GceShieldedIdentity.Builder setAkCert(ByteString value)

Optional. DER-encoded X.509 certificate of the Attestation Key (otherwise known as an AK or a TPM restricted signing key) used to generate the quotes.

bytes ak_cert = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The akCert to set.

Returns
Type Description
GceShieldedIdentity.Builder

This builder for chaining.

setAkCertChain(int index, ByteString value)

public GceShieldedIdentity.Builder setAkCertChain(int index, ByteString value)

Optional. List of DER-encoded X.509 certificates which, together with the ak_cert, chain back to a trusted Root Certificate.

repeated bytes ak_cert_chain = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value ByteString

The akCertChain to set.

Returns
Type Description
GceShieldedIdentity.Builder

This builder for chaining.