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

org.openfeed.TradeCancel Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * 
 *
 * Trade Cancel/Break
 * 
* * Protobuf type {@code org.openfeed.TradeCancel} */ public final class TradeCancel extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org.openfeed.TradeCancel) TradeCancelOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 3, /* suffix= */ "", TradeCancel.class.getName()); } // Use TradeCancel.newBuilder() to construct. private TradeCancel(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private TradeCancel() { originatorId_ = com.google.protobuf.ByteString.EMPTY; tradeId_ = com.google.protobuf.ByteString.EMPTY; saleCondition_ = com.google.protobuf.ByteString.EMPTY; currency_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_TradeCancel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_TradeCancel_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.TradeCancel.class, org.openfeed.TradeCancel.Builder.class); } public static final int ORIGINATORID_FIELD_NUMBER = 8; private com.google.protobuf.ByteString originatorId_ = com.google.protobuf.ByteString.EMPTY; /** *
   * Market participant/originator
   * 
* * bytes originatorId = 8; * @return The originatorId. */ @java.lang.Override public com.google.protobuf.ByteString getOriginatorId() { return originatorId_; } public static final int TRANSACTIONTIME_FIELD_NUMBER = 9; private long transactionTime_ = 0L; /** * sint64 transactionTime = 9; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } public static final int CORRECTEDTRADEPRICE_FIELD_NUMBER = 10; private long correctedTradePrice_ = 0L; /** * sint64 correctedTradePrice = 10; * @return The correctedTradePrice. */ @java.lang.Override public long getCorrectedTradePrice() { return correctedTradePrice_; } public static final int CORRECTEDTRADEQUANTITY_FIELD_NUMBER = 11; private long correctedTradeQuantity_ = 0L; /** * sint64 correctedTradeQuantity = 11; * @return The correctedTradeQuantity. */ @java.lang.Override public long getCorrectedTradeQuantity() { return correctedTradeQuantity_; } public static final int TRADEID_FIELD_NUMBER = 12; private com.google.protobuf.ByteString tradeId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes tradeId = 12; * @return The tradeId. */ @java.lang.Override public com.google.protobuf.ByteString getTradeId() { return tradeId_; } public static final int SALECONDITION_FIELD_NUMBER = 13; private com.google.protobuf.ByteString saleCondition_ = com.google.protobuf.ByteString.EMPTY; /** * bytes saleCondition = 13; * @return The saleCondition. */ @java.lang.Override public com.google.protobuf.ByteString getSaleCondition() { return saleCondition_; } public static final int CURRENCY_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object currency_ = ""; /** * string currency = 14; * @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; } } /** * string currency = 14; * @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 DISTRIBUTIONTIME_FIELD_NUMBER = 15; private long distributionTime_ = 0L; /** *
   * / Distribution time in nano seconds since epoch.
   * 
* * sint64 distributionTime = 15; * @return The distributionTime. */ @java.lang.Override public long getDistributionTime() { return distributionTime_; } public static final int TRANSACTIONTIME2_FIELD_NUMBER = 16; private long transactionTime2_ = 0L; /** *
   * / time in nano seconds since epoch.
   * 
* * sint64 transactionTime2 = 16; * @return The transactionTime2. */ @java.lang.Override public long getTransactionTime2() { return transactionTime2_; } 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 (!originatorId_.isEmpty()) { output.writeBytes(8, originatorId_); } if (transactionTime_ != 0L) { output.writeSInt64(9, transactionTime_); } if (correctedTradePrice_ != 0L) { output.writeSInt64(10, correctedTradePrice_); } if (correctedTradeQuantity_ != 0L) { output.writeSInt64(11, correctedTradeQuantity_); } if (!tradeId_.isEmpty()) { output.writeBytes(12, tradeId_); } if (!saleCondition_.isEmpty()) { output.writeBytes(13, saleCondition_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currency_)) { com.google.protobuf.GeneratedMessage.writeString(output, 14, currency_); } if (distributionTime_ != 0L) { output.writeSInt64(15, distributionTime_); } if (transactionTime2_ != 0L) { output.writeSInt64(16, transactionTime2_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!originatorId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, originatorId_); } if (transactionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(9, transactionTime_); } if (correctedTradePrice_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(10, correctedTradePrice_); } if (correctedTradeQuantity_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(11, correctedTradeQuantity_); } if (!tradeId_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(12, tradeId_); } if (!saleCondition_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(13, saleCondition_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(currency_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, currency_); } if (distributionTime_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(15, distributionTime_); } if (transactionTime2_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeSInt64Size(16, transactionTime2_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.openfeed.TradeCancel)) { return super.equals(obj); } org.openfeed.TradeCancel other = (org.openfeed.TradeCancel) obj; if (!getOriginatorId() .equals(other.getOriginatorId())) return false; if (getTransactionTime() != other.getTransactionTime()) return false; if (getCorrectedTradePrice() != other.getCorrectedTradePrice()) return false; if (getCorrectedTradeQuantity() != other.getCorrectedTradeQuantity()) return false; if (!getTradeId() .equals(other.getTradeId())) return false; if (!getSaleCondition() .equals(other.getSaleCondition())) return false; if (!getCurrency() .equals(other.getCurrency())) return false; if (getDistributionTime() != other.getDistributionTime()) return false; if (getTransactionTime2() != other.getTransactionTime2()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ORIGINATORID_FIELD_NUMBER; hash = (53 * hash) + getOriginatorId().hashCode(); hash = (37 * hash) + TRANSACTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime()); hash = (37 * hash) + CORRECTEDTRADEPRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCorrectedTradePrice()); hash = (37 * hash) + CORRECTEDTRADEQUANTITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCorrectedTradeQuantity()); hash = (37 * hash) + TRADEID_FIELD_NUMBER; hash = (53 * hash) + getTradeId().hashCode(); hash = (37 * hash) + SALECONDITION_FIELD_NUMBER; hash = (53 * hash) + getSaleCondition().hashCode(); hash = (37 * hash) + CURRENCY_FIELD_NUMBER; hash = (53 * hash) + getCurrency().hashCode(); hash = (37 * hash) + DISTRIBUTIONTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDistributionTime()); hash = (37 * hash) + TRANSACTIONTIME2_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTransactionTime2()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.openfeed.TradeCancel parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.TradeCancel parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.TradeCancel parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.TradeCancel parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.TradeCancel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.openfeed.TradeCancel parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.openfeed.TradeCancel parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.TradeCancel parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.TradeCancel parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.openfeed.TradeCancel parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.openfeed.TradeCancel parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.openfeed.TradeCancel parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.openfeed.TradeCancel 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   *
   * Trade Cancel/Break
   * 
