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.v1.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
Properties of the provided event token.Protobuf type
google.cloud.recaptchaenterprise.v1.TokenProperties-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleangetValid()Output only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TokenProperties other) Output only.setActionBytes(com.google.protobuf.ByteString value) Output only.setAndroidPackageName(String value) Output only.setAndroidPackageNameBytes(com.google.protobuf.ByteString value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setHostname(String value) Output only.setHostnameBytes(com.google.protobuf.ByteString value) Output only.Output only.setInvalidReasonValue(int value) Output only.setIosBundleId(String value) Output only.setIosBundleIdBytes(com.google.protobuf.ByteString value) Output only.setValid(boolean value) Output only.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()Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getValidin interfaceTokenPropertiesOrBuilder- Returns:
- The valid.
-
setValid
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The valid to set.- Returns:
- This builder for chaining.
-
clearValid
Output only. 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 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getInvalidReasonValue
public int getInvalidReasonValue()Output only. Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInvalidReasonValuein interfaceTokenPropertiesOrBuilder- Returns:
- The enum numeric value on the wire for invalidReason.
-
setInvalidReasonValue
Output only. Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for invalidReason to set.- Returns:
- This builder for chaining.
-
getInvalidReason
Output only. Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInvalidReasonin interfaceTokenPropertiesOrBuilder- Returns:
- The invalidReason.
-
setInvalidReason
Output only. Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The invalidReason to set.- Returns:
- This builder for chaining.
-
clearInvalidReason
Output only. Reason associated with the response when valid = false.
.google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason invalid_reason = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceTokenPropertiesOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceTokenPropertiesOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp corresponding to the generation of the token.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceTokenPropertiesOrBuilder
-
getHostname
Output only. The hostname of the page on which the token was generated (Web keys only).
string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHostnamein interfaceTokenPropertiesOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()Output only. The hostname of the page on which the token was generated (Web keys only).
string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHostnameBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
Output only. The hostname of the page on which the token was generated (Web keys only).
string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
Output only. The hostname of the page on which the token was generated (Web keys only).
string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setHostnameBytes
Output only. The hostname of the page on which the token was generated (Web keys only).
string hostname = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
getAndroidPackageName
Output only. The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAndroidPackageNamein interfaceTokenPropertiesOrBuilder- Returns:
- The androidPackageName.
-
getAndroidPackageNameBytes
public com.google.protobuf.ByteString getAndroidPackageNameBytes()Output only. The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAndroidPackageNameBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for androidPackageName.
-
setAndroidPackageName
Output only. The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The androidPackageName to set.- Returns:
- This builder for chaining.
-
clearAndroidPackageName
Output only. The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setAndroidPackageNameBytes
Output only. The name of the Android package with which the token was generated (Android keys only).
string android_package_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for androidPackageName to set.- Returns:
- This builder for chaining.
-
getIosBundleId
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIosBundleIdin interfaceTokenPropertiesOrBuilder- Returns:
- The iosBundleId.
-
getIosBundleIdBytes
public com.google.protobuf.ByteString getIosBundleIdBytes()Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIosBundleIdBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for iosBundleId.
-
setIosBundleId
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The iosBundleId to set.- Returns:
- This builder for chaining.
-
clearIosBundleId
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setIosBundleIdBytes
Output only. The ID of the iOS bundle with which the token was generated (iOS keys only).
string ios_bundle_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for iosBundleId to set.- Returns:
- This builder for chaining.
-
getAction
Output only. Action name provided at token generation.
string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActionin interfaceTokenPropertiesOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()Output only. Action name provided at token generation.
string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getActionBytesin interfaceTokenPropertiesOrBuilder- Returns:
- The bytes for action.
-
setAction
Output only. Action name provided at token generation.
string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
Output only. Action name provided at token generation.
string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setActionBytes
Output only. Action name provided at token generation.
string action = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-