Class TransactionEvent.Builder (3.30.0)

public static final class TransactionEvent.Builder extends GeneratedMessageV3.Builder<TransactionEvent.Builder> implements TransactionEventOrBuilder

Describes an event in the lifecycle of a payment transaction.

Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionEvent

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransactionEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransactionEvent.Builder
Overrides

build()

public TransactionEvent build()
Returns
TypeDescription
TransactionEvent

buildPartial()

public TransactionEvent buildPartial()
Returns
TypeDescription
TransactionEvent

clear()

public TransactionEvent.Builder clear()
Returns
TypeDescription
TransactionEvent.Builder
Overrides

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];

Returns
TypeDescription
TransactionEvent.Builder

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
TypeDescription
TransactionEvent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransactionEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransactionEvent.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TransactionEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransactionEvent.Builder
Overrides

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
TypeDescription
TransactionEvent.Builder

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
TypeDescription
TransactionEvent.Builder

This builder for chaining.

clone()

public TransactionEvent.Builder clone()
Returns
TypeDescription
TransactionEvent.Builder
Overrides

getDefaultInstanceForType()

public TransactionEvent getDefaultInstanceForType()
Returns
TypeDescription
TransactionEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEventTime()

public 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];

Returns
TypeDescription
Timestamp

The eventTime.

getEventTimeBuilder()

public 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];

Returns
TypeDescription
Builder

getEventTimeOrBuilder()

public 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];

Returns
TypeDescription
TimestampOrBuilder

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];

Returns
TypeDescription
TransactionEvent.TransactionEventType

The eventType.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for eventType.

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];

Returns
TypeDescription
String

The reason.

getReasonBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for reason.

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];

Returns
TypeDescription
double

The value.

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];

Returns
TypeDescription
boolean

Whether the eventTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEventTime(Timestamp value)

public TransactionEvent.Builder mergeEventTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransactionEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransactionEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TransactionEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TransactionEvent.Builder
Overrides

mergeFrom(TransactionEvent other)

public TransactionEvent.Builder mergeFrom(TransactionEvent other)
Parameter
NameDescription
otherTransactionEvent
Returns
TypeDescription
TransactionEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransactionEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransactionEvent.Builder
Overrides

setEventTime(Timestamp value)

public TransactionEvent.Builder setEventTime(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];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TransactionEvent.Builder

setEventTime(Timestamp.Builder builderForValue)

public TransactionEvent.Builder setEventTime(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];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TransactionEvent.Builder

setEventType(TransactionEvent.TransactionEventType value)

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];

Parameter
NameDescription
valueTransactionEvent.TransactionEventType

The eventType to set.

Returns
TypeDescription
TransactionEvent.Builder

This builder for chaining.

setEventTypeValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for eventType to set.

Returns
TypeDescription
TransactionEvent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransactionEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransactionEvent.Builder
Overrides

setReason(String value)

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];

Parameter
NameDescription
valueString

The reason to set.

Returns
TypeDescription
TransactionEvent.Builder

This builder for chaining.

setReasonBytes(ByteString value)

public TransactionEvent.Builder setReasonBytes(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];

Parameter
NameDescription
valueByteString

The bytes for reason to set.

Returns
TypeDescription
TransactionEvent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransactionEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransactionEvent.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransactionEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransactionEvent.Builder
Overrides

setValue(double value)

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];

Parameter
NameDescription
valuedouble

The value to set.

Returns
TypeDescription
TransactionEvent.Builder

This builder for chaining.