Class 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 type google.cloud.recaptchaenterprise.v1.TransactionEvent
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TransactionEvent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
      • setField

        public TransactionEvent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
      • clearField

        public TransactionEvent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
      • clearOneof

        public TransactionEvent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
      • setRepeatedField

        public TransactionEvent.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
      • addRepeatedField

        public TransactionEvent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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.
      • setEventType

        public TransactionEvent.Builder setEventType​(TransactionEvent.TransactionEventType 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 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
      • setUnknownFields

        public final TransactionEvent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>
      • mergeUnknownFields

        public final TransactionEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionEvent.Builder>