Class Challenge.Builder (0.28.0)

public static final class Challenge.Builder extends GeneratedMessageV3.Builder<Challenge.Builder> implements ChallengeOrBuilder

A Challenge from the server used to guarantee freshness of attestations

Protobuf type google.cloud.confidentialcomputing.v1alpha1.Challenge

Implements

ChallengeOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Challenge.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Challenge.Builder
Overrides

build()

public Challenge build()
Returns
Type Description
Challenge

buildPartial()

public Challenge buildPartial()
Returns
Type Description
Challenge

clear()

public Challenge.Builder clear()
Returns
Type Description
Challenge.Builder
Overrides

clearCreateTime()

public Challenge.Builder clearCreateTime()

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()

public Challenge.Builder clearExpireTime()

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)

public Challenge.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Challenge.Builder
Overrides

clearName()

public Challenge.Builder clearName()

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()

public Challenge.Builder clearNonce()

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)

public Challenge.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Challenge.Builder
Overrides

clearUsed()

public Challenge.Builder clearUsed()

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()

public Challenge.Builder clone()
Returns
Type Description
Challenge.Builder
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
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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()

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

getDefaultInstanceForType()

public Challenge getDefaultInstanceForType()
Returns
Type Description
Challenge

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

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()

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

The bytes for name.

getNonce()

public ByteString getNonce()

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()

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

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Challenge.Builder mergeCreateTime(Timestamp value)

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)

public Challenge.Builder mergeExpireTime(Timestamp value)

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)

public Challenge.Builder mergeFrom(Challenge other)
Parameter
Name Description
other Challenge
Returns
Type Description
Challenge.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Challenge.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Challenge.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Challenge.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Challenge.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Challenge.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Challenge.Builder
Overrides

setCreateTime(Timestamp value)

public Challenge.Builder setCreateTime(Timestamp value)

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)

public Challenge.Builder setCreateTime(Timestamp.Builder builderForValue)

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)

public Challenge.Builder setExpireTime(Timestamp value)

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)

public Challenge.Builder setExpireTime(Timestamp.Builder builderForValue)

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)

public Challenge.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Challenge.Builder
Overrides

setName(String value)

public Challenge.Builder setName(String value)

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)

public Challenge.Builder setNameBytes(ByteString value)

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)

public Challenge.Builder setNonce(ByteString value)

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)

public Challenge.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Challenge.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Challenge.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Challenge.Builder
Overrides

setUsed(boolean value)

public Challenge.Builder setUsed(boolean value)

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.