All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.passkit.grpc.TransactionOuterClass Maven / Gradle / Ivy

Go to download

SDK for the PassKit gRPC API that can be used to create, configure and manage Membership, Loyalty, Event Ticket, Coupon, Transit and Boarding Pass content for mobile wallet applications, including Apple Pay and Google Pay.

There is a newer version: 1.1.97
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: io/common/transaction.proto

package com.passkit.grpc;

public final class TransactionOuterClass {
  private TransactionOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TransactionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.Transaction)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
     * 
* * string referenceId = 1; * @return The referenceId. */ java.lang.String getReferenceId(); /** *
     * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
     * 
* * string referenceId = 1; * @return The bytes for referenceId. */ com.google.protobuf.ByteString getReferenceIdBytes(); /** *
     * The total amount of all order items. Based on POS setting, the totalPrice can already include the tax amount
     * 
* * float totalPrice = 2; * @return The totalPrice. */ float getTotalPrice(); /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ java.util.List getOrderItemsList(); /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ com.passkit.grpc.TransactionOuterClass.OrderItem getOrderItems(int index); /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ int getOrderItemsCount(); /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ java.util.List getOrderItemsOrBuilderList(); /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder getOrderItemsOrBuilder( int index); /** *
     * The total discount amount
     * 
* * float discount = 4; * @return The discount. */ float getDiscount(); /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ java.util.List getDiscountItemsList(); /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ com.passkit.grpc.TransactionOuterClass.DiscountItem getDiscountItems(int index); /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ int getDiscountItemsCount(); /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ java.util.List getDiscountItemsOrBuilderList(); /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder getDiscountItemsOrBuilder( int index); /** *
     * The service charge amount
     * 
* * float serviceCharge = 6; * @return The serviceCharge. */ float getServiceCharge(); /** *
     * The tax amount.
     * 
* * float totalTax = 7; * @return The totalTax. */ float getTotalTax(); /** *
     * The final price of the transaction: (total price + service charge + (totalTax: if POS settings set to tax exclusive)) - discount
     * 
* * float finalPrice = 8; * @return The finalPrice. */ float getFinalPrice(); /** *
     * Rounding difference
     * 
* * float roundingDifference = 9; * @return The roundingDifference. */ float getRoundingDifference(); /** *
     * Indicates if this transaction is a refund
     * 
* * bool isRefunded = 10; * @return The isRefunded. */ boolean getIsRefunded(); /** *
     * The transaction timestamp
     * 
* * .io.Date timestamp = 11; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** *
     * The transaction timestamp
     * 
* * .io.Date timestamp = 11; * @return The timestamp. */ com.passkit.grpc.CommonObjects.Date getTimestamp(); /** *
     * The transaction timestamp
     * 
* * .io.Date timestamp = 11; */ com.passkit.grpc.CommonObjects.DateOrBuilder getTimestampOrBuilder(); /** *
     * The transaction currency
     * 
* * string currency = 12; * @return The currency. */ java.lang.String getCurrency(); /** *
     * The transaction currency
     * 
* * string currency = 12; * @return The bytes for currency. */ com.google.protobuf.ByteString getCurrencyBytes(); /** *
     * GPS details of check in
     * 
* * .io.GPSLocation location = 13; * @return Whether the location field is set. */ boolean hasLocation(); /** *
     * GPS details of check in
     * 
* * .io.GPSLocation location = 13; * @return The location. */ com.passkit.grpc.Proximity.GPSLocation getLocation(); /** *
     * GPS details of check in
     * 
* * .io.GPSLocation location = 13; */ com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationOrBuilder(); /** *
     * 17 is reserved for transaction source (online, or restaurant code)
     * 
* * string transactionSource = 14; * @return The transactionSource. */ java.lang.String getTransactionSource(); /** *
     * 17 is reserved for transaction source (online, or restaurant code)
     * 
* * string transactionSource = 14; * @return The bytes for transactionSource. */ com.google.protobuf.ByteString getTransactionSourceBytes(); } /** *
   * Some point based loyalty programs will pass on transaction information (can be used for segmenting, additional reporting, and/or showing transactions on back of the pass).
   * 
* * Protobuf type {@code io.Transaction} */ public static final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.Transaction) TransactionOrBuilder { private static final long serialVersionUID = 0L; // Use Transaction.newBuilder() to construct. private Transaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Transaction() { referenceId_ = ""; orderItems_ = java.util.Collections.emptyList(); discountItems_ = java.util.Collections.emptyList(); currency_ = ""; transactionSource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Transaction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Transaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); referenceId_ = s; break; } case 21: { totalPrice_ = input.readFloat(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { orderItems_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } orderItems_.add( input.readMessage(com.passkit.grpc.TransactionOuterClass.OrderItem.parser(), extensionRegistry)); break; } case 37: { discount_ = input.readFloat(); break; } case 42: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { discountItems_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } discountItems_.add( input.readMessage(com.passkit.grpc.TransactionOuterClass.DiscountItem.parser(), extensionRegistry)); break; } case 53: { serviceCharge_ = input.readFloat(); break; } case 61: { totalTax_ = input.readFloat(); break; } case 69: { finalPrice_ = input.readFloat(); break; } case 77: { roundingDifference_ = input.readFloat(); break; } case 80: { isRefunded_ = input.readBool(); break; } case 90: { com.passkit.grpc.CommonObjects.Date.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.passkit.grpc.CommonObjects.Date.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); currency_ = s; break; } case 106: { com.passkit.grpc.Proximity.GPSLocation.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(com.passkit.grpc.Proximity.GPSLocation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 114: { java.lang.String s = input.readStringRequireUtf8(); transactionSource_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { orderItems_ = java.util.Collections.unmodifiableList(orderItems_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { discountItems_ = java.util.Collections.unmodifiableList(discountItems_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.TransactionOuterClass.Transaction.class, com.passkit.grpc.TransactionOuterClass.Transaction.Builder.class); } public static final int REFERENCEID_FIELD_NUMBER = 1; private volatile java.lang.Object referenceId_; /** *
     * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
     * 
* * string referenceId = 1; * @return The referenceId. */ @java.lang.Override public java.lang.String getReferenceId() { java.lang.Object ref = referenceId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceId_ = s; return s; } } /** *
     * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
     * 
* * string referenceId = 1; * @return The bytes for referenceId. */ @java.lang.Override public com.google.protobuf.ByteString getReferenceIdBytes() { java.lang.Object ref = referenceId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); referenceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOTALPRICE_FIELD_NUMBER = 2; private float totalPrice_; /** *
     * The total amount of all order items. Based on POS setting, the totalPrice can already include the tax amount
     * 
* * float totalPrice = 2; * @return The totalPrice. */ @java.lang.Override public float getTotalPrice() { return totalPrice_; } public static final int ORDERITEMS_FIELD_NUMBER = 3; private java.util.List orderItems_; /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ @java.lang.Override public java.util.List getOrderItemsList() { return orderItems_; } /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ @java.lang.Override public java.util.List getOrderItemsOrBuilderList() { return orderItems_; } /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ @java.lang.Override public int getOrderItemsCount() { return orderItems_.size(); } /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ @java.lang.Override public com.passkit.grpc.TransactionOuterClass.OrderItem getOrderItems(int index) { return orderItems_.get(index); } /** *
     * List of order items in the  transaction
     * 
* * repeated .io.OrderItem orderItems = 3; */ @java.lang.Override public com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder getOrderItemsOrBuilder( int index) { return orderItems_.get(index); } public static final int DISCOUNT_FIELD_NUMBER = 4; private float discount_; /** *
     * The total discount amount
     * 
* * float discount = 4; * @return The discount. */ @java.lang.Override public float getDiscount() { return discount_; } public static final int DISCOUNTITEMS_FIELD_NUMBER = 5; private java.util.List discountItems_; /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ @java.lang.Override public java.util.List getDiscountItemsList() { return discountItems_; } /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ @java.lang.Override public java.util.List getDiscountItemsOrBuilderList() { return discountItems_; } /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ @java.lang.Override public int getDiscountItemsCount() { return discountItems_.size(); } /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ @java.lang.Override public com.passkit.grpc.TransactionOuterClass.DiscountItem getDiscountItems(int index) { return discountItems_.get(index); } /** *
     * List of discount items
     * 
* * repeated .io.DiscountItem discountItems = 5; */ @java.lang.Override public com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder getDiscountItemsOrBuilder( int index) { return discountItems_.get(index); } public static final int SERVICECHARGE_FIELD_NUMBER = 6; private float serviceCharge_; /** *
     * The service charge amount
     * 
* * float serviceCharge = 6; * @return The serviceCharge. */ @java.lang.Override public float getServiceCharge() { return serviceCharge_; } public static final int TOTALTAX_FIELD_NUMBER = 7; private float totalTax_; /** *
     * The tax amount.
     * 
* * float totalTax = 7; * @return The totalTax. */ @java.lang.Override public float getTotalTax() { return totalTax_; } public static final int FINALPRICE_FIELD_NUMBER = 8; private float finalPrice_; /** *
     * The final price of the transaction: (total price + service charge + (totalTax: if POS settings set to tax exclusive)) - discount
     * 
* * float finalPrice = 8; * @return The finalPrice. */ @java.lang.Override public float getFinalPrice() { return finalPrice_; } public static final int ROUNDINGDIFFERENCE_FIELD_NUMBER = 9; private float roundingDifference_; /** *
     * Rounding difference
     * 
* * float roundingDifference = 9; * @return The roundingDifference. */ @java.lang.Override public float getRoundingDifference() { return roundingDifference_; } public static final int ISREFUNDED_FIELD_NUMBER = 10; private boolean isRefunded_; /** *
     * Indicates if this transaction is a refund
     * 
* * bool isRefunded = 10; * @return The isRefunded. */ @java.lang.Override public boolean getIsRefunded() { return isRefunded_; } public static final int TIMESTAMP_FIELD_NUMBER = 11; private com.passkit.grpc.CommonObjects.Date timestamp_; /** *
     * The transaction timestamp
     * 
* * .io.Date timestamp = 11; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return timestamp_ != null; } /** *
     * The transaction timestamp
     * 
* * .io.Date timestamp = 11; * @return The timestamp. */ @java.lang.Override public com.passkit.grpc.CommonObjects.Date getTimestamp() { return timestamp_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : timestamp_; } /** *
     * The transaction timestamp
     * 
* * .io.Date timestamp = 11; */ @java.lang.Override public com.passkit.grpc.CommonObjects.DateOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int CURRENCY_FIELD_NUMBER = 12; private volatile java.lang.Object currency_; /** *
     * The transaction currency
     * 
* * string currency = 12; * @return The currency. */ @java.lang.Override public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } } /** *
     * The transaction currency
     * 
* * string currency = 12; * @return The bytes for currency. */ @java.lang.Override public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCATION_FIELD_NUMBER = 13; private com.passkit.grpc.Proximity.GPSLocation location_; /** *
     * GPS details of check in
     * 
* * .io.GPSLocation location = 13; * @return Whether the location field is set. */ @java.lang.Override public boolean hasLocation() { return location_ != null; } /** *
     * GPS details of check in
     * 
* * .io.GPSLocation location = 13; * @return The location. */ @java.lang.Override public com.passkit.grpc.Proximity.GPSLocation getLocation() { return location_ == null ? com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance() : location_; } /** *
     * GPS details of check in
     * 
* * .io.GPSLocation location = 13; */ @java.lang.Override public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int TRANSACTIONSOURCE_FIELD_NUMBER = 14; private volatile java.lang.Object transactionSource_; /** *
     * 17 is reserved for transaction source (online, or restaurant code)
     * 
* * string transactionSource = 14; * @return The transactionSource. */ @java.lang.Override public java.lang.String getTransactionSource() { java.lang.Object ref = transactionSource_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionSource_ = s; return s; } } /** *
     * 17 is reserved for transaction source (online, or restaurant code)
     * 
* * string transactionSource = 14; * @return The bytes for transactionSource. */ @java.lang.Override public com.google.protobuf.ByteString getTransactionSourceBytes() { java.lang.Object ref = transactionSource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getReferenceIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, referenceId_); } if (totalPrice_ != 0F) { output.writeFloat(2, totalPrice_); } for (int i = 0; i < orderItems_.size(); i++) { output.writeMessage(3, orderItems_.get(i)); } if (discount_ != 0F) { output.writeFloat(4, discount_); } for (int i = 0; i < discountItems_.size(); i++) { output.writeMessage(5, discountItems_.get(i)); } if (serviceCharge_ != 0F) { output.writeFloat(6, serviceCharge_); } if (totalTax_ != 0F) { output.writeFloat(7, totalTax_); } if (finalPrice_ != 0F) { output.writeFloat(8, finalPrice_); } if (roundingDifference_ != 0F) { output.writeFloat(9, roundingDifference_); } if (isRefunded_ != false) { output.writeBool(10, isRefunded_); } if (timestamp_ != null) { output.writeMessage(11, getTimestamp()); } if (!getCurrencyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, currency_); } if (location_ != null) { output.writeMessage(13, getLocation()); } if (!getTransactionSourceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, transactionSource_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getReferenceIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, referenceId_); } if (totalPrice_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, totalPrice_); } for (int i = 0; i < orderItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, orderItems_.get(i)); } if (discount_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, discount_); } for (int i = 0; i < discountItems_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, discountItems_.get(i)); } if (serviceCharge_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(6, serviceCharge_); } if (totalTax_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, totalTax_); } if (finalPrice_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(8, finalPrice_); } if (roundingDifference_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(9, roundingDifference_); } if (isRefunded_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, isRefunded_); } if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getTimestamp()); } if (!getCurrencyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, currency_); } if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getLocation()); } if (!getTransactionSourceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, transactionSource_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.passkit.grpc.TransactionOuterClass.Transaction)) { return super.equals(obj); } com.passkit.grpc.TransactionOuterClass.Transaction other = (com.passkit.grpc.TransactionOuterClass.Transaction) obj; if (!getReferenceId() .equals(other.getReferenceId())) return false; if (java.lang.Float.floatToIntBits(getTotalPrice()) != java.lang.Float.floatToIntBits( other.getTotalPrice())) return false; if (!getOrderItemsList() .equals(other.getOrderItemsList())) return false; if (java.lang.Float.floatToIntBits(getDiscount()) != java.lang.Float.floatToIntBits( other.getDiscount())) return false; if (!getDiscountItemsList() .equals(other.getDiscountItemsList())) return false; if (java.lang.Float.floatToIntBits(getServiceCharge()) != java.lang.Float.floatToIntBits( other.getServiceCharge())) return false; if (java.lang.Float.floatToIntBits(getTotalTax()) != java.lang.Float.floatToIntBits( other.getTotalTax())) return false; if (java.lang.Float.floatToIntBits(getFinalPrice()) != java.lang.Float.floatToIntBits( other.getFinalPrice())) return false; if (java.lang.Float.floatToIntBits(getRoundingDifference()) != java.lang.Float.floatToIntBits( other.getRoundingDifference())) return false; if (getIsRefunded() != other.getIsRefunded()) return false; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getCurrency() .equals(other.getCurrency())) return false; if (hasLocation() != other.hasLocation()) return false; if (hasLocation()) { if (!getLocation() .equals(other.getLocation())) return false; } if (!getTransactionSource() .equals(other.getTransactionSource())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + REFERENCEID_FIELD_NUMBER; hash = (53 * hash) + getReferenceId().hashCode(); hash = (37 * hash) + TOTALPRICE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getTotalPrice()); if (getOrderItemsCount() > 0) { hash = (37 * hash) + ORDERITEMS_FIELD_NUMBER; hash = (53 * hash) + getOrderItemsList().hashCode(); } hash = (37 * hash) + DISCOUNT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getDiscount()); if (getDiscountItemsCount() > 0) { hash = (37 * hash) + DISCOUNTITEMS_FIELD_NUMBER; hash = (53 * hash) + getDiscountItemsList().hashCode(); } hash = (37 * hash) + SERVICECHARGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getServiceCharge()); hash = (37 * hash) + TOTALTAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getTotalTax()); hash = (37 * hash) + FINALPRICE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFinalPrice()); hash = (37 * hash) + ROUNDINGDIFFERENCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRoundingDifference()); hash = (37 * hash) + ISREFUNDED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsRefunded()); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } hash = (37 * hash) + TRANSACTIONSOURCE_FIELD_NUMBER; hash = (53 * hash) + getTransactionSource().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.Transaction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.passkit.grpc.TransactionOuterClass.Transaction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * Some point based loyalty programs will pass on transaction information (can be used for segmenting, additional reporting, and/or showing transactions on back of the pass).
     * 
