Class TokenProperties.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TokenProperties.Builder>
com.google.recaptchaenterprise.v1beta1.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.GeneratedMessage.Builder<TokenProperties.Builder>
implements TokenPropertiesOrBuilder
Protobuf type
google.cloud.recaptchaenterprise.v1beta1.TokenProperties-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Action name provided at token generation.The timestamp corresponding to the generation of the token.The hostname of the page on which the token was generated.Reason associated with the response when valid = false.Whether the provided user response token is valid.Action name provided at token generation.com.google.protobuf.ByteStringAction name provided at token generation.com.google.protobuf.TimestampThe timestamp corresponding to the generation of the token.com.google.protobuf.Timestamp.BuilderThe timestamp corresponding to the generation of the token.com.google.protobuf.TimestampOrBuilderThe timestamp corresponding to the generation of the token.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe hostname of the page on which the token was generated.com.google.protobuf.ByteStringThe hostname of the page on which the token was generated.Reason associated with the response when valid = false.intReason associated with the response when valid = false.booleangetValid()Whether the provided user response token is valid.booleanThe timestamp corresponding to the generation of the token.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) The timestamp corresponding to the generation of the token.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TokenProperties other) Action name provided at token generation.setActionBytes(com.google.protobuf.ByteString value) Action name provided at token generation.setCreateTime(com.google.protobuf.Timestamp value) The timestamp corresponding to the generation of the token.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The timestamp corresponding to the generation of the token.setHostname(String value) The hostname of the page on which the token was generated.setHostnameBytes(com.google.protobuf.ByteString value) The hostname of the page on which the token was generated.Reason associated with the response when valid = false.setInvalidReasonValue(int value) Reason associated with the response when valid = false.setValid(boolean value) Whether the provided user response token is valid.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<TokenProperties.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<TokenProperties.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<TokenProperties.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<TokenProperties.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TokenProperties.Builder>
-
mergeFrom
public TokenProperties.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<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:
getValidin interfaceTokenPropertiesOrBuilder- Returns:
- The valid.
-
setValid
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
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:
getInvalidReasonValuein interfaceTokenPropertiesOrBuilder- Returns:
- The enum numeric value on the wire for invalidReason.
-
setInvalidReasonValue
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.
-
getInvalidReason
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason invalid_reason = 2;- Specified by:
getInvalidReasonin interfaceTokenPropertiesOrBuilder- Returns:
- The invalidReason.
-
setInvalidReason
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
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:
hasCreateTimein interfaceTokenPropertiesOrBuilder- 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:
getCreateTimein interfaceTokenPropertiesOrBuilder- Returns:
- The createTime.
-
setCreateTime
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3; -
setCreateTime
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3; -
mergeCreateTime
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3; -
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:
getCreateTimeOrBuilderin interfaceTokenPropertiesOrBuilder
-
getHostname
The hostname of the page on which the token was generated.
string hostname = 4;- Specified by:
getHostnamein interfaceTokenPropertiesOrBuilder- 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:
getHostnameBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
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
The hostname of the page on which the token was generated.
string hostname = 4;- Returns:
- This builder for chaining.
-
setHostnameBytes
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.
-
getAction
Action name provided at token generation.
string action = 5;- Specified by:
getActionin interfaceTokenPropertiesOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()Action name provided at token generation.
string action = 5;- Specified by:
getActionBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for action.
-
setAction
Action name provided at token generation.
string action = 5;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
Action name provided at token generation.
string action = 5;- Returns:
- This builder for chaining.
-
setActionBytes
Action name provided at token generation.
string action = 5;- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-