Interface TokenPropertiesOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TokenProperties,TokenProperties.Builder
public interface TokenPropertiesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAction()Action name provided at token generation.com.google.protobuf.ByteStringgetActionBytes()Action name provided at token generation.StringgetAndroidPackageName()The name of the Android package with which the token was generated (Android keys only).com.google.protobuf.ByteStringgetAndroidPackageNameBytes()The name of the Android package with which the token was generated (Android keys only).com.google.protobuf.TimestampgetCreateTime()The timestamp corresponding to the generation of the token.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The timestamp corresponding to the generation of the token.StringgetHostname()The hostname of the page on which the token was generated (Web keys only).com.google.protobuf.ByteStringgetHostnameBytes()The hostname of the page on which the token was generated (Web keys only).TokenProperties.InvalidReasongetInvalidReason()Reason associated with the response when valid = false.intgetInvalidReasonValue()Reason associated with the response when valid = false.StringgetIosBundleId()The ID of the iOS bundle with which the token was generated (iOS keys only).com.google.protobuf.ByteStringgetIosBundleIdBytes()The ID of the iOS bundle with which the token was generated (iOS keys only).booleangetValid()Whether the provided user response token is valid.booleanhasCreateTime()The timestamp corresponding to the generation of the token.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getValid
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;- Returns:
- The valid.
-
getInvalidReasonValue
int getInvalidReasonValue()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;- Returns:
- The enum numeric value on the wire for invalidReason.
-
getInvalidReason
TokenProperties.InvalidReason getInvalidReason()
Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2;- Returns:
- The invalidReason.
-
hasCreateTime
boolean hasCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3;
-
getHostname
String getHostname()
The hostname of the page on which the token was generated (Web keys only).
string hostname = 4;- Returns:
- The hostname.
-
getHostnameBytes
com.google.protobuf.ByteString getHostnameBytes()
The hostname of the page on which the token was generated (Web keys only).
string hostname = 4;- Returns:
- The bytes for hostname.
-
getAndroidPackageName
String getAndroidPackageName()
The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8;- Returns:
- The androidPackageName.
-
getAndroidPackageNameBytes
com.google.protobuf.ByteString getAndroidPackageNameBytes()
The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8;- Returns:
- The bytes for androidPackageName.
-
getIosBundleId
String getIosBundleId()
The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9;- Returns:
- The iosBundleId.
-
getIosBundleIdBytes
com.google.protobuf.ByteString getIosBundleIdBytes()
The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9;- Returns:
- The bytes for iosBundleId.
-
getAction
String getAction()
Action name provided at token generation.
string action = 5;- Returns:
- The action.
-
getActionBytes
com.google.protobuf.ByteString getActionBytes()
Action name provided at token generation.
string action = 5;- Returns:
- The bytes for action.
-
-