Class TransactionEvent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransactionEvent.Builder>
com.google.recaptchaenterprise.v1.TransactionEvent.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionEventOrBuilder,Cloneable
- Enclosing class:
- TransactionEvent
public static final class TransactionEvent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransactionEvent.Builder>
implements TransactionEventOrBuilder
Describes an event in the lifecycle of a payment transaction.Protobuf type
google.cloud.recaptchaenterprise.v1.TransactionEvent-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOptional.com.google.protobuf.Timestamp.BuilderOptional.com.google.protobuf.TimestampOrBuilderOptional.Optional.intOptional.Optional.com.google.protobuf.ByteStringOptional.doublegetValue()Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEventTime(com.google.protobuf.Timestamp value) Optional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TransactionEvent other) setEventTime(com.google.protobuf.Timestamp value) Optional.setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) Optional.Optional.setEventTypeValue(int value) Optional.Optional.setReasonBytes(com.google.protobuf.ByteString value) Optional.setValue(double 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<TransactionEvent.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<TransactionEvent.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<TransactionEvent.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<TransactionEvent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransactionEvent.Builder>
-
mergeFrom
public TransactionEvent.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<TransactionEvent.Builder>- Throws:
IOException
-
getEventTypeValue
public int getEventTypeValue()Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTypeValuein interfaceTransactionEventOrBuilder- Returns:
- The enum numeric value on the wire for eventType.
-
setEventTypeValue
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for eventType to set.- Returns:
- This builder for chaining.
-
getEventType
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTypein interfaceTransactionEventOrBuilder- Returns:
- The eventType.
-
setEventType
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The eventType to set.- Returns:
- This builder for chaining.
-
clearEventType
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getReason
Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonin interfaceTransactionEventOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReasonBytesin interfaceTransactionEventOrBuilder- Returns:
- The bytes for reason.
-
setReason
Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The reason to set.- Returns:
- This builder for chaining.
-
clearReason
Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setReasonBytes
Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
string reason = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for reason to set.- Returns:
- This builder for chaining.
-
getValue
public double getValue()Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data.
double value = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValuein interfaceTransactionEventOrBuilder- Returns:
- The value.
-
setValue
Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data.
double value = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data.
double value = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasEventTime
public boolean hasEventTime()Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEventTimein interfaceTransactionEventOrBuilder- Returns:
- Whether the eventTime field is set.
-
getEventTime
public com.google.protobuf.Timestamp getEventTime()Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTimein interfaceTransactionEventOrBuilder- Returns:
- The eventTime.
-
setEventTime
Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setEventTime
Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEventTime
Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearEventTime
Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getEventTimeBuilder
public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getEventTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTimeOrBuilderin interfaceTransactionEventOrBuilder
-