Class Challenge.Builder (0.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Challenge.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Challenge.Builder
Overrides

build()

public Challenge build()
Returns
TypeDescription
Challenge

buildPartial()

public Challenge buildPartial()
Returns
TypeDescription
Challenge

clear()

public Challenge.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Challenge.Builder

clearField(Descriptors.FieldDescriptor field)

public Challenge.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Challenge.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Challenge.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Challenge.Builder

This builder for chaining.

clone()

public Challenge.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Challenge getDefaultInstanceForType()
Returns
TypeDescription
Challenge

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
Challenge.Builder

mergeFrom(Challenge other)

public Challenge.Builder mergeFrom(Challenge other)
Parameter
NameDescription
otherChallenge
Returns
TypeDescription
Challenge.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Challenge.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Challenge.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Challenge.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Challenge.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Challenge.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Challenge.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Challenge.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The nonce to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Challenge.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Challenge.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The used to set.

Returns
TypeDescription
Challenge.Builder

This builder for chaining.