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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransactionEvent.Builder>
    • clear

      public TransactionEvent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransactionEvent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransactionEvent.Builder>
    • getDefaultInstanceForType

      public TransactionEvent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransactionEvent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransactionEvent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransactionEvent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionEvent.Builder>
    • mergeFrom

      public TransactionEvent.Builder mergeFrom(TransactionEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getEventTypeValue in interface TransactionEventOrBuilder
      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.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:
      getEventType in interface TransactionEventOrBuilder
      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

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

      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:
      getReason in interface TransactionEventOrBuilder
      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:
      getReasonBytes in interface TransactionEventOrBuilder
      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:
      getValue in interface TransactionEventOrBuilder
      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:
      hasEventTime in interface TransactionEventOrBuilder
      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:
      getEventTime in interface TransactionEventOrBuilder
      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:
      getEventTimeOrBuilder in interface TransactionEventOrBuilder