Class Challenge.Builder (0.9.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.v1.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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Challenge.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Challenge.Builder
Overrides

clearTpmNonce()

public Challenge.Builder clearTpmNonce()

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

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

Returns
TypeDescription
Challenge.Builder

This builder for chaining.

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.

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.

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.

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

setTpmNonce(String value)

public Challenge.Builder setTpmNonce(String value)

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

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

Parameter
NameDescription
valueString

The tpmNonce to set.

Returns
TypeDescription
Challenge.Builder

This builder for chaining.

setTpmNonceBytes(ByteString value)

public Challenge.Builder setTpmNonceBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for tpmNonce to set.

Returns
TypeDescription
Challenge.Builder

This builder for chaining.

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.