Class Challenge (0.25.0)

public final class Challenge extends GeneratedMessageV3 implements ChallengeOrBuilder

A Challenge from the server used to guarantee freshness of attestations

Protobuf type google.cloud.confidentialcomputing.v1.Challenge

Implements

ChallengeOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

EXPIRE_TIME_FIELD_NUMBER

public static final int EXPIRE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

TPM_NONCE_FIELD_NUMBER

public static final int TPM_NONCE_FIELD_NUMBER
Field Value
TypeDescription
int

USED_FIELD_NUMBER

public static final int USED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Challenge getDefaultInstance()
Returns
TypeDescription
Challenge

getDescriptor()

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

newBuilder()

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

newBuilder(Challenge prototype)

public static Challenge.Builder newBuilder(Challenge prototype)
Parameter
NameDescription
prototypeChallenge
Returns
TypeDescription
Challenge.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The time at which this Challenge was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time at which this Challenge was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Challenge getDefaultInstanceForType()
Returns
TypeDescription
Challenge

getExpireTime()

public Timestamp getExpireTime()

Output only. The time at which this Challenge will no longer be usable. It is also the expiration time for any tokens generated from this Challenge.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The time at which this Challenge will no longer be usable. It is also the expiration time for any tokens generated from this Challenge.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Output only. The resource name for this Challenge in the format projects/*/locations/*/challenges/*

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name for this Challenge in the format projects/*/locations/*/challenges/*

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTpmNonce()

public String getTpmNonce()

Output only. Identical to nonce, but as a string.

string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The tpmNonce.

getTpmNonceBytes()

public ByteString getTpmNonceBytes()

Output only. Identical to nonce, but as a string.

string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for tpmNonce.

getUsed()

public boolean getUsed()

Output only. Indicates if this challenge has been used to generate a token.

bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The used.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time at which this Challenge was created

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Output only. The time at which this Challenge will no longer be usable. It is also the expiration time for any tokens generated from this Challenge.

.google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime 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 Challenge.Builder newBuilderForType()
Returns
TypeDescription
Challenge.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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