Class 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.GeneratedMessageV3.Builder<Challenge.Builder>
    implements ChallengeOrBuilder
     A Challenge from the server used to guarantee freshness of attestations
     
    Protobuf type google.cloud.confidentialcomputing.v1.Challenge
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • clear

        public Challenge.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • getDefaultInstanceForType

        public Challenge getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Challenge build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Challenge buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Challenge.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • setField

        public Challenge.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                          Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • clearField

        public Challenge.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • clearOneof

        public Challenge.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • setRepeatedField

        public Challenge.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  int index,
                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • addRepeatedField

        public Challenge.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • mergeFrom

        public Challenge.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Challenge.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • mergeFrom

        public Challenge.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Challenge.Builder>
        Throws:
        IOException
      • 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];
        Specified by:
        getName in interface ChallengeOrBuilder
        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:
        getNameBytes in interface ChallengeOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNameBytes

        public Challenge.Builder setNameBytes​(com.google.protobuf.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];
        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:
        hasCreateTime in interface ChallengeOrBuilder
        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:
        getCreateTime in interface ChallengeOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Challenge.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this Challenge was created
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Challenge.Builder setCreateTime​(com.google.protobuf.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];
      • mergeCreateTime

        public Challenge.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. The time at which this Challenge was created
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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];
      • 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:
        getCreateTimeOrBuilder in interface ChallengeOrBuilder
      • 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:
        hasExpireTime in interface ChallengeOrBuilder
        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:
        getExpireTime in interface ChallengeOrBuilder
        Returns:
        The expireTime.
      • setExpireTime

        public Challenge.Builder setExpireTime​(com.google.protobuf.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];
      • setExpireTime

        public Challenge.Builder setExpireTime​(com.google.protobuf.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];
      • mergeExpireTime

        public Challenge.Builder mergeExpireTime​(com.google.protobuf.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];
      • 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];
      • 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:
        getExpireTimeOrBuilder in interface ChallengeOrBuilder
      • 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:
        getUsed in interface ChallengeOrBuilder
        Returns:
        The used.
      • setUsed

        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];
        Parameters:
        value - The used to set.
        Returns:
        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:
        This builder for chaining.
      • getTpmNonce

        public String getTpmNonce()
         Output only. Identical to nonce, but as a string.
         
        string tpm_nonce = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTpmNonce in interface ChallengeOrBuilder
        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:
        getTpmNonceBytes in interface ChallengeOrBuilder
        Returns:
        The bytes for tpmNonce.
      • setTpmNonce

        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];
        Parameters:
        value - The tpmNonce to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setTpmNonceBytes

        public Challenge.Builder setTpmNonceBytes​(com.google.protobuf.ByteString value)
         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.
      • setUnknownFields

        public final Challenge.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>
      • mergeUnknownFields

        public final Challenge.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Challenge.Builder>