Class TokenProperties.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TokenPropertiesOrBuilder, Cloneable
    Enclosing class:
    TokenProperties

    public static final class TokenProperties.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>
    implements TokenPropertiesOrBuilder
    Protobuf type google.cloud.recaptchaenterprise.v1beta1.TokenProperties
    • 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<TokenProperties.Builder>
      • clear

        public TokenProperties.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<TokenProperties.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<TokenProperties.Builder>
      • getDefaultInstanceForType

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

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

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

        public TokenProperties.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<TokenProperties.Builder>
      • setField

        public TokenProperties.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<TokenProperties.Builder>
      • clearField

        public TokenProperties.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<TokenProperties.Builder>
      • clearOneof

        public TokenProperties.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<TokenProperties.Builder>
      • setRepeatedField

        public TokenProperties.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<TokenProperties.Builder>
      • addRepeatedField

        public TokenProperties.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<TokenProperties.Builder>
      • mergeFrom

        public TokenProperties.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<TokenProperties.Builder>
      • isInitialized

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

        public TokenProperties.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<TokenProperties.Builder>
        Throws:
        IOException
      • getValid

        public boolean getValid()
         Whether the provided user response token is valid. When valid = false, the
         reason could be specified in invalid_reason or it could also be due to
         a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
         used to generate the token was different than the one specified in the
         assessment).
         
        bool valid = 1;
        Specified by:
        getValid in interface TokenPropertiesOrBuilder
        Returns:
        The valid.
      • setValid

        public TokenProperties.Builder setValid​(boolean value)
         Whether the provided user response token is valid. When valid = false, the
         reason could be specified in invalid_reason or it could also be due to
         a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
         used to generate the token was different than the one specified in the
         assessment).
         
        bool valid = 1;
        Parameters:
        value - The valid to set.
        Returns:
        This builder for chaining.
      • clearValid

        public TokenProperties.Builder clearValid()
         Whether the provided user response token is valid. When valid = false, the
         reason could be specified in invalid_reason or it could also be due to
         a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey
         used to generate the token was different than the one specified in the
         assessment).
         
        bool valid = 1;
        Returns:
        This builder for chaining.
      • getInvalidReasonValue

        public int getInvalidReasonValue()
         Reason associated with the response when valid = false.
         
        .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
        Specified by:
        getInvalidReasonValue in interface TokenPropertiesOrBuilder
        Returns:
        The enum numeric value on the wire for invalidReason.
      • setInvalidReasonValue

        public TokenProperties.Builder setInvalidReasonValue​(int value)
         Reason associated with the response when valid = false.
         
        .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
        Parameters:
        value - The enum numeric value on the wire for invalidReason to set.
        Returns:
        This builder for chaining.
      • setInvalidReason

        public TokenProperties.Builder setInvalidReason​(TokenProperties.InvalidReason value)
         Reason associated with the response when valid = false.
         
        .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
        Parameters:
        value - The invalidReason to set.
        Returns:
        This builder for chaining.
      • clearInvalidReason

        public TokenProperties.Builder clearInvalidReason()
         Reason associated with the response when valid = false.
         
        .google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        hasCreateTime in interface TokenPropertiesOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        getCreateTime in interface TokenPropertiesOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public TokenProperties.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
      • setCreateTime

        public TokenProperties.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
      • mergeCreateTime

        public TokenProperties.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
      • clearCreateTime

        public TokenProperties.Builder clearCreateTime()
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The timestamp corresponding to the generation of the token.
         
        .google.protobuf.Timestamp create_time = 3;
        Specified by:
        getCreateTimeOrBuilder in interface TokenPropertiesOrBuilder
      • getHostname

        public String getHostname()
         The hostname of the page on which the token was generated.
         
        string hostname = 4;
        Specified by:
        getHostname in interface TokenPropertiesOrBuilder
        Returns:
        The hostname.
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         The hostname of the page on which the token was generated.
         
        string hostname = 4;
        Specified by:
        getHostnameBytes in interface TokenPropertiesOrBuilder
        Returns:
        The bytes for hostname.
      • setHostname

        public TokenProperties.Builder setHostname​(String value)
         The hostname of the page on which the token was generated.
         
        string hostname = 4;
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public TokenProperties.Builder clearHostname()
         The hostname of the page on which the token was generated.
         
        string hostname = 4;
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public TokenProperties.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         The hostname of the page on which the token was generated.
         
        string hostname = 4;
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • getActionBytes

        public com.google.protobuf.ByteString getActionBytes()
         Action name provided at token generation.
         
        string action = 5;
        Specified by:
        getActionBytes in interface TokenPropertiesOrBuilder
        Returns:
        The bytes for action.
      • setAction

        public TokenProperties.Builder setAction​(String value)
         Action name provided at token generation.
         
        string action = 5;
        Parameters:
        value - The action to set.
        Returns:
        This builder for chaining.
      • clearAction

        public TokenProperties.Builder clearAction()
         Action name provided at token generation.
         
        string action = 5;
        Returns:
        This builder for chaining.
      • setActionBytes

        public TokenProperties.Builder setActionBytes​(com.google.protobuf.ByteString value)
         Action name provided at token generation.
         
        string action = 5;
        Parameters:
        value - The bytes for action to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TokenProperties.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<TokenProperties.Builder>
      • mergeUnknownFields

        public final TokenProperties.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<TokenProperties.Builder>