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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>
public TokenProperties getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TokenProperties build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TokenProperties buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TokenProperties.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TokenProperties.Builder>
IOException
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;
getValid
in interface TokenPropertiesOrBuilder
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;
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 TokenPropertiesOrBuilder
public 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 TokenPropertiesOrBuilder
public 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 TokenPropertiesOrBuilder
public com.google.protobuf.Timestamp getCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;
getCreateTime
in interface TokenPropertiesOrBuilder
public 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 TokenPropertiesOrBuilder
public String getHostname()
The hostname of the page on which the token was generated.
string hostname = 4;
getHostname
in interface TokenPropertiesOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
The hostname of the page on which the token was generated.
string hostname = 4;
getHostnameBytes
in interface TokenPropertiesOrBuilder
public 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 TokenPropertiesOrBuilder
public com.google.protobuf.ByteString getActionBytes()
Action name provided at token generation.
string action = 5;
getActionBytes
in interface TokenPropertiesOrBuilder
public 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TokenProperties.Builder>
Copyright © 2022 Google LLC. All rights reserved.