public interface TokenPropertiesOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
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.TimestampOrBuilder |
getCreateTimeOrBuilder()
The timestamp corresponding to the generation of the token.
|
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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
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;
int getInvalidReasonValue()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
TokenProperties.InvalidReason getInvalidReason()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;
boolean hasCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;
com.google.protobuf.Timestamp getCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;
String getHostname()
The hostname of the page on which the token was generated.
string hostname = 4;
com.google.protobuf.ByteString getHostnameBytes()
The hostname of the page on which the token was generated.
string hostname = 4;
String getAction()
Action name provided at token generation.
string action = 5;
com.google.protobuf.ByteString getActionBytes()
Action name provided at token generation.
string action = 5;
Copyright © 2022 Google LLC. All rights reserved.