* * Protobuf type {@code org.openfeed.TradeCancel} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org.openfeed.TradeCancel) org.openfeed.TradeCancelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.openfeed.Openfeed.internal_static_org_openfeed_TradeCancel_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.openfeed.Openfeed.internal_static_org_openfeed_TradeCancel_fieldAccessorTable .ensureFieldAccessorsInitialized( org.openfeed.TradeCancel.class, org.openfeed.TradeCancel.Builder.class); } // Construct using org.openfeed.TradeCancel.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; originatorId_ = com.google.protobuf.ByteString.EMPTY; transactionTime_ = 0L; correctedTradePrice_ = 0L; correctedTradeQuantity_ = 0L; tradeId_ = com.google.protobuf.ByteString.EMPTY; saleCondition_ = com.google.protobuf.ByteString.EMPTY; currency_ = ""; distributionTime_ = 0L; transactionTime2_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.openfeed.Openfeed.internal_static_org_openfeed_TradeCancel_descriptor; } @java.lang.Override public org.openfeed.TradeCancel getDefaultInstanceForType() { return org.openfeed.TradeCancel.getDefaultInstance(); } @java.lang.Override public org.openfeed.TradeCancel build() { org.openfeed.TradeCancel result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.openfeed.TradeCancel buildPartial() { org.openfeed.TradeCancel result = new org.openfeed.TradeCancel(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.openfeed.TradeCancel result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.originatorId_ = originatorId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.transactionTime_ = transactionTime_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.correctedTradePrice_ = correctedTradePrice_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.correctedTradeQuantity_ = correctedTradeQuantity_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.tradeId_ = tradeId_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.saleCondition_ = saleCondition_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.currency_ = currency_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.distributionTime_ = distributionTime_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.transactionTime2_ = transactionTime2_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.openfeed.TradeCancel) { return mergeFrom((org.openfeed.TradeCancel)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.openfeed.TradeCancel other) { if (other == org.openfeed.TradeCancel.getDefaultInstance()) return this; if (other.getOriginatorId() != com.google.protobuf.ByteString.EMPTY) { setOriginatorId(other.getOriginatorId()); } if (other.getTransactionTime() != 0L) { setTransactionTime(other.getTransactionTime()); } if (other.getCorrectedTradePrice() != 0L) { setCorrectedTradePrice(other.getCorrectedTradePrice()); } if (other.getCorrectedTradeQuantity() != 0L) { setCorrectedTradeQuantity(other.getCorrectedTradeQuantity()); } if (other.getTradeId() != com.google.protobuf.ByteString.EMPTY) { setTradeId(other.getTradeId()); } if (other.getSaleCondition() != com.google.protobuf.ByteString.EMPTY) { setSaleCondition(other.getSaleCondition()); } if (!other.getCurrency().isEmpty()) { currency_ = other.currency_; bitField0_ |= 0x00000040; onChanged(); } if (other.getDistributionTime() != 0L) { setDistributionTime(other.getDistributionTime()); } if (other.getTransactionTime2() != 0L) { setTransactionTime2(other.getTransactionTime2()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 66: { originatorId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 66 case 72: { transactionTime_ = input.readSInt64(); bitField0_ |= 0x00000002; break; } // case 72 case 80: { correctedTradePrice_ = input.readSInt64(); bitField0_ |= 0x00000004; break; } // case 80 case 88: { correctedTradeQuantity_ = input.readSInt64(); bitField0_ |= 0x00000008; break; } // case 88 case 98: { tradeId_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 98 case 106: { saleCondition_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 106 case 114: { currency_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 114 case 120: { distributionTime_ = input.readSInt64(); bitField0_ |= 0x00000080; break; } // case 120 case 128: { transactionTime2_ = input.readSInt64(); bitField0_ |= 0x00000100; break; } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.ByteString originatorId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * Market participant/originator
     * 
