Class Event.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
com.google.recaptchaenterprise.v1beta1.Event.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,EventOrBuilder,Cloneable
- Enclosing class:
- Event
public static final class Event.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Event.Builder>
implements EventOrBuilder
Protobuf type
google.cloud.recaptchaenterprise.v1beta1.Event-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.intOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.getToken()Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setExpectedAction(String value) Optional.setExpectedActionBytes(com.google.protobuf.ByteString value) Optional.Optional.setFraudPreventionValue(int value) Optional.setHashedAccountId(com.google.protobuf.ByteString value) Optional.setSiteKey(String value) Optional.setSiteKeyBytes(com.google.protobuf.ByteString value) Optional.Optional.setTokenBytes(com.google.protobuf.ByteString value) Optional.Optional.setTransactionData(TransactionData.Builder builderForValue) Optional.setUserAgent(String value) Optional.setUserAgentBytes(com.google.protobuf.ByteString value) Optional.setUserIpAddress(String value) Optional.setUserIpAddressBytes(com.google.protobuf.ByteString value) Optional.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<Event.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<Event.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<Event.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<Event.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Event.Builder>
-
mergeFrom
public Event.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<Event.Builder>- Throws:
IOException
-
getToken
Optional. The user response token provided by the reCAPTCHA client-side integration on your site.
string token = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTokenin interfaceEventOrBuilder- Returns:
- The token.
-
getTokenBytes
public com.google.protobuf.ByteString getTokenBytes()Optional. The user response token provided by the reCAPTCHA client-side integration on your site.
string token = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTokenBytesin interfaceEventOrBuilder- Returns:
- The bytes for token.
-
setToken
Optional. The user response token provided by the reCAPTCHA client-side integration on your site.
string token = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The token to set.- Returns:
- This builder for chaining.
-
clearToken
Optional. The user response token provided by the reCAPTCHA client-side integration on your site.
string token = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setTokenBytes
Optional. The user response token provided by the reCAPTCHA client-side integration on your site.
string token = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for token to set.- Returns:
- This builder for chaining.
-
getSiteKey
Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token.
string site_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSiteKeyin interfaceEventOrBuilder- Returns:
- The siteKey.
-
getSiteKeyBytes
public com.google.protobuf.ByteString getSiteKeyBytes()Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token.
string site_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSiteKeyBytesin interfaceEventOrBuilder- Returns:
- The bytes for siteKey.
-
setSiteKey
Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token.
string site_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The siteKey to set.- Returns:
- This builder for chaining.
-
clearSiteKey
Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token.
string site_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setSiteKeyBytes
Optional. The site key that was used to invoke reCAPTCHA on your site and generate the token.
string site_key = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for siteKey to set.- Returns:
- This builder for chaining.
-
getUserAgent
Optional. The user agent present in the request from the user's device related to this event.
string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserAgentin interfaceEventOrBuilder- Returns:
- The userAgent.
-
getUserAgentBytes
public com.google.protobuf.ByteString getUserAgentBytes()Optional. The user agent present in the request from the user's device related to this event.
string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserAgentBytesin interfaceEventOrBuilder- Returns:
- The bytes for userAgent.
-
setUserAgent
Optional. The user agent present in the request from the user's device related to this event.
string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userAgent to set.- Returns:
- This builder for chaining.
-
clearUserAgent
Optional. The user agent present in the request from the user's device related to this event.
string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setUserAgentBytes
Optional. The user agent present in the request from the user's device related to this event.
string user_agent = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for userAgent to set.- Returns:
- This builder for chaining.
-
getUserIpAddress
Optional. The IP address in the request from the user's device related to this event.
string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserIpAddressin interfaceEventOrBuilder- Returns:
- The userIpAddress.
-
getUserIpAddressBytes
public com.google.protobuf.ByteString getUserIpAddressBytes()Optional. The IP address in the request from the user's device related to this event.
string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUserIpAddressBytesin interfaceEventOrBuilder- Returns:
- The bytes for userIpAddress.
-
setUserIpAddress
Optional. The IP address in the request from the user's device related to this event.
string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The userIpAddress to set.- Returns:
- This builder for chaining.
-
clearUserIpAddress
Optional. The IP address in the request from the user's device related to this event.
string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setUserIpAddressBytes
Optional. The IP address in the request from the user's device related to this event.
string user_ip_address = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for userIpAddress to set.- Returns:
- This builder for chaining.
-
getExpectedAction
Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with reCAPTCHA.
string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExpectedActionin interfaceEventOrBuilder- Returns:
- The expectedAction.
-
getExpectedActionBytes
public com.google.protobuf.ByteString getExpectedActionBytes()Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with reCAPTCHA.
string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExpectedActionBytesin interfaceEventOrBuilder- Returns:
- The bytes for expectedAction.
-
setExpectedAction
Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with reCAPTCHA.
string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The expectedAction to set.- Returns:
- This builder for chaining.
-
clearExpectedAction
Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with reCAPTCHA.
string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setExpectedActionBytes
Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with reCAPTCHA.
string expected_action = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for expectedAction to set.- Returns:
- This builder for chaining.
-
getHashedAccountId
public com.google.protobuf.ByteString getHashedAccountId()Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHashedAccountIdin interfaceEventOrBuilder- Returns:
- The hashedAccountId.
-
setHashedAccountId
Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The hashedAccountId to set.- Returns:
- This builder for chaining.
-
clearHashedAccountId
Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
bytes hashed_account_id = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasTransactionData
public boolean hasTransactionData()Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasTransactionDatain interfaceEventOrBuilder- Returns:
- Whether the transactionData field is set.
-
getTransactionData
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransactionDatain interfaceEventOrBuilder- Returns:
- The transactionData.
-
setTransactionData
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; -
setTransactionData
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; -
mergeTransactionData
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; -
clearTransactionData
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; -
getTransactionDataBuilder
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL]; -
getTransactionDataOrBuilder
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData transaction_data = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransactionDataOrBuilderin interfaceEventOrBuilder
-
getFraudPreventionValue
public int getFraudPreventionValue()Optional. The Fraud Prevention setting for this Assessment.
.google.cloud.recaptchaenterprise.v1beta1.Event.FraudPrevention fraud_prevention = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFraudPreventionValuein interfaceEventOrBuilder- Returns:
- The enum numeric value on the wire for fraudPrevention.
-
setFraudPreventionValue
Optional. The Fraud Prevention setting for this Assessment.
.google.cloud.recaptchaenterprise.v1beta1.Event.FraudPrevention fraud_prevention = 17 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for fraudPrevention to set.- Returns:
- This builder for chaining.
-
getFraudPrevention
Optional. The Fraud Prevention setting for this Assessment.
.google.cloud.recaptchaenterprise.v1beta1.Event.FraudPrevention fraud_prevention = 17 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getFraudPreventionin interfaceEventOrBuilder- Returns:
- The fraudPrevention.
-
setFraudPrevention
Optional. The Fraud Prevention setting for this Assessment.
.google.cloud.recaptchaenterprise.v1beta1.Event.FraudPrevention fraud_prevention = 17 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The fraudPrevention to set.- Returns:
- This builder for chaining.
-
clearFraudPrevention
Optional. The Fraud Prevention setting for this Assessment.
.google.cloud.recaptchaenterprise.v1beta1.Event.FraudPrevention fraud_prevention = 17 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-