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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Challenge.BuilderImplements
ChallengeOrBuilderStatic 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 |
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 |
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 |
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Challenge.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
Challenge.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Challenge.Builder | This builder for chaining. |
clone()
public Challenge.Builder clone()
Returns | |
---|---|
Type | Description |
Challenge.Builder |
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 |
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. |
getTpmNonce()
public String getTpmNonce()
Output only. Identical to nonce, but as a string.
string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Challenge.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Challenge.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Challenge.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Challenge.Builder |
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 |
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. |
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 |
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 | |
---|---|
Name | Description |
value | String The tpmNonce to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for tpmNonce to set. |
Returns | |
---|---|
Type | Description |
Challenge.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Challenge.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Challenge.Builder |
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. |