Class Challenge.Builder (0.46.0)

publicstaticfinalclass Challenge.BuilderextendsGeneratedMessageV3.Builder<Challenge.Builder>implementsChallengeOrBuilder

A Challenge from the server used to guarantee freshness of attestations

Protobuf type google.cloud.confidentialcomputing.v1alpha1.Challenge

Implements

ChallengeOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicChallenge.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Challenge.Builder
Overrides

build()

publicChallengebuild()
Returns
Type Description
Challenge

buildPartial()

publicChallengebuildPartial()
Returns
Type Description
Challenge

clear()

publicChallenge.Builderclear()
Returns
Type Description
Challenge.Builder
Overrides

clearCreateTime()

publicChallenge.BuilderclearCreateTime()

Output only. The time at which this Challenge was created

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

Returns
Type Description
Challenge.Builder

clearExpireTime()

publicChallenge.BuilderclearExpireTime()

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
Type Description
Challenge.Builder

clearField(Descriptors.FieldDescriptor field)

publicChallenge.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Challenge.Builder
Overrides

clearName()

publicChallenge.BuilderclearName()

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

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

Returns
Type Description
Challenge.Builder

This builder for chaining.

clearNonce()

publicChallenge.BuilderclearNonce()

Output only. Random data which should be used when calling TPM2_Quote.

bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Challenge.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicChallenge.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Challenge.Builder
Overrides

clearUsed()

publicChallenge.BuilderclearUsed()

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

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

Returns
Type Description
Challenge.Builder

This builder for chaining.

clone()

publicChallenge.Builderclone()
Returns
Type Description
Challenge.Builder
Overrides

getCreateTime()

publicTimestampgetCreateTime()

Output only. The time at which this Challenge was created

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

Output only. The time at which this Challenge was created

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. The time at which this Challenge was created

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicChallengegetDefaultInstanceForType()
Returns
Type Description
Challenge

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExpireTime()

publicTimestampgetExpireTime()

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
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

publicTimestamp.BuildergetExpireTimeBuilder()

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
Type Description
Builder

getExpireTimeOrBuilder()

publicTimestampOrBuildergetExpireTimeOrBuilder()

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
Type Description
TimestampOrBuilder

getName()

publicStringgetName()

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

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

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

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

Returns
Type Description
ByteString

The bytes for name.

getNonce()

publicByteStringgetNonce()

Output only. Random data which should be used when calling TPM2_Quote.

bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The nonce.

getUsed()

publicbooleangetUsed()

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

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

Returns
Type Description
boolean

The used.

hasCreateTime()

publicbooleanhasCreateTime()

Output only. The time at which this Challenge was created

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasExpireTime()

publicbooleanhasExpireTime()

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
Type Description
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

publicChallenge.BuildermergeCreateTime(Timestampvalue)

Output only. The time at which this Challenge was created

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Challenge.Builder

mergeExpireTime(Timestamp value)

publicChallenge.BuildermergeExpireTime(Timestampvalue)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Challenge.Builder

mergeFrom(Challenge other)

publicChallenge.BuildermergeFrom(Challengeother)
Parameter
Name Description
other Challenge
Returns
Type Description
Challenge.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicChallenge.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicChallenge.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Challenge.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalChallenge.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Challenge.Builder
Overrides

setCreateTime(Timestamp value)

publicChallenge.BuildersetCreateTime(Timestampvalue)

Output only. The time at which this Challenge was created

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

Parameter
Name Description
value Timestamp
Returns
Type Description
Challenge.Builder

setCreateTime(Timestamp.Builder builderForValue)

publicChallenge.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

Output only. The time at which this Challenge was created

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Challenge.Builder

setExpireTime(Timestamp value)

publicChallenge.BuildersetExpireTime(Timestampvalue)

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];

Parameter
Name Description
value Timestamp
Returns
Type Description
Challenge.Builder

setExpireTime(Timestamp.Builder builderForValue)

publicChallenge.BuildersetExpireTime(Timestamp.BuilderbuilderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Challenge.Builder

setField(Descriptors.FieldDescriptor field, Object value)

publicChallenge.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Challenge.Builder
Overrides

setName(String value)

publicChallenge.BuildersetName(Stringvalue)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Challenge.Builder

This builder for chaining.

setNameBytes(ByteString value)

publicChallenge.BuildersetNameBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Challenge.Builder

This builder for chaining.

setNonce(ByteString value)

publicChallenge.BuildersetNonce(ByteStringvalue)

Output only. Random data which should be used when calling TPM2_Quote.

bytes nonce = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The nonce to set.

Returns
Type Description
Challenge.Builder

This builder for chaining.

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

publicChallenge.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Challenge.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalChallenge.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Challenge.Builder
Overrides

setUsed(boolean value)

publicChallenge.BuildersetUsed(booleanvalue)

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

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

Parameter
Name Description
value boolean

The used to set.

Returns
Type Description
Challenge.Builder

This builder for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.