* * bytes originatorId = 8; * @return The originatorId. */ @java.lang.Override public com.google.protobuf.ByteString getOriginatorId() { return originatorId_; } /** *
     * Market participant/originator
     * 
* * bytes originatorId = 8; * @param value The originatorId to set. * @return This builder for chaining. */ public Builder setOriginatorId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } originatorId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Market participant/originator
     * 
* * bytes originatorId = 8; * @return This builder for chaining. */ public Builder clearOriginatorId() { bitField0_ = (bitField0_ & ~0x00000001); originatorId_ = getDefaultInstance().getOriginatorId(); onChanged(); return this; } private long transactionTime_ ; /** * sint64 transactionTime = 9; * @return The transactionTime. */ @java.lang.Override public long getTransactionTime() { return transactionTime_; } /** * sint64 transactionTime = 9; * @param value The transactionTime to set. * @return This builder for chaining. */ public Builder setTransactionTime(long value) { transactionTime_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * sint64 transactionTime = 9; * @return This builder for chaining. */ public Builder clearTransactionTime() { bitField0_ = (bitField0_ & ~0x00000002); transactionTime_ = 0L; onChanged(); return this; } private long correctedTradePrice_ ; /** * sint64 correctedTradePrice = 10; * @return The correctedTradePrice. */ @java.lang.Override public long getCorrectedTradePrice() { return correctedTradePrice_; } /** * sint64 correctedTradePrice = 10; * @param value The correctedTradePrice to set. * @return This builder for chaining. */ public Builder setCorrectedTradePrice(long value) { correctedTradePrice_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * sint64 correctedTradePrice = 10; * @return This builder for chaining. */ public Builder clearCorrectedTradePrice() { bitField0_ = (bitField0_ & ~0x00000004); correctedTradePrice_ = 0L; onChanged(); return this; } private long correctedTradeQuantity_ ; /** * sint64 correctedTradeQuantity = 11; * @return The correctedTradeQuantity. */ @java.lang.Override public long getCorrectedTradeQuantity() { return correctedTradeQuantity_; } /** * sint64 correctedTradeQuantity = 11; * @param value The correctedTradeQuantity to set. * @return This builder for chaining. */ public Builder setCorrectedTradeQuantity(long value) { correctedTradeQuantity_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * sint64 correctedTradeQuantity = 11; * @return This builder for chaining. */ public Builder clearCorrectedTradeQuantity() { bitField0_ = (bitField0_ & ~0x00000008); correctedTradeQuantity_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString tradeId_ = com.google.protobuf.ByteString.EMPTY; /** * bytes tradeId = 12; * @return The tradeId. */ @java.lang.Override public com.google.protobuf.ByteString getTradeId() { return tradeId_; } /** * bytes tradeId = 12; * @param value The tradeId to set. * @return This builder for chaining. */ public Builder setTradeId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } tradeId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes tradeId = 12; * @return This builder for chaining. */ public Builder clearTradeId() { bitField0_ = (bitField0_ & ~0x00000010); tradeId_ = getDefaultInstance().getTradeId(); onChanged(); return this; } private com.google.protobuf.ByteString saleCondition_ = com.google.protobuf.ByteString.EMPTY; /** * bytes saleCondition = 13; * @return The saleCondition. */ @java.lang.Override public com.google.protobuf.ByteString getSaleCondition() { return saleCondition_; } /** * bytes saleCondition = 13; * @param value The saleCondition to set. * @return This builder for chaining. */ public Builder setSaleCondition(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } saleCondition_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * bytes saleCondition = 13; * @return This builder for chaining. */ public Builder clearSaleCondition() { bitField0_ = (bitField0_ & ~0x00000020); saleCondition_ = getDefaultInstance().getSaleCondition(); onChanged(); return this; } private java.lang.Object currency_ = ""; /** * string currency = 14; * @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; } } /** * string currency = 14; * @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; } } /** * string currency = 14; * @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; bitField0_ |= 0x00000040; onChanged(); return this; } /** * string currency = 14; * @return This builder for chaining. */ public Builder clearCurrency() { currency_ = getDefaultInstance().getCurrency(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * string currency = 14; * @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; bitField0_ |= 0x00000040; onChanged(); return this; } private long distributionTime_ ; /** *
     * / Distribution time in nano seconds since epoch.
     * 
* * sint64 distributionTime = 15; * @return The distributionTime. */ @java.lang.Override public long getDistributionTime() { return distributionTime_; } /** *
     * / Distribution time in nano seconds since epoch.
     * 
* * sint64 distributionTime = 15; * @param value The distributionTime to set. * @return This builder for chaining. */ public Builder setDistributionTime(long value) { distributionTime_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * / Distribution time in nano seconds since epoch.
     * 
* * sint64 distributionTime = 15; * @return This builder for chaining. */ public Builder clearDistributionTime() { bitField0_ = (bitField0_ & ~0x00000080); distributionTime_ = 0L; onChanged(); return this; } private long transactionTime2_ ; /** *
     * / time in nano seconds since epoch.
     * 
* * sint64 transactionTime2 = 16; * @return The transactionTime2. */ @java.lang.Override public long getTransactionTime2() { return transactionTime2_; } /** *
     * / time in nano seconds since epoch.
     * 
* * sint64 transactionTime2 = 16; * @param value The transactionTime2 to set. * @return This builder for chaining. */ public Builder setTransactionTime2(long value) { transactionTime2_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * / time in nano seconds since epoch.
     * 
* * sint64 transactionTime2 = 16; * @return This builder for chaining. */ public Builder clearTransactionTime2() { bitField0_ = (bitField0_ & ~0x00000100); transactionTime2_ = 0L; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:org.openfeed.TradeCancel) } // @@protoc_insertion_point(class_scope:org.openfeed.TradeCancel) private static final org.openfeed.TradeCancel DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.openfeed.TradeCancel(); } public static org.openfeed.TradeCancel getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TradeCancel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.openfeed.TradeCancel getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy