Class VerifyAttestationRequest.Builder (0.18.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.

clearConfidentialSpaceInfo()

public VerifyAttestationRequest.Builder clearConfidentialSpaceInfo()

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VerifyAttestationRequest.Builder

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

clearTokenOptions()

public VerifyAttestationRequest.Builder clearTokenOptions()

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
VerifyAttestationRequest.Builder

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.

getConfidentialSpaceInfo()

public ConfidentialSpaceInfo getConfidentialSpaceInfo()

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConfidentialSpaceInfo

The confidentialSpaceInfo.

getConfidentialSpaceInfoBuilder()

public ConfidentialSpaceInfo.Builder getConfidentialSpaceInfoBuilder()

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConfidentialSpaceInfo.Builder

getConfidentialSpaceInfoOrBuilder()

public ConfidentialSpaceInfoOrBuilder getConfidentialSpaceInfoOrBuilder()

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ConfidentialSpaceInfoOrBuilder

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

getTokenOptions()

public TokenOptions getTokenOptions()

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TokenOptions

The tokenOptions.

getTokenOptionsBuilder()

public TokenOptions.Builder getTokenOptionsBuilder()

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TokenOptions.Builder

getTokenOptionsOrBuilder()

public TokenOptionsOrBuilder getTokenOptionsOrBuilder()

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TokenOptionsOrBuilder

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

hasConfidentialSpaceInfo()

public boolean hasConfidentialSpaceInfo()

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the confidentialSpaceInfo field is set.

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.

hasTokenOptions()

public boolean hasTokenOptions()

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

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

mergeConfidentialSpaceInfo(ConfidentialSpaceInfo value)

public VerifyAttestationRequest.Builder mergeConfidentialSpaceInfo(ConfidentialSpaceInfo value)

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueConfidentialSpaceInfo
Returns
TypeDescription
VerifyAttestationRequest.Builder

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

mergeTokenOptions(TokenOptions value)

public VerifyAttestationRequest.Builder mergeTokenOptions(TokenOptions value)

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTokenOptions
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.

setConfidentialSpaceInfo(ConfidentialSpaceInfo value)

public VerifyAttestationRequest.Builder setConfidentialSpaceInfo(ConfidentialSpaceInfo value)

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueConfidentialSpaceInfo
Returns
TypeDescription
VerifyAttestationRequest.Builder

setConfidentialSpaceInfo(ConfidentialSpaceInfo.Builder builderForValue)

public VerifyAttestationRequest.Builder setConfidentialSpaceInfo(ConfidentialSpaceInfo.Builder builderForValue)

Optional. Optional information related to the Confidential Space TEE.

.google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo confidential_space_info = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueConfidentialSpaceInfo.Builder
Returns
TypeDescription
VerifyAttestationRequest.Builder

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

setTokenOptions(TokenOptions value)

public VerifyAttestationRequest.Builder setTokenOptions(TokenOptions value)

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTokenOptions
Returns
TypeDescription
VerifyAttestationRequest.Builder

setTokenOptions(TokenOptions.Builder builderForValue)

public VerifyAttestationRequest.Builder setTokenOptions(TokenOptions.Builder builderForValue)

Optional. A collection of optional, workload-specified claims that modify the token output.

.google.cloud.confidentialcomputing.v1.TokenOptions token_options = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueTokenOptions.Builder
Returns
TypeDescription
VerifyAttestationRequest.Builder

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