* * Protobuf type {@code io.Transaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.Transaction) com.passkit.grpc.TransactionOuterClass.TransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_Transaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_Transaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.TransactionOuterClass.Transaction.class, com.passkit.grpc.TransactionOuterClass.Transaction.Builder.class); } // Construct using com.passkit.grpc.TransactionOuterClass.Transaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOrderItemsFieldBuilder(); getDiscountItemsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); referenceId_ = ""; totalPrice_ = 0F; if (orderItemsBuilder_ == null) { orderItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { orderItemsBuilder_.clear(); } discount_ = 0F; if (discountItemsBuilder_ == null) { discountItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { discountItemsBuilder_.clear(); } serviceCharge_ = 0F; totalTax_ = 0F; finalPrice_ = 0F; roundingDifference_ = 0F; isRefunded_ = false; if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } currency_ = ""; if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } transactionSource_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_Transaction_descriptor; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.Transaction getDefaultInstanceForType() { return com.passkit.grpc.TransactionOuterClass.Transaction.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.Transaction build() { com.passkit.grpc.TransactionOuterClass.Transaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.Transaction buildPartial() { com.passkit.grpc.TransactionOuterClass.Transaction result = new com.passkit.grpc.TransactionOuterClass.Transaction(this); int from_bitField0_ = bitField0_; result.referenceId_ = referenceId_; result.totalPrice_ = totalPrice_; if (orderItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { orderItems_ = java.util.Collections.unmodifiableList(orderItems_); bitField0_ = (bitField0_ & ~0x00000001); } result.orderItems_ = orderItems_; } else { result.orderItems_ = orderItemsBuilder_.build(); } result.discount_ = discount_; if (discountItemsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { discountItems_ = java.util.Collections.unmodifiableList(discountItems_); bitField0_ = (bitField0_ & ~0x00000002); } result.discountItems_ = discountItems_; } else { result.discountItems_ = discountItemsBuilder_.build(); } result.serviceCharge_ = serviceCharge_; result.totalTax_ = totalTax_; result.finalPrice_ = finalPrice_; result.roundingDifference_ = roundingDifference_; result.isRefunded_ = isRefunded_; if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.currency_ = currency_; if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } result.transactionSource_ = transactionSource_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.passkit.grpc.TransactionOuterClass.Transaction) { return mergeFrom((com.passkit.grpc.TransactionOuterClass.Transaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.TransactionOuterClass.Transaction other) { if (other == com.passkit.grpc.TransactionOuterClass.Transaction.getDefaultInstance()) return this; if (!other.getReferenceId().isEmpty()) { referenceId_ = other.referenceId_; onChanged(); } if (other.getTotalPrice() != 0F) { setTotalPrice(other.getTotalPrice()); } if (orderItemsBuilder_ == null) { if (!other.orderItems_.isEmpty()) { if (orderItems_.isEmpty()) { orderItems_ = other.orderItems_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOrderItemsIsMutable(); orderItems_.addAll(other.orderItems_); } onChanged(); } } else { if (!other.orderItems_.isEmpty()) { if (orderItemsBuilder_.isEmpty()) { orderItemsBuilder_.dispose(); orderItemsBuilder_ = null; orderItems_ = other.orderItems_; bitField0_ = (bitField0_ & ~0x00000001); orderItemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrderItemsFieldBuilder() : null; } else { orderItemsBuilder_.addAllMessages(other.orderItems_); } } } if (other.getDiscount() != 0F) { setDiscount(other.getDiscount()); } if (discountItemsBuilder_ == null) { if (!other.discountItems_.isEmpty()) { if (discountItems_.isEmpty()) { discountItems_ = other.discountItems_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDiscountItemsIsMutable(); discountItems_.addAll(other.discountItems_); } onChanged(); } } else { if (!other.discountItems_.isEmpty()) { if (discountItemsBuilder_.isEmpty()) { discountItemsBuilder_.dispose(); discountItemsBuilder_ = null; discountItems_ = other.discountItems_; bitField0_ = (bitField0_ & ~0x00000002); discountItemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDiscountItemsFieldBuilder() : null; } else { discountItemsBuilder_.addAllMessages(other.discountItems_); } } } if (other.getServiceCharge() != 0F) { setServiceCharge(other.getServiceCharge()); } if (other.getTotalTax() != 0F) { setTotalTax(other.getTotalTax()); } if (other.getFinalPrice() != 0F) { setFinalPrice(other.getFinalPrice()); } if (other.getRoundingDifference() != 0F) { setRoundingDifference(other.getRoundingDifference()); } if (other.getIsRefunded() != false) { setIsRefunded(other.getIsRefunded()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; onChanged(); } if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (!other.getTransactionSource().isEmpty()) { transactionSource_ = other.transactionSource_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.TransactionOuterClass.Transaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.TransactionOuterClass.Transaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object referenceId_ = ""; /** *
       * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
       * 
