public static final class TokenProperties.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder> implements TokenPropertiesOrBuilder
google.cloud.recaptchaenterprise.v1.TokenProperties| Modifier and Type | Method and Description |
|---|---|
TokenProperties.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TokenProperties |
build() |
TokenProperties |
buildPartial() |
TokenProperties.Builder |
clear() |
TokenProperties.Builder |
clearAction()
Action name provided at token generation.
|
TokenProperties.Builder |
clearCreateTime()
The timestamp corresponding to the generation of the token.
|
TokenProperties.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TokenProperties.Builder |
clearHostname()
The hostname of the page on which the token was generated.
|
TokenProperties.Builder |
clearInvalidReason()
Reason associated with the response when valid = false.
|
TokenProperties.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TokenProperties.Builder |
clearValid()
Whether the provided user response token is valid.
|
TokenProperties.Builder |
clone() |
String |
getAction()
Action name provided at token generation.
|
com.google.protobuf.ByteString |
getActionBytes()
Action name provided at token generation.
|
com.google.protobuf.Timestamp |
getCreateTime()
The timestamp corresponding to the generation of the token.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
The timestamp corresponding to the generation of the token.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The timestamp corresponding to the generation of the token.
|
TokenProperties |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHostname()
The hostname of the page on which the token was generated.
|
com.google.protobuf.ByteString |
getHostnameBytes()
The hostname of the page on which the token was generated.
|
TokenProperties.InvalidReason |
getInvalidReason()
Reason associated with the response when valid = false.
|
int |
getInvalidReasonValue()
Reason associated with the response when valid = false.
|
boolean |
getValid()
Whether the provided user response token is valid.
|
boolean |
hasCreateTime()
The timestamp corresponding to the generation of the token.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TokenProperties.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
The timestamp corresponding to the generation of the token.
|
TokenProperties.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TokenProperties.Builder |
mergeFrom(com.google.protobuf.Message other) |
TokenProperties.Builder |
mergeFrom(TokenProperties other) |
TokenProperties.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TokenProperties.Builder |
setAction(String value)
Action name provided at token generation.
|
TokenProperties.Builder |
setActionBytes(com.google.protobuf.ByteString value)
Action name provided at token generation.
|
TokenProperties.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp corresponding to the generation of the token.
|
TokenProperties.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
The timestamp corresponding to the generation of the token.
|
TokenProperties.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TokenProperties.Builder |
setHostname(String value)
The hostname of the page on which the token was generated.
|
TokenProperties.Builder |
setHostnameBytes(com.google.protobuf.ByteString value)
The hostname of the page on which the token was generated.
|
TokenProperties.Builder |
setInvalidReason(TokenProperties.InvalidReason value)
Reason associated with the response when valid = false.
|
TokenProperties.Builder |
setInvalidReasonValue(int value)
Reason associated with the response when valid = false.
|
TokenProperties.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TokenProperties.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TokenProperties.Builder |
setValid(boolean value)
Whether the provided user response token is valid.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TokenProperties build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TokenProperties buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TokenProperties.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TokenProperties.Builder>public TokenProperties.Builder mergeFrom(TokenProperties other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public TokenProperties.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TokenProperties.Builder>IOExceptionpublic 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;getValid in interface TokenPropertiesOrBuilderpublic 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;value - The valid to set.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;public int getInvalidReasonValue()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
getInvalidReasonValue in interface TokenPropertiesOrBuilderpublic TokenProperties.Builder setInvalidReasonValue(int value)
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
value - The enum numeric value on the wire for invalidReason to set.public TokenProperties.InvalidReason getInvalidReason()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
getInvalidReason in interface TokenPropertiesOrBuilderpublic TokenProperties.Builder setInvalidReason(TokenProperties.InvalidReason value)
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
value - The invalidReason to set.public TokenProperties.Builder clearInvalidReason()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
public boolean hasCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;hasCreateTime in interface TokenPropertiesOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;getCreateTime in interface TokenPropertiesOrBuilderpublic TokenProperties.Builder setCreateTime(com.google.protobuf.Timestamp value)
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;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;public TokenProperties.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;public TokenProperties.Builder clearCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;getCreateTimeOrBuilder in interface TokenPropertiesOrBuilderpublic String getHostname()
The hostname of the page on which the token was generated.
string hostname = 4;getHostname in interface TokenPropertiesOrBuilderpublic com.google.protobuf.ByteString getHostnameBytes()
The hostname of the page on which the token was generated.
string hostname = 4;getHostnameBytes in interface TokenPropertiesOrBuilderpublic TokenProperties.Builder setHostname(String value)
The hostname of the page on which the token was generated.
string hostname = 4;value - The hostname to set.public TokenProperties.Builder clearHostname()
The hostname of the page on which the token was generated.
string hostname = 4;public TokenProperties.Builder setHostnameBytes(com.google.protobuf.ByteString value)
The hostname of the page on which the token was generated.
string hostname = 4;value - The bytes for hostname to set.public String getAction()
Action name provided at token generation.
string action = 5;getAction in interface TokenPropertiesOrBuilderpublic com.google.protobuf.ByteString getActionBytes()
Action name provided at token generation.
string action = 5;getActionBytes in interface TokenPropertiesOrBuilderpublic TokenProperties.Builder setAction(String value)
Action name provided at token generation.
string action = 5;value - The action to set.public TokenProperties.Builder clearAction()
Action name provided at token generation.
string action = 5;public TokenProperties.Builder setActionBytes(com.google.protobuf.ByteString value)
Action name provided at token generation.
string action = 5;value - The bytes for action to set.public final TokenProperties.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>public final TokenProperties.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>Copyright © 2021 Google LLC. All rights reserved.