Class VerifyAttestationRequest (0.19.0)

public final class VerifyAttestationRequest extends GeneratedMessageV3 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.v1alpha1.VerifyAttestationRequest

Static Fields

CHALLENGE_FIELD_NUMBER

public static final int CHALLENGE_FIELD_NUMBER
Field Value
TypeDescription
int

GCP_CREDENTIALS_FIELD_NUMBER

public static final int GCP_CREDENTIALS_FIELD_NUMBER
Field Value
TypeDescription
int

TPM_ATTESTATION_FIELD_NUMBER

public static final int TPM_ATTESTATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VerifyAttestationRequest getDefaultInstance()
Returns
TypeDescription
VerifyAttestationRequest

getDescriptor()

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

newBuilder()

public static VerifyAttestationRequest.Builder newBuilder()
Returns
TypeDescription
VerifyAttestationRequest.Builder

newBuilder(VerifyAttestationRequest prototype)

public static VerifyAttestationRequest.Builder newBuilder(VerifyAttestationRequest prototype)
Parameter
NameDescription
prototypeVerifyAttestationRequest
Returns
TypeDescription
VerifyAttestationRequest.Builder

parseDelimitedFrom(InputStream input)

public static VerifyAttestationRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VerifyAttestationRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VerifyAttestationRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VerifyAttestationRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VerifyAttestationRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VerifyAttestationRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VerifyAttestationRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VerifyAttestationRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VerifyAttestationRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VerifyAttestationRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VerifyAttestationRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VerifyAttestationRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyAttestationRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VerifyAttestationRequest> parser()
Returns
TypeDescription
Parser<VerifyAttestationRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getGcpCredentials()

public GcpCredentials getGcpCredentials()

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

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

Returns
TypeDescription
GcpCredentials

The gcpCredentials.

getGcpCredentialsOrBuilder()

public GcpCredentialsOrBuilder getGcpCredentialsOrBuilder()

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

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

Returns
TypeDescription
GcpCredentialsOrBuilder

getParserForType()

public Parser<VerifyAttestationRequest> getParserForType()
Returns
TypeDescription
Parser<VerifyAttestationRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TpmAttestation

The tpmAttestation.

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.v1alpha1.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.v1alpha1.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.v1alpha1.TpmAttestation tpm_attestation = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the tpmAttestation field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VerifyAttestationRequest.Builder newBuilderForType()
Returns
TypeDescription
VerifyAttestationRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VerifyAttestationRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VerifyAttestationRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VerifyAttestationRequest.Builder toBuilder()
Returns
TypeDescription
VerifyAttestationRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException