Class TransactionEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
- com.google.recaptchaenterprise.v1beta1.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.GeneratedMessageV3.Builder<TransactionEvent.Builder> implements TransactionEventOrBuilder
Describes an event in the lifecycle of a payment transaction.
Protobuf typegoogle.cloud.recaptchaenterprise.v1beta1.TransactionEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionEvent.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionEventbuild()TransactionEventbuildPartial()TransactionEvent.Builderclear()TransactionEvent.BuilderclearEventTime()Optional.TransactionEvent.BuilderclearEventType()Optional.TransactionEvent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransactionEvent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransactionEvent.BuilderclearReason()Optional.TransactionEvent.BuilderclearValue()Optional.TransactionEvent.Builderclone()TransactionEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEventTime()Optional.com.google.protobuf.Timestamp.BuildergetEventTimeBuilder()Optional.com.google.protobuf.TimestampOrBuildergetEventTimeOrBuilder()Optional.TransactionEvent.TransactionEventTypegetEventType()Optional.intgetEventTypeValue()Optional.StringgetReason()Optional.com.google.protobuf.ByteStringgetReasonBytes()Optional.doublegetValue()Optional.booleanhasEventTime()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransactionEvent.BuildermergeEventTime(com.google.protobuf.Timestamp value)Optional.TransactionEvent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransactionEvent.BuildermergeFrom(com.google.protobuf.Message other)TransactionEvent.BuildermergeFrom(TransactionEvent other)TransactionEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionEvent.BuildersetEventTime(com.google.protobuf.Timestamp value)Optional.TransactionEvent.BuildersetEventTime(com.google.protobuf.Timestamp.Builder builderForValue)Optional.TransactionEvent.BuildersetEventType(TransactionEvent.TransactionEventType value)Optional.TransactionEvent.BuildersetEventTypeValue(int value)Optional.TransactionEvent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionEvent.BuildersetReason(String value)Optional.TransactionEvent.BuildersetReasonBytes(com.google.protobuf.ByteString value)Optional.TransactionEvent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransactionEvent.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionEvent.BuildersetValue(double value)Optional.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
clear
public TransactionEvent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
getDefaultInstanceForType
public TransactionEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionEvent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionEvent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionEvent.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
setField
public TransactionEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
clearField
public TransactionEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
clearOneof
public TransactionEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
setRepeatedField
public TransactionEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
addRepeatedField
public TransactionEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
mergeFrom
public TransactionEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionEvent.Builder>
-
mergeFrom
public TransactionEvent.Builder mergeFrom(TransactionEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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.v1beta1.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
public TransactionEvent.Builder setEventTypeValue(int value)
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1beta1.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
public TransactionEvent.TransactionEventType getEventType()
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventTypein interfaceTransactionEventOrBuilder- Returns:
- The eventType.
-
setEventType
public TransactionEvent.Builder setEventType(TransactionEvent.TransactionEventType value)
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The eventType to set.- Returns:
- This builder for chaining.
-
clearEventType
public TransactionEvent.Builder clearEventType()
Optional. The type of this transaction event.
.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventType event_type = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getReason
public String 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
public TransactionEvent.Builder setReason(String value)
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
public TransactionEvent.Builder 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
public TransactionEvent.Builder setReasonBytes(com.google.protobuf.ByteString value)
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
public TransactionEvent.Builder setValue(double value)
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
public TransactionEvent.Builder 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
public TransactionEvent.Builder setEventTime(com.google.protobuf.Timestamp value)
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
public TransactionEvent.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
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
public TransactionEvent.Builder mergeEventTime(com.google.protobuf.Timestamp value)
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
public TransactionEvent.Builder 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
-
setUnknownFields
public final TransactionEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
mergeUnknownFields
public final TransactionEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
-
-