* * string referenceId = 1; * @return The referenceId. */ public java.lang.String getReferenceId() { java.lang.Object ref = referenceId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referenceId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
       * 
* * string referenceId = 1; * @return The bytes for referenceId. */ public com.google.protobuf.ByteString getReferenceIdBytes() { java.lang.Object ref = referenceId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); referenceId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
       * 
* * string referenceId = 1; * @param value The referenceId to set. * @return This builder for chaining. */ public Builder setReferenceId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } referenceId_ = value; onChanged(); return this; } /** *
       * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
       * 
* * string referenceId = 1; * @return This builder for chaining. */ public Builder clearReferenceId() { referenceId_ = getDefaultInstance().getReferenceId(); onChanged(); return this; } /** *
       * Reference ID is the ID used in the system where the transaction is coming from. Needs to be unique within the program.
       * 
* * string referenceId = 1; * @param value The bytes for referenceId to set. * @return This builder for chaining. */ public Builder setReferenceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referenceId_ = value; onChanged(); return this; } private float totalPrice_ ; /** *
       * The total amount of all order items. Based on POS setting, the totalPrice can already include the tax amount
       * 
* * float totalPrice = 2; * @return The totalPrice. */ @java.lang.Override public float getTotalPrice() { return totalPrice_; } /** *
       * The total amount of all order items. Based on POS setting, the totalPrice can already include the tax amount
       * 
* * float totalPrice = 2; * @param value The totalPrice to set. * @return This builder for chaining. */ public Builder setTotalPrice(float value) { totalPrice_ = value; onChanged(); return this; } /** *
       * The total amount of all order items. Based on POS setting, the totalPrice can already include the tax amount
       * 
* * float totalPrice = 2; * @return This builder for chaining. */ public Builder clearTotalPrice() { totalPrice_ = 0F; onChanged(); return this; } private java.util.List orderItems_ = java.util.Collections.emptyList(); private void ensureOrderItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { orderItems_ = new java.util.ArrayList(orderItems_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.TransactionOuterClass.OrderItem, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder, com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder> orderItemsBuilder_; /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public java.util.List getOrderItemsList() { if (orderItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(orderItems_); } else { return orderItemsBuilder_.getMessageList(); } } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public int getOrderItemsCount() { if (orderItemsBuilder_ == null) { return orderItems_.size(); } else { return orderItemsBuilder_.getCount(); } } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public com.passkit.grpc.TransactionOuterClass.OrderItem getOrderItems(int index) { if (orderItemsBuilder_ == null) { return orderItems_.get(index); } else { return orderItemsBuilder_.getMessage(index); } } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder setOrderItems( int index, com.passkit.grpc.TransactionOuterClass.OrderItem value) { if (orderItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderItemsIsMutable(); orderItems_.set(index, value); onChanged(); } else { orderItemsBuilder_.setMessage(index, value); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder setOrderItems( int index, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder builderForValue) { if (orderItemsBuilder_ == null) { ensureOrderItemsIsMutable(); orderItems_.set(index, builderForValue.build()); onChanged(); } else { orderItemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder addOrderItems(com.passkit.grpc.TransactionOuterClass.OrderItem value) { if (orderItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderItemsIsMutable(); orderItems_.add(value); onChanged(); } else { orderItemsBuilder_.addMessage(value); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder addOrderItems( int index, com.passkit.grpc.TransactionOuterClass.OrderItem value) { if (orderItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrderItemsIsMutable(); orderItems_.add(index, value); onChanged(); } else { orderItemsBuilder_.addMessage(index, value); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder addOrderItems( com.passkit.grpc.TransactionOuterClass.OrderItem.Builder builderForValue) { if (orderItemsBuilder_ == null) { ensureOrderItemsIsMutable(); orderItems_.add(builderForValue.build()); onChanged(); } else { orderItemsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder addOrderItems( int index, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder builderForValue) { if (orderItemsBuilder_ == null) { ensureOrderItemsIsMutable(); orderItems_.add(index, builderForValue.build()); onChanged(); } else { orderItemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder addAllOrderItems( java.lang.Iterable values) { if (orderItemsBuilder_ == null) { ensureOrderItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orderItems_); onChanged(); } else { orderItemsBuilder_.addAllMessages(values); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder clearOrderItems() { if (orderItemsBuilder_ == null) { orderItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { orderItemsBuilder_.clear(); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public Builder removeOrderItems(int index) { if (orderItemsBuilder_ == null) { ensureOrderItemsIsMutable(); orderItems_.remove(index); onChanged(); } else { orderItemsBuilder_.remove(index); } return this; } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public com.passkit.grpc.TransactionOuterClass.OrderItem.Builder getOrderItemsBuilder( int index) { return getOrderItemsFieldBuilder().getBuilder(index); } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder getOrderItemsOrBuilder( int index) { if (orderItemsBuilder_ == null) { return orderItems_.get(index); } else { return orderItemsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public java.util.List getOrderItemsOrBuilderList() { if (orderItemsBuilder_ != null) { return orderItemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orderItems_); } } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public com.passkit.grpc.TransactionOuterClass.OrderItem.Builder addOrderItemsBuilder() { return getOrderItemsFieldBuilder().addBuilder( com.passkit.grpc.TransactionOuterClass.OrderItem.getDefaultInstance()); } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public com.passkit.grpc.TransactionOuterClass.OrderItem.Builder addOrderItemsBuilder( int index) { return getOrderItemsFieldBuilder().addBuilder( index, com.passkit.grpc.TransactionOuterClass.OrderItem.getDefaultInstance()); } /** *
       * List of order items in the  transaction
       * 
* * repeated .io.OrderItem orderItems = 3; */ public java.util.List getOrderItemsBuilderList() { return getOrderItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.TransactionOuterClass.OrderItem, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder, com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder> getOrderItemsFieldBuilder() { if (orderItemsBuilder_ == null) { orderItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.TransactionOuterClass.OrderItem, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder, com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder>( orderItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); orderItems_ = null; } return orderItemsBuilder_; } private float discount_ ; /** *
       * The total discount amount
       * 
* * float discount = 4; * @return The discount. */ @java.lang.Override public float getDiscount() { return discount_; } /** *
       * The total discount amount
       * 
* * float discount = 4; * @param value The discount to set. * @return This builder for chaining. */ public Builder setDiscount(float value) { discount_ = value; onChanged(); return this; } /** *
       * The total discount amount
       * 
* * float discount = 4; * @return This builder for chaining. */ public Builder clearDiscount() { discount_ = 0F; onChanged(); return this; } private java.util.List discountItems_ = java.util.Collections.emptyList(); private void ensureDiscountItemsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { discountItems_ = new java.util.ArrayList(discountItems_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.TransactionOuterClass.DiscountItem, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder, com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder> discountItemsBuilder_; /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public java.util.List getDiscountItemsList() { if (discountItemsBuilder_ == null) { return java.util.Collections.unmodifiableList(discountItems_); } else { return discountItemsBuilder_.getMessageList(); } } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public int getDiscountItemsCount() { if (discountItemsBuilder_ == null) { return discountItems_.size(); } else { return discountItemsBuilder_.getCount(); } } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public com.passkit.grpc.TransactionOuterClass.DiscountItem getDiscountItems(int index) { if (discountItemsBuilder_ == null) { return discountItems_.get(index); } else { return discountItemsBuilder_.getMessage(index); } } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder setDiscountItems( int index, com.passkit.grpc.TransactionOuterClass.DiscountItem value) { if (discountItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiscountItemsIsMutable(); discountItems_.set(index, value); onChanged(); } else { discountItemsBuilder_.setMessage(index, value); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder setDiscountItems( int index, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder builderForValue) { if (discountItemsBuilder_ == null) { ensureDiscountItemsIsMutable(); discountItems_.set(index, builderForValue.build()); onChanged(); } else { discountItemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder addDiscountItems(com.passkit.grpc.TransactionOuterClass.DiscountItem value) { if (discountItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiscountItemsIsMutable(); discountItems_.add(value); onChanged(); } else { discountItemsBuilder_.addMessage(value); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder addDiscountItems( int index, com.passkit.grpc.TransactionOuterClass.DiscountItem value) { if (discountItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDiscountItemsIsMutable(); discountItems_.add(index, value); onChanged(); } else { discountItemsBuilder_.addMessage(index, value); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder addDiscountItems( com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder builderForValue) { if (discountItemsBuilder_ == null) { ensureDiscountItemsIsMutable(); discountItems_.add(builderForValue.build()); onChanged(); } else { discountItemsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder addDiscountItems( int index, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder builderForValue) { if (discountItemsBuilder_ == null) { ensureDiscountItemsIsMutable(); discountItems_.add(index, builderForValue.build()); onChanged(); } else { discountItemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder addAllDiscountItems( java.lang.Iterable values) { if (discountItemsBuilder_ == null) { ensureDiscountItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, discountItems_); onChanged(); } else { discountItemsBuilder_.addAllMessages(values); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder clearDiscountItems() { if (discountItemsBuilder_ == null) { discountItems_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { discountItemsBuilder_.clear(); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public Builder removeDiscountItems(int index) { if (discountItemsBuilder_ == null) { ensureDiscountItemsIsMutable(); discountItems_.remove(index); onChanged(); } else { discountItemsBuilder_.remove(index); } return this; } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder getDiscountItemsBuilder( int index) { return getDiscountItemsFieldBuilder().getBuilder(index); } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder getDiscountItemsOrBuilder( int index) { if (discountItemsBuilder_ == null) { return discountItems_.get(index); } else { return discountItemsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public java.util.List getDiscountItemsOrBuilderList() { if (discountItemsBuilder_ != null) { return discountItemsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(discountItems_); } } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder addDiscountItemsBuilder() { return getDiscountItemsFieldBuilder().addBuilder( com.passkit.grpc.TransactionOuterClass.DiscountItem.getDefaultInstance()); } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder addDiscountItemsBuilder( int index) { return getDiscountItemsFieldBuilder().addBuilder( index, com.passkit.grpc.TransactionOuterClass.DiscountItem.getDefaultInstance()); } /** *
       * List of discount items
       * 
* * repeated .io.DiscountItem discountItems = 5; */ public java.util.List getDiscountItemsBuilderList() { return getDiscountItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.TransactionOuterClass.DiscountItem, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder, com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder> getDiscountItemsFieldBuilder() { if (discountItemsBuilder_ == null) { discountItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.passkit.grpc.TransactionOuterClass.DiscountItem, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder, com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder>( discountItems_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); discountItems_ = null; } return discountItemsBuilder_; } private float serviceCharge_ ; /** *
       * The service charge amount
       * 
* * float serviceCharge = 6; * @return The serviceCharge. */ @java.lang.Override public float getServiceCharge() { return serviceCharge_; } /** *
       * The service charge amount
       * 
* * float serviceCharge = 6; * @param value The serviceCharge to set. * @return This builder for chaining. */ public Builder setServiceCharge(float value) { serviceCharge_ = value; onChanged(); return this; } /** *
       * The service charge amount
       * 
* * float serviceCharge = 6; * @return This builder for chaining. */ public Builder clearServiceCharge() { serviceCharge_ = 0F; onChanged(); return this; } private float totalTax_ ; /** *
       * The tax amount.
       * 
* * float totalTax = 7; * @return The totalTax. */ @java.lang.Override public float getTotalTax() { return totalTax_; } /** *
       * The tax amount.
       * 
* * float totalTax = 7; * @param value The totalTax to set. * @return This builder for chaining. */ public Builder setTotalTax(float value) { totalTax_ = value; onChanged(); return this; } /** *
       * The tax amount.
       * 
* * float totalTax = 7; * @return This builder for chaining. */ public Builder clearTotalTax() { totalTax_ = 0F; onChanged(); return this; } private float finalPrice_ ; /** *
       * The final price of the transaction: (total price + service charge + (totalTax: if POS settings set to tax exclusive)) - discount
       * 
* * float finalPrice = 8; * @return The finalPrice. */ @java.lang.Override public float getFinalPrice() { return finalPrice_; } /** *
       * The final price of the transaction: (total price + service charge + (totalTax: if POS settings set to tax exclusive)) - discount
       * 
* * float finalPrice = 8; * @param value The finalPrice to set. * @return This builder for chaining. */ public Builder setFinalPrice(float value) { finalPrice_ = value; onChanged(); return this; } /** *
       * The final price of the transaction: (total price + service charge + (totalTax: if POS settings set to tax exclusive)) - discount
       * 
* * float finalPrice = 8; * @return This builder for chaining. */ public Builder clearFinalPrice() { finalPrice_ = 0F; onChanged(); return this; } private float roundingDifference_ ; /** *
       * Rounding difference
       * 
* * float roundingDifference = 9; * @return The roundingDifference. */ @java.lang.Override public float getRoundingDifference() { return roundingDifference_; } /** *
       * Rounding difference
       * 
* * float roundingDifference = 9; * @param value The roundingDifference to set. * @return This builder for chaining. */ public Builder setRoundingDifference(float value) { roundingDifference_ = value; onChanged(); return this; } /** *
       * Rounding difference
       * 
* * float roundingDifference = 9; * @return This builder for chaining. */ public Builder clearRoundingDifference() { roundingDifference_ = 0F; onChanged(); return this; } private boolean isRefunded_ ; /** *
       * Indicates if this transaction is a refund
       * 
* * bool isRefunded = 10; * @return The isRefunded. */ @java.lang.Override public boolean getIsRefunded() { return isRefunded_; } /** *
       * Indicates if this transaction is a refund
       * 
* * bool isRefunded = 10; * @param value The isRefunded to set. * @return This builder for chaining. */ public Builder setIsRefunded(boolean value) { isRefunded_ = value; onChanged(); return this; } /** *
       * Indicates if this transaction is a refund
       * 
* * bool isRefunded = 10; * @return This builder for chaining. */ public Builder clearIsRefunded() { isRefunded_ = false; onChanged(); return this; } private com.passkit.grpc.CommonObjects.Date timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> timestampBuilder_; /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; * @return The timestamp. */ public com.passkit.grpc.CommonObjects.Date getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ public Builder setTimestamp(com.passkit.grpc.CommonObjects.Date value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ public Builder setTimestamp( com.passkit.grpc.CommonObjects.Date.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ public Builder mergeTimestamp(com.passkit.grpc.CommonObjects.Date value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.passkit.grpc.CommonObjects.Date.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ public com.passkit.grpc.CommonObjects.Date.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ public com.passkit.grpc.CommonObjects.DateOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.passkit.grpc.CommonObjects.Date.getDefaultInstance() : timestamp_; } } /** *
       * The transaction timestamp
       * 
* * .io.Date timestamp = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.CommonObjects.Date, com.passkit.grpc.CommonObjects.Date.Builder, com.passkit.grpc.CommonObjects.DateOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private java.lang.Object currency_ = ""; /** *
       * The transaction currency
       * 
* * string currency = 12; * @return The currency. */ public java.lang.String getCurrency() { java.lang.Object ref = currency_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); currency_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The transaction currency
       * 
* * string currency = 12; * @return The bytes for currency. */ public com.google.protobuf.ByteString getCurrencyBytes() { java.lang.Object ref = currency_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); currency_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The transaction currency
       * 
* * string currency = 12; * @param value The currency to set. * @return This builder for chaining. */ public Builder setCurrency( java.lang.String value) { if (value == null) { throw new NullPointerException(); } currency_ = value; onChanged(); return this; } /** *
       * The transaction currency
       * 
* * string currency = 12; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); onChanged(); return this; } /** *
       * The transaction currency
       * 
* * string currency = 12; * @param value The bytes for currency to set. * @return This builder for chaining. */ public Builder setCurrencyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); currency_ = value; onChanged(); return this; } private com.passkit.grpc.Proximity.GPSLocation location_; private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder> locationBuilder_; /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; * @return Whether the location field is set. */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; * @return The location. */ public com.passkit.grpc.Proximity.GPSLocation getLocation() { if (locationBuilder_ == null) { return location_ == null ? com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ public Builder setLocation(com.passkit.grpc.Proximity.GPSLocation value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ public Builder setLocation( com.passkit.grpc.Proximity.GPSLocation.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ public Builder mergeLocation(com.passkit.grpc.Proximity.GPSLocation value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = com.passkit.grpc.Proximity.GPSLocation.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ public com.passkit.grpc.Proximity.GPSLocation.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ public com.passkit.grpc.Proximity.GPSLocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? com.passkit.grpc.Proximity.GPSLocation.getDefaultInstance() : location_; } } /** *
       * GPS details of check in
       * 
* * .io.GPSLocation location = 13; */ private com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.passkit.grpc.Proximity.GPSLocation, com.passkit.grpc.Proximity.GPSLocation.Builder, com.passkit.grpc.Proximity.GPSLocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private java.lang.Object transactionSource_ = ""; /** *
       * 17 is reserved for transaction source (online, or restaurant code)
       * 
* * string transactionSource = 14; * @return The transactionSource. */ public java.lang.String getTransactionSource() { java.lang.Object ref = transactionSource_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionSource_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 17 is reserved for transaction source (online, or restaurant code)
       * 
* * string transactionSource = 14; * @return The bytes for transactionSource. */ public com.google.protobuf.ByteString getTransactionSourceBytes() { java.lang.Object ref = transactionSource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 17 is reserved for transaction source (online, or restaurant code)
       * 
* * string transactionSource = 14; * @param value The transactionSource to set. * @return This builder for chaining. */ public Builder setTransactionSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } transactionSource_ = value; onChanged(); return this; } /** *
       * 17 is reserved for transaction source (online, or restaurant code)
       * 
* * string transactionSource = 14; * @return This builder for chaining. */ public Builder clearTransactionSource() { transactionSource_ = getDefaultInstance().getTransactionSource(); onChanged(); return this; } /** *
       * 17 is reserved for transaction source (online, or restaurant code)
       * 
* * string transactionSource = 14; * @param value The bytes for transactionSource to set. * @return This builder for chaining. */ public Builder setTransactionSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionSource_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.Transaction) } // @@protoc_insertion_point(class_scope:io.Transaction) private static final com.passkit.grpc.TransactionOuterClass.Transaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.TransactionOuterClass.Transaction(); } public static com.passkit.grpc.TransactionOuterClass.Transaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Transaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Transaction(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.Transaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DiscountItemOrBuilder extends // @@protoc_insertion_point(interface_extends:io.DiscountItem) com.google.protobuf.MessageOrBuilder { /** *
     * Discount code
     * 
* * string discountCode = 1; * @return The discountCode. */ java.lang.String getDiscountCode(); /** *
     * Discount code
     * 
* * string discountCode = 1; * @return The bytes for discountCode. */ com.google.protobuf.ByteString getDiscountCodeBytes(); /** *
     * Specific voucher code
     * 
* * string voucherCode = 2; * @return The voucherCode. */ java.lang.String getVoucherCode(); /** *
     * Specific voucher code
     * 
* * string voucherCode = 2; * @return The bytes for voucherCode. */ com.google.protobuf.ByteString getVoucherCodeBytes(); /** *
     * The discount amount
     * 
* * float amount = 4; * @return The amount. */ float getAmount(); /** *
     * The discount item name
     * 
* * string itemName = 5; * @return The itemName. */ java.lang.String getItemName(); /** *
     * The discount item name
     * 
* * string itemName = 5; * @return The bytes for itemName. */ com.google.protobuf.ByteString getItemNameBytes(); } /** * Protobuf type {@code io.DiscountItem} */ public static final class DiscountItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.DiscountItem) DiscountItemOrBuilder { private static final long serialVersionUID = 0L; // Use DiscountItem.newBuilder() to construct. private DiscountItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DiscountItem() { discountCode_ = ""; voucherCode_ = ""; itemName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DiscountItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DiscountItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); discountCode_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); voucherCode_ = s; break; } case 37: { amount_ = input.readFloat(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); itemName_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_DiscountItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_DiscountItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.TransactionOuterClass.DiscountItem.class, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder.class); } public static final int DISCOUNTCODE_FIELD_NUMBER = 1; private volatile java.lang.Object discountCode_; /** *
     * Discount code
     * 
* * string discountCode = 1; * @return The discountCode. */ @java.lang.Override public java.lang.String getDiscountCode() { java.lang.Object ref = discountCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discountCode_ = s; return s; } } /** *
     * Discount code
     * 
* * string discountCode = 1; * @return The bytes for discountCode. */ @java.lang.Override public com.google.protobuf.ByteString getDiscountCodeBytes() { java.lang.Object ref = discountCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); discountCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VOUCHERCODE_FIELD_NUMBER = 2; private volatile java.lang.Object voucherCode_; /** *
     * Specific voucher code
     * 
* * string voucherCode = 2; * @return The voucherCode. */ @java.lang.Override public java.lang.String getVoucherCode() { java.lang.Object ref = voucherCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); voucherCode_ = s; return s; } } /** *
     * Specific voucher code
     * 
* * string voucherCode = 2; * @return The bytes for voucherCode. */ @java.lang.Override public com.google.protobuf.ByteString getVoucherCodeBytes() { java.lang.Object ref = voucherCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); voucherCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AMOUNT_FIELD_NUMBER = 4; private float amount_; /** *
     * The discount amount
     * 
* * float amount = 4; * @return The amount. */ @java.lang.Override public float getAmount() { return amount_; } public static final int ITEMNAME_FIELD_NUMBER = 5; private volatile java.lang.Object itemName_; /** *
     * The discount item name
     * 
* * string itemName = 5; * @return The itemName. */ @java.lang.Override public java.lang.String getItemName() { java.lang.Object ref = itemName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemName_ = s; return s; } } /** *
     * The discount item name
     * 
* * string itemName = 5; * @return The bytes for itemName. */ @java.lang.Override public com.google.protobuf.ByteString getItemNameBytes() { java.lang.Object ref = itemName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); itemName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getDiscountCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, discountCode_); } if (!getVoucherCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, voucherCode_); } if (amount_ != 0F) { output.writeFloat(4, amount_); } if (!getItemNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, itemName_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getDiscountCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, discountCode_); } if (!getVoucherCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, voucherCode_); } if (amount_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, amount_); } if (!getItemNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, itemName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.passkit.grpc.TransactionOuterClass.DiscountItem)) { return super.equals(obj); } com.passkit.grpc.TransactionOuterClass.DiscountItem other = (com.passkit.grpc.TransactionOuterClass.DiscountItem) obj; if (!getDiscountCode() .equals(other.getDiscountCode())) return false; if (!getVoucherCode() .equals(other.getVoucherCode())) return false; if (java.lang.Float.floatToIntBits(getAmount()) != java.lang.Float.floatToIntBits( other.getAmount())) return false; if (!getItemName() .equals(other.getItemName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISCOUNTCODE_FIELD_NUMBER; hash = (53 * hash) + getDiscountCode().hashCode(); hash = (37 * hash) + VOUCHERCODE_FIELD_NUMBER; hash = (53 * hash) + getVoucherCode().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getAmount()); hash = (37 * hash) + ITEMNAME_FIELD_NUMBER; hash = (53 * hash) + getItemName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.passkit.grpc.TransactionOuterClass.DiscountItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.DiscountItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.DiscountItem) com.passkit.grpc.TransactionOuterClass.DiscountItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_DiscountItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_DiscountItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.TransactionOuterClass.DiscountItem.class, com.passkit.grpc.TransactionOuterClass.DiscountItem.Builder.class); } // Construct using com.passkit.grpc.TransactionOuterClass.DiscountItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); discountCode_ = ""; voucherCode_ = ""; amount_ = 0F; itemName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_DiscountItem_descriptor; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.DiscountItem getDefaultInstanceForType() { return com.passkit.grpc.TransactionOuterClass.DiscountItem.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.DiscountItem build() { com.passkit.grpc.TransactionOuterClass.DiscountItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.DiscountItem buildPartial() { com.passkit.grpc.TransactionOuterClass.DiscountItem result = new com.passkit.grpc.TransactionOuterClass.DiscountItem(this); result.discountCode_ = discountCode_; result.voucherCode_ = voucherCode_; result.amount_ = amount_; result.itemName_ = itemName_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.passkit.grpc.TransactionOuterClass.DiscountItem) { return mergeFrom((com.passkit.grpc.TransactionOuterClass.DiscountItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.TransactionOuterClass.DiscountItem other) { if (other == com.passkit.grpc.TransactionOuterClass.DiscountItem.getDefaultInstance()) return this; if (!other.getDiscountCode().isEmpty()) { discountCode_ = other.discountCode_; onChanged(); } if (!other.getVoucherCode().isEmpty()) { voucherCode_ = other.voucherCode_; onChanged(); } if (other.getAmount() != 0F) { setAmount(other.getAmount()); } if (!other.getItemName().isEmpty()) { itemName_ = other.itemName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.TransactionOuterClass.DiscountItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.TransactionOuterClass.DiscountItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object discountCode_ = ""; /** *
       * Discount code
       * 
* * string discountCode = 1; * @return The discountCode. */ public java.lang.String getDiscountCode() { java.lang.Object ref = discountCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); discountCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Discount code
       * 
* * string discountCode = 1; * @return The bytes for discountCode. */ public com.google.protobuf.ByteString getDiscountCodeBytes() { java.lang.Object ref = discountCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); discountCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Discount code
       * 
* * string discountCode = 1; * @param value The discountCode to set. * @return This builder for chaining. */ public Builder setDiscountCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } discountCode_ = value; onChanged(); return this; } /** *
       * Discount code
       * 
* * string discountCode = 1; * @return This builder for chaining. */ public Builder clearDiscountCode() { discountCode_ = getDefaultInstance().getDiscountCode(); onChanged(); return this; } /** *
       * Discount code
       * 
* * string discountCode = 1; * @param value The bytes for discountCode to set. * @return This builder for chaining. */ public Builder setDiscountCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); discountCode_ = value; onChanged(); return this; } private java.lang.Object voucherCode_ = ""; /** *
       * Specific voucher code
       * 
* * string voucherCode = 2; * @return The voucherCode. */ public java.lang.String getVoucherCode() { java.lang.Object ref = voucherCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); voucherCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Specific voucher code
       * 
* * string voucherCode = 2; * @return The bytes for voucherCode. */ public com.google.protobuf.ByteString getVoucherCodeBytes() { java.lang.Object ref = voucherCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); voucherCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Specific voucher code
       * 
* * string voucherCode = 2; * @param value The voucherCode to set. * @return This builder for chaining. */ public Builder setVoucherCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } voucherCode_ = value; onChanged(); return this; } /** *
       * Specific voucher code
       * 
* * string voucherCode = 2; * @return This builder for chaining. */ public Builder clearVoucherCode() { voucherCode_ = getDefaultInstance().getVoucherCode(); onChanged(); return this; } /** *
       * Specific voucher code
       * 
* * string voucherCode = 2; * @param value The bytes for voucherCode to set. * @return This builder for chaining. */ public Builder setVoucherCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); voucherCode_ = value; onChanged(); return this; } private float amount_ ; /** *
       * The discount amount
       * 
* * float amount = 4; * @return The amount. */ @java.lang.Override public float getAmount() { return amount_; } /** *
       * The discount amount
       * 
* * float amount = 4; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(float value) { amount_ = value; onChanged(); return this; } /** *
       * The discount amount
       * 
* * float amount = 4; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = 0F; onChanged(); return this; } private java.lang.Object itemName_ = ""; /** *
       * The discount item name
       * 
* * string itemName = 5; * @return The itemName. */ public java.lang.String getItemName() { java.lang.Object ref = itemName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The discount item name
       * 
* * string itemName = 5; * @return The bytes for itemName. */ public com.google.protobuf.ByteString getItemNameBytes() { java.lang.Object ref = itemName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); itemName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The discount item name
       * 
* * string itemName = 5; * @param value The itemName to set. * @return This builder for chaining. */ public Builder setItemName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } itemName_ = value; onChanged(); return this; } /** *
       * The discount item name
       * 
* * string itemName = 5; * @return This builder for chaining. */ public Builder clearItemName() { itemName_ = getDefaultInstance().getItemName(); onChanged(); return this; } /** *
       * The discount item name
       * 
* * string itemName = 5; * @param value The bytes for itemName to set. * @return This builder for chaining. */ public Builder setItemNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); itemName_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.DiscountItem) } // @@protoc_insertion_point(class_scope:io.DiscountItem) private static final com.passkit.grpc.TransactionOuterClass.DiscountItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.TransactionOuterClass.DiscountItem(); } public static com.passkit.grpc.TransactionOuterClass.DiscountItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DiscountItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DiscountItem(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.DiscountItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OrderItemOrBuilder extends // @@protoc_insertion_point(interface_extends:io.OrderItem) com.google.protobuf.MessageOrBuilder { /** *
     * The item price
     * 
* * float amount = 1; * @return The amount. */ float getAmount(); /** *
     * Tax on the item
     * 
* * float tax = 2; * @return The tax. */ float getTax(); /** *
     * The item name
     * 
* * string itemName = 3; * @return The itemName. */ java.lang.String getItemName(); /** *
     * The item name
     * 
* * string itemName = 3; * @return The bytes for itemName. */ com.google.protobuf.ByteString getItemNameBytes(); /** *
     * The quantity of items ordered
     * 
* * int32 quantity = 4; * @return The quantity. */ int getQuantity(); /** *
     * The SKU as used in the system generating the transaction
     * 
* * string sku = 5; * @return The sku. */ java.lang.String getSku(); /** *
     * The SKU as used in the system generating the transaction
     * 
* * string sku = 5; * @return The bytes for sku. */ com.google.protobuf.ByteString getSkuBytes(); } /** * Protobuf type {@code io.OrderItem} */ public static final class OrderItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.OrderItem) OrderItemOrBuilder { private static final long serialVersionUID = 0L; // Use OrderItem.newBuilder() to construct. private OrderItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OrderItem() { itemName_ = ""; sku_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OrderItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OrderItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { amount_ = input.readFloat(); break; } case 21: { tax_ = input.readFloat(); break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); itemName_ = s; break; } case 32: { quantity_ = input.readInt32(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); sku_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_OrderItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_OrderItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.TransactionOuterClass.OrderItem.class, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder.class); } public static final int AMOUNT_FIELD_NUMBER = 1; private float amount_; /** *
     * The item price
     * 
* * float amount = 1; * @return The amount. */ @java.lang.Override public float getAmount() { return amount_; } public static final int TAX_FIELD_NUMBER = 2; private float tax_; /** *
     * Tax on the item
     * 
* * float tax = 2; * @return The tax. */ @java.lang.Override public float getTax() { return tax_; } public static final int ITEMNAME_FIELD_NUMBER = 3; private volatile java.lang.Object itemName_; /** *
     * The item name
     * 
* * string itemName = 3; * @return The itemName. */ @java.lang.Override public java.lang.String getItemName() { java.lang.Object ref = itemName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemName_ = s; return s; } } /** *
     * The item name
     * 
* * string itemName = 3; * @return The bytes for itemName. */ @java.lang.Override public com.google.protobuf.ByteString getItemNameBytes() { java.lang.Object ref = itemName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); itemName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUANTITY_FIELD_NUMBER = 4; private int quantity_; /** *
     * The quantity of items ordered
     * 
* * int32 quantity = 4; * @return The quantity. */ @java.lang.Override public int getQuantity() { return quantity_; } public static final int SKU_FIELD_NUMBER = 5; private volatile java.lang.Object sku_; /** *
     * The SKU as used in the system generating the transaction
     * 
* * string sku = 5; * @return The sku. */ @java.lang.Override public java.lang.String getSku() { java.lang.Object ref = sku_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sku_ = s; return s; } } /** *
     * The SKU as used in the system generating the transaction
     * 
* * string sku = 5; * @return The bytes for sku. */ @java.lang.Override public com.google.protobuf.ByteString getSkuBytes() { java.lang.Object ref = sku_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sku_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (amount_ != 0F) { output.writeFloat(1, amount_); } if (tax_ != 0F) { output.writeFloat(2, tax_); } if (!getItemNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, itemName_); } if (quantity_ != 0) { output.writeInt32(4, quantity_); } if (!getSkuBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, sku_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (amount_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(1, amount_); } if (tax_ != 0F) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, tax_); } if (!getItemNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, itemName_); } if (quantity_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, quantity_); } if (!getSkuBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sku_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.passkit.grpc.TransactionOuterClass.OrderItem)) { return super.equals(obj); } com.passkit.grpc.TransactionOuterClass.OrderItem other = (com.passkit.grpc.TransactionOuterClass.OrderItem) obj; if (java.lang.Float.floatToIntBits(getAmount()) != java.lang.Float.floatToIntBits( other.getAmount())) return false; if (java.lang.Float.floatToIntBits(getTax()) != java.lang.Float.floatToIntBits( other.getTax())) return false; if (!getItemName() .equals(other.getItemName())) return false; if (getQuantity() != other.getQuantity()) return false; if (!getSku() .equals(other.getSku())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getAmount()); hash = (37 * hash) + TAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getTax()); hash = (37 * hash) + ITEMNAME_FIELD_NUMBER; hash = (53 * hash) + getItemName().hashCode(); hash = (37 * hash) + QUANTITY_FIELD_NUMBER; hash = (53 * hash) + getQuantity(); hash = (37 * hash) + SKU_FIELD_NUMBER; hash = (53 * hash) + getSku().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.passkit.grpc.TransactionOuterClass.OrderItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.passkit.grpc.TransactionOuterClass.OrderItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code io.OrderItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.OrderItem) com.passkit.grpc.TransactionOuterClass.OrderItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_OrderItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_OrderItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.passkit.grpc.TransactionOuterClass.OrderItem.class, com.passkit.grpc.TransactionOuterClass.OrderItem.Builder.class); } // Construct using com.passkit.grpc.TransactionOuterClass.OrderItem.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); amount_ = 0F; tax_ = 0F; itemName_ = ""; quantity_ = 0; sku_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.passkit.grpc.TransactionOuterClass.internal_static_io_OrderItem_descriptor; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.OrderItem getDefaultInstanceForType() { return com.passkit.grpc.TransactionOuterClass.OrderItem.getDefaultInstance(); } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.OrderItem build() { com.passkit.grpc.TransactionOuterClass.OrderItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.OrderItem buildPartial() { com.passkit.grpc.TransactionOuterClass.OrderItem result = new com.passkit.grpc.TransactionOuterClass.OrderItem(this); result.amount_ = amount_; result.tax_ = tax_; result.itemName_ = itemName_; result.quantity_ = quantity_; result.sku_ = sku_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.passkit.grpc.TransactionOuterClass.OrderItem) { return mergeFrom((com.passkit.grpc.TransactionOuterClass.OrderItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.passkit.grpc.TransactionOuterClass.OrderItem other) { if (other == com.passkit.grpc.TransactionOuterClass.OrderItem.getDefaultInstance()) return this; if (other.getAmount() != 0F) { setAmount(other.getAmount()); } if (other.getTax() != 0F) { setTax(other.getTax()); } if (!other.getItemName().isEmpty()) { itemName_ = other.itemName_; onChanged(); } if (other.getQuantity() != 0) { setQuantity(other.getQuantity()); } if (!other.getSku().isEmpty()) { sku_ = other.sku_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.passkit.grpc.TransactionOuterClass.OrderItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.passkit.grpc.TransactionOuterClass.OrderItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private float amount_ ; /** *
       * The item price
       * 
* * float amount = 1; * @return The amount. */ @java.lang.Override public float getAmount() { return amount_; } /** *
       * The item price
       * 
* * float amount = 1; * @param value The amount to set. * @return This builder for chaining. */ public Builder setAmount(float value) { amount_ = value; onChanged(); return this; } /** *
       * The item price
       * 
* * float amount = 1; * @return This builder for chaining. */ public Builder clearAmount() { amount_ = 0F; onChanged(); return this; } private float tax_ ; /** *
       * Tax on the item
       * 
* * float tax = 2; * @return The tax. */ @java.lang.Override public float getTax() { return tax_; } /** *
       * Tax on the item
       * 
* * float tax = 2; * @param value The tax to set. * @return This builder for chaining. */ public Builder setTax(float value) { tax_ = value; onChanged(); return this; } /** *
       * Tax on the item
       * 
* * float tax = 2; * @return This builder for chaining. */ public Builder clearTax() { tax_ = 0F; onChanged(); return this; } private java.lang.Object itemName_ = ""; /** *
       * The item name
       * 
* * string itemName = 3; * @return The itemName. */ public java.lang.String getItemName() { java.lang.Object ref = itemName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); itemName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The item name
       * 
* * string itemName = 3; * @return The bytes for itemName. */ public com.google.protobuf.ByteString getItemNameBytes() { java.lang.Object ref = itemName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); itemName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The item name
       * 
* * string itemName = 3; * @param value The itemName to set. * @return This builder for chaining. */ public Builder setItemName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } itemName_ = value; onChanged(); return this; } /** *
       * The item name
       * 
* * string itemName = 3; * @return This builder for chaining. */ public Builder clearItemName() { itemName_ = getDefaultInstance().getItemName(); onChanged(); return this; } /** *
       * The item name
       * 
* * string itemName = 3; * @param value The bytes for itemName to set. * @return This builder for chaining. */ public Builder setItemNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); itemName_ = value; onChanged(); return this; } private int quantity_ ; /** *
       * The quantity of items ordered
       * 
* * int32 quantity = 4; * @return The quantity. */ @java.lang.Override public int getQuantity() { return quantity_; } /** *
       * The quantity of items ordered
       * 
* * int32 quantity = 4; * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(int value) { quantity_ = value; onChanged(); return this; } /** *
       * The quantity of items ordered
       * 
* * int32 quantity = 4; * @return This builder for chaining. */ public Builder clearQuantity() { quantity_ = 0; onChanged(); return this; } private java.lang.Object sku_ = ""; /** *
       * The SKU as used in the system generating the transaction
       * 
* * string sku = 5; * @return The sku. */ public java.lang.String getSku() { java.lang.Object ref = sku_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sku_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The SKU as used in the system generating the transaction
       * 
* * string sku = 5; * @return The bytes for sku. */ public com.google.protobuf.ByteString getSkuBytes() { java.lang.Object ref = sku_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sku_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The SKU as used in the system generating the transaction
       * 
* * string sku = 5; * @param value The sku to set. * @return This builder for chaining. */ public Builder setSku( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sku_ = value; onChanged(); return this; } /** *
       * The SKU as used in the system generating the transaction
       * 
* * string sku = 5; * @return This builder for chaining. */ public Builder clearSku() { sku_ = getDefaultInstance().getSku(); onChanged(); return this; } /** *
       * The SKU as used in the system generating the transaction
       * 
* * string sku = 5; * @param value The bytes for sku to set. * @return This builder for chaining. */ public Builder setSkuBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sku_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.OrderItem) } // @@protoc_insertion_point(class_scope:io.OrderItem) private static final com.passkit.grpc.TransactionOuterClass.OrderItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.passkit.grpc.TransactionOuterClass.OrderItem(); } public static com.passkit.grpc.TransactionOuterClass.OrderItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OrderItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OrderItem(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.passkit.grpc.TransactionOuterClass.OrderItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_Transaction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_Transaction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_DiscountItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_DiscountItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_OrderItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_OrderItem_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\033io/common/transaction.proto\022\002io\032.proto" + "c-gen-openapiv2/options/annotations.prot" + "o\032\036io/common/common_objects.proto\032\031io/co" + "mmon/proximity.proto\"\224\004\n\013Transaction\022\023\n\013" + "referenceId\030\001 \001(\t\022\022\n\ntotalPrice\030\002 \001(\002\022!\n" + "\norderItems\030\003 \003(\0132\r.io.OrderItem\022\020\n\010disc" + "ount\030\004 \001(\002\022\'\n\rdiscountItems\030\005 \003(\0132\020.io.D" + "iscountItem\022\025\n\rserviceCharge\030\006 \001(\002\022\020\n\010to" + "talTax\030\007 \001(\002\022\022\n\nfinalPrice\030\010 \001(\002\022\032\n\022roun" + "dingDifference\030\t \001(\002\022\022\n\nisRefunded\030\n \001(\010" + "\022\033\n\ttimestamp\030\013 \001(\0132\010.io.Date\022\020\n\010currenc" + "y\030\014 \001(\t\022!\n\010location\030\r \001(\0132\017.io.GPSLocati" + "on\022\031\n\021transactionSource\030\016 \001(\t:\243\001\222A\237\001\n\234\001*" + "\013Transaction2mTransaction information fo" + "r member programs that want to show late" + "st transactions on back of the member ca" + "rd.\322\001\ttimestamp\322\001\006amount\322\001\010currency\"a\n\014D" + "iscountItem\022\024\n\014discountCode\030\001 \001(\t\022\023\n\013vou" + "cherCode\030\002 \001(\t\022\016\n\006amount\030\004 \001(\002\022\020\n\010itemNa" + "me\030\005 \001(\tJ\004\010\003\020\004\"Y\n\tOrderItem\022\016\n\006amount\030\001 " + "\001(\002\022\013\n\003tax\030\002 \001(\002\022\020\n\010itemName\030\003 \001(\t\022\020\n\010qu" + "antity\030\004 \001(\005\022\013\n\003sku\030\005 \001(\tBG\n\020com.passkit" + ".grpcZ$stash.passkit.com/io/model/sdk/go" + "/io\252\002\014PassKit.Grpcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(), com.passkit.grpc.CommonObjects.getDescriptor(), com.passkit.grpc.Proximity.getDescriptor(), }); internal_static_io_Transaction_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_Transaction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_Transaction_descriptor, new java.lang.String[] { "ReferenceId", "TotalPrice", "OrderItems", "Discount", "DiscountItems", "ServiceCharge", "TotalTax", "FinalPrice", "RoundingDifference", "IsRefunded", "Timestamp", "Currency", "Location", "TransactionSource", }); internal_static_io_DiscountItem_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_io_DiscountItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_DiscountItem_descriptor, new java.lang.String[] { "DiscountCode", "VoucherCode", "Amount", "ItemName", }); internal_static_io_OrderItem_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_io_OrderItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_OrderItem_descriptor, new java.lang.String[] { "Amount", "Tax", "ItemName", "Quantity", "Sku", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(grpc.gateway.protoc_gen_openapiv2.options.Annotations.openapiv2Schema); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); grpc.gateway.protoc_gen_openapiv2.options.Annotations.getDescriptor(); com.passkit.grpc.CommonObjects.getDescriptor(); com.passkit.grpc.Proximity.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy