Class VerifyAttestationRequest.Builder (0.2.0)

public static final class VerifyAttestationRequest.Builder extends GeneratedMessageV3.Builder<VerifyAttestationRequest.Builder> implements VerifyAttestationRequestOrBuilder

A request for an OIDC token, providing all the necessary information needed for this service to verify the plaform state of the requestor.

Protobuf type google.cloud.confidentialcomputing.v1.VerifyAttestationRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VerifyAttestationRequest build()
Returns
TypeDescription
VerifyAttestationRequest

buildPartial()

public VerifyAttestationRequest buildPartial()
Returns
TypeDescription
VerifyAttestationRequest

clear()

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

clearChallenge()

public VerifyAttestationRequest.Builder clearChallenge()

Required. The name of the Challenge whose nonce was used to generate the attestation, in the format projects/*/locations/*/challenges/*. The provided Challenge will be consumed, and cannot be used again.

string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
VerifyAttestationRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcpCredentials()

public VerifyAttestationRequest.Builder clearGcpCredentials()

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VerifyAttestationRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTpmAttestation()

public VerifyAttestationRequest.Builder clearTpmAttestation()

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
VerifyAttestationRequest.Builder

clone()

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

getChallenge()

public String getChallenge()

Required. The name of the Challenge whose nonce was used to generate the attestation, in the format projects/*/locations/*/challenges/*. The provided Challenge will be consumed, and cannot be used again.

string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The challenge.

getChallengeBytes()

public ByteString getChallengeBytes()

Required. The name of the Challenge whose nonce was used to generate the attestation, in the format projects/*/locations/*/challenges/*. The provided Challenge will be consumed, and cannot be used again.

string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for challenge.

getDefaultInstanceForType()

public VerifyAttestationRequest getDefaultInstanceForType()
Returns
TypeDescription
VerifyAttestationRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcpCredentials()

public GcpCredentials getGcpCredentials()

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GcpCredentials

The gcpCredentials.

getGcpCredentialsBuilder()

public GcpCredentials.Builder getGcpCredentialsBuilder()

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GcpCredentials.Builder

getGcpCredentialsOrBuilder()

public GcpCredentialsOrBuilder getGcpCredentialsOrBuilder()

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GcpCredentialsOrBuilder

getTpmAttestation()

public TpmAttestation getTpmAttestation()

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TpmAttestation

The tpmAttestation.

getTpmAttestationBuilder()

public TpmAttestation.Builder getTpmAttestationBuilder()

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TpmAttestation.Builder

getTpmAttestationOrBuilder()

public TpmAttestationOrBuilder getTpmAttestationOrBuilder()

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TpmAttestationOrBuilder

hasGcpCredentials()

public boolean hasGcpCredentials()

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the gcpCredentials field is set.

hasTpmAttestation()

public boolean hasTpmAttestation()

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the tpmAttestation field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VerifyAttestationRequest other)

public VerifyAttestationRequest.Builder mergeFrom(VerifyAttestationRequest other)
Parameter
NameDescription
otherVerifyAttestationRequest
Returns
TypeDescription
VerifyAttestationRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcpCredentials(GcpCredentials value)

public VerifyAttestationRequest.Builder mergeGcpCredentials(GcpCredentials value)

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueGcpCredentials
Returns
TypeDescription
VerifyAttestationRequest.Builder

mergeTpmAttestation(TpmAttestation value)

public VerifyAttestationRequest.Builder mergeTpmAttestation(TpmAttestation value)

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTpmAttestation
Returns
TypeDescription
VerifyAttestationRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setChallenge(String value)

public VerifyAttestationRequest.Builder setChallenge(String value)

Required. The name of the Challenge whose nonce was used to generate the attestation, in the format projects/*/locations/*/challenges/*. The provided Challenge will be consumed, and cannot be used again.

string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The challenge to set.

Returns
TypeDescription
VerifyAttestationRequest.Builder

This builder for chaining.

setChallengeBytes(ByteString value)

public VerifyAttestationRequest.Builder setChallengeBytes(ByteString value)

Required. The name of the Challenge whose nonce was used to generate the attestation, in the format projects/*/locations/*/challenges/*. The provided Challenge will be consumed, and cannot be used again.

string challenge = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for challenge to set.

Returns
TypeDescription
VerifyAttestationRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcpCredentials(GcpCredentials value)

public VerifyAttestationRequest.Builder setGcpCredentials(GcpCredentials value)

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueGcpCredentials
Returns
TypeDescription
VerifyAttestationRequest.Builder

setGcpCredentials(GcpCredentials.Builder builderForValue)

public VerifyAttestationRequest.Builder setGcpCredentials(GcpCredentials.Builder builderForValue)

Optional. Credentials used to populate the "emails" claim in the claims_token.

.google.cloud.confidentialcomputing.v1.GcpCredentials gcp_credentials = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueGcpCredentials.Builder
Returns
TypeDescription
VerifyAttestationRequest.Builder

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

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

setTpmAttestation(TpmAttestation value)

public VerifyAttestationRequest.Builder setTpmAttestation(TpmAttestation value)

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTpmAttestation
Returns
TypeDescription
VerifyAttestationRequest.Builder

setTpmAttestation(TpmAttestation.Builder builderForValue)

public VerifyAttestationRequest.Builder setTpmAttestation(TpmAttestation.Builder builderForValue)

Required. The TPM-specific data provided by the attesting platform, used to populate any of the claims regarding platform state.

.google.cloud.confidentialcomputing.v1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTpmAttestation.Builder
Returns
TypeDescription
VerifyAttestationRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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