Class Challenge.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Challenge.Builder>
com.google.cloud.confidentialcomputing.v1.Challenge.Builder
- All Implemented Interfaces:
ChallengeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Challenge
public static final class Challenge.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Challenge.Builder>
implements ChallengeOrBuilder
A Challenge from the server used to guarantee freshness of attestationsProtobuf type
google.cloud.confidentialcomputing.v1.Challenge-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleangetUsed()Output only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeExpireTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setExpireTime(com.google.protobuf.Timestamp value) Output only.setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setTpmNonce(String value) Output only.setTpmNonceBytes(com.google.protobuf.ByteString value) Output only.setUsed(boolean value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Challenge.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Challenge.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Challenge.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Challenge.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Challenge.Builder>
-
mergeFrom
public Challenge.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Challenge.Builder>- Throws:
IOException
-
getName
Output only. The resource name for this Challenge in the format `projects/*/locations/*/challenges/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceChallengeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceChallengeOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. The resource name for this Challenge in the format `projects/*/locations/*/challenges/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
Output only. The resource name for this Challenge in the format `projects/*/locations/*/challenges/*`
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceChallengeOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time at which this Challenge was created
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceChallengeOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time at which this Challenge was created
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The time at which this Challenge was created
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The time at which this Challenge was created
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time at which this Challenge was created
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.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]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time at which this Challenge was created
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceChallengeOrBuilder
-
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];- Specified by:
hasExpireTimein interfaceChallengeOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.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];- Specified by:
getExpireTimein interfaceChallengeOrBuilder- Returns:
- The expireTime.
-
setExpireTime
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]; -
setExpireTime
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]; -
mergeExpireTime
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]; -
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]; -
getExpireTimeBuilder
public com.google.protobuf.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]; -
getExpireTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getExpireTimeOrBuilderin interfaceChallengeOrBuilder
-
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];- Specified by:
getUsedin interfaceChallengeOrBuilder- Returns:
- The used.
-
setUsed
Output only. Indicates if this challenge has been used to generate a token.
bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The used to set.- Returns:
- This builder for chaining.
-
clearUsed
Output only. Indicates if this challenge has been used to generate a token.
bool used = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getTpmNonce
Output only. Identical to nonce, but as a string.
string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTpmNoncein interfaceChallengeOrBuilder- Returns:
- The tpmNonce.
-
getTpmNonceBytes
public com.google.protobuf.ByteString getTpmNonceBytes()Output only. Identical to nonce, but as a string.
string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTpmNonceBytesin interfaceChallengeOrBuilder- Returns:
- The bytes for tpmNonce.
-
setTpmNonce
Output only. Identical to nonce, but as a string.
string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The tpmNonce to set.- Returns:
- This builder for chaining.
-
clearTpmNonce
Output only. Identical to nonce, but as a string.
string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setTpmNonceBytes
Output only. Identical to nonce, but as a string.
string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for tpmNonce to set.- Returns:
- This builder for chaining.
-