
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: OrderStatusData.proto
package com.tigerbrokers.stock.openapi.client.socket.data.pb;
/**
* Protobuf type {@code com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData}
*/
public final class OrderStatusData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData)
OrderStatusDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use OrderStatusData.newBuilder() to construct.
private OrderStatusData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OrderStatusData() {
account_ = "";
symbol_ = "";
expiry_ = "";
strike_ = "";
right_ = "";
identifier_ = "";
action_ = "";
market_ = "";
currency_ = "";
segType_ = "";
secType_ = "";
orderType_ = "";
status_ = "";
replaceStatus_ = "";
cancelStatus_ = "";
name_ = "";
source_ = "";
errorMsg_ = "";
attrDesc_ = "";
userMark_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OrderStatusData();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusDataOuterClass.internal_static_com_tigerbrokers_stock_openapi_client_socket_data_pb_OrderStatusData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusDataOuterClass.internal_static_com_tigerbrokers_stock_openapi_client_socket_data_pb_OrderStatusData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.class, com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private long id_ = 0L;
/**
*
* unique order id
*
*
* sint64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int ACCOUNT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object account_ = "";
/**
*
* user account
*
*
* string account = 2;
* @return The account.
*/
@java.lang.Override
public java.lang.String getAccount() {
java.lang.Object ref = account_;
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();
account_ = s;
return s;
}
}
/**
*
* user account
*
*
* string account = 2;
* @return The bytes for account.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccountBytes() {
java.lang.Object ref = account_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
account_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYMBOL_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object symbol_ = "";
/**
* string symbol = 3;
* @return The symbol.
*/
@java.lang.Override
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
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();
symbol_ = s;
return s;
}
}
/**
* string symbol = 3;
* @return The bytes for symbol.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EXPIRY_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object expiry_ = "";
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @return The expiry.
*/
@java.lang.Override
public java.lang.String getExpiry() {
java.lang.Object ref = expiry_;
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();
expiry_ = s;
return s;
}
}
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @return The bytes for expiry.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getExpiryBytes() {
java.lang.Object ref = expiry_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expiry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STRIKE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object strike_ = "";
/**
*
* for options
*
*
* string strike = 5;
* @return The strike.
*/
@java.lang.Override
public java.lang.String getStrike() {
java.lang.Object ref = strike_;
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();
strike_ = s;
return s;
}
}
/**
*
* for options
*
*
* string strike = 5;
* @return The bytes for strike.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStrikeBytes() {
java.lang.Object ref = strike_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strike_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RIGHT_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object right_ = "";
/**
*
* for options
*
*
* string right = 6;
* @return The right.
*/
@java.lang.Override
public java.lang.String getRight() {
java.lang.Object ref = right_;
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();
right_ = s;
return s;
}
}
/**
*
* for options
*
*
* string right = 6;
* @return The bytes for right.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRightBytes() {
java.lang.Object ref = right_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
right_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IDENTIFIER_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object identifier_ = "";
/**
* string identifier = 7;
* @return The identifier.
*/
@java.lang.Override
public java.lang.String getIdentifier() {
java.lang.Object ref = identifier_;
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();
identifier_ = s;
return s;
}
}
/**
* string identifier = 7;
* @return The bytes for identifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdentifierBytes() {
java.lang.Object ref = identifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MULTIPLIER_FIELD_NUMBER = 8;
private int multiplier_ = 0;
/**
*
* multiplier for futures, options, warrants and CBBC
*
*
* uint32 multiplier = 8;
* @return The multiplier.
*/
@java.lang.Override
public int getMultiplier() {
return multiplier_;
}
public static final int ACTION_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object action_ = "";
/**
*
* BUY or SELL
*
*
* string action = 9;
* @return The action.
*/
@java.lang.Override
public java.lang.String getAction() {
java.lang.Object ref = action_;
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();
action_ = s;
return s;
}
}
/**
*
* BUY or SELL
*
*
* string action = 9;
* @return The bytes for action.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getActionBytes() {
java.lang.Object ref = action_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
action_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MARKET_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private volatile java.lang.Object market_ = "";
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @return The market.
*/
@java.lang.Override
public java.lang.String getMarket() {
java.lang.Object ref = market_;
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();
market_ = s;
return s;
}
}
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @return The bytes for market.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMarketBytes() {
java.lang.Object ref = market_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
market_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CURRENCY_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private volatile java.lang.Object currency_ = "";
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @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;
}
}
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @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 SEGTYPE_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private volatile java.lang.Object segType_ = "";
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @return The segType.
*/
@java.lang.Override
public java.lang.String getSegType() {
java.lang.Object ref = segType_;
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();
segType_ = s;
return s;
}
}
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @return The bytes for segType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSegTypeBytes() {
java.lang.Object ref = segType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
segType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SECTYPE_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private volatile java.lang.Object secType_ = "";
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @return The secType.
*/
@java.lang.Override
public java.lang.String getSecType() {
java.lang.Object ref = secType_;
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();
secType_ = s;
return s;
}
}
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @return The bytes for secType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSecTypeBytes() {
java.lang.Object ref = secType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ORDERTYPE_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private volatile java.lang.Object orderType_ = "";
/**
*
* order type
*
*
* string orderType = 14;
* @return The orderType.
*/
@java.lang.Override
public java.lang.String getOrderType() {
java.lang.Object ref = orderType_;
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();
orderType_ = s;
return s;
}
}
/**
*
* order type
*
*
* string orderType = 14;
* @return The bytes for orderType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOrderTypeBytes() {
java.lang.Object ref = orderType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ISLONG_FIELD_NUMBER = 15;
private boolean isLong_ = false;
/**
* bool isLong = 15;
* @return The isLong.
*/
@java.lang.Override
public boolean getIsLong() {
return isLong_;
}
public static final int TOTALQUANTITY_FIELD_NUMBER = 16;
private long totalQuantity_ = 0L;
/**
*
* total quantity
*
*
* sint64 totalQuantity = 16;
* @return The totalQuantity.
*/
@java.lang.Override
public long getTotalQuantity() {
return totalQuantity_;
}
public static final int TOTALQUANTITYSCALE_FIELD_NUMBER = 17;
private int totalQuantityScale_ = 0;
/**
*
* total quantity scale
*
*
* sint32 totalQuantityScale = 17;
* @return The totalQuantityScale.
*/
@java.lang.Override
public int getTotalQuantityScale() {
return totalQuantityScale_;
}
public static final int FILLEDQUANTITY_FIELD_NUMBER = 18;
private long filledQuantity_ = 0L;
/**
*
* filled quantity
*
*
* sint64 filledQuantity = 18;
* @return The filledQuantity.
*/
@java.lang.Override
public long getFilledQuantity() {
return filledQuantity_;
}
public static final int FILLEDQUANTITYSCALE_FIELD_NUMBER = 19;
private int filledQuantityScale_ = 0;
/**
*
* filled quantity scale
*
*
* sint32 filledQuantityScale = 19;
* @return The filledQuantityScale.
*/
@java.lang.Override
public int getFilledQuantityScale() {
return filledQuantityScale_;
}
public static final int AVGFILLPRICE_FIELD_NUMBER = 20;
private double avgFillPrice_ = 0D;
/**
*
* average price at which the orders got filled
*
*
* double avgFillPrice = 20;
* @return The avgFillPrice.
*/
@java.lang.Override
public double getAvgFillPrice() {
return avgFillPrice_;
}
public static final int LIMITPRICE_FIELD_NUMBER = 21;
private double limitPrice_ = 0D;
/**
*
* limit price(required when orderType is 'LMT')
*
*
* double limitPrice = 21;
* @return The limitPrice.
*/
@java.lang.Override
public double getLimitPrice() {
return limitPrice_;
}
public static final int STOPPRICE_FIELD_NUMBER = 22;
private double stopPrice_ = 0D;
/**
*
* stop price(required when orderType is 'STP')
*
*
* double stopPrice = 22;
* @return The stopPrice.
*/
@java.lang.Override
public double getStopPrice() {
return stopPrice_;
}
public static final int REALIZEDPNL_FIELD_NUMBER = 23;
private double realizedPnl_ = 0D;
/**
*
* realized profit and loss
*
*
* double realizedPnl = 23;
* @return The realizedPnl.
*/
@java.lang.Override
public double getRealizedPnl() {
return realizedPnl_;
}
public static final int STATUS_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private volatile java.lang.Object status_ = "";
/**
*
* order status
*
*
* string status = 24;
* @return The status.
*/
@java.lang.Override
public java.lang.String getStatus() {
java.lang.Object ref = status_;
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();
status_ = s;
return s;
}
}
/**
*
* order status
*
*
* string status = 24;
* @return The bytes for status.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REPLACESTATUS_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private volatile java.lang.Object replaceStatus_ = "";
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @return The replaceStatus.
*/
@java.lang.Override
public java.lang.String getReplaceStatus() {
java.lang.Object ref = replaceStatus_;
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();
replaceStatus_ = s;
return s;
}
}
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @return The bytes for replaceStatus.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReplaceStatusBytes() {
java.lang.Object ref = replaceStatus_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
replaceStatus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CANCELSTATUS_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private volatile java.lang.Object cancelStatus_ = "";
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @return The cancelStatus.
*/
@java.lang.Override
public java.lang.String getCancelStatus() {
java.lang.Object ref = cancelStatus_;
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();
cancelStatus_ = s;
return s;
}
}
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @return The bytes for cancelStatus.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCancelStatusBytes() {
java.lang.Object ref = cancelStatus_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cancelStatus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OUTSIDERTH_FIELD_NUMBER = 27;
private boolean outsideRth_ = false;
/**
*
* if trade outside regular trading hours (only applicable to U.S. market)
*
*
* bool outsideRth = 27;
* @return The outsideRth.
*/
@java.lang.Override
public boolean getOutsideRth() {
return outsideRth_;
}
public static final int CANMODIFY_FIELD_NUMBER = 28;
private boolean canModify_ = false;
/**
* bool canModify = 28;
* @return The canModify.
*/
@java.lang.Override
public boolean getCanModify() {
return canModify_;
}
public static final int CANCANCEL_FIELD_NUMBER = 29;
private boolean canCancel_ = false;
/**
* bool canCancel = 29;
* @return The canCancel.
*/
@java.lang.Override
public boolean getCanCancel() {
return canCancel_;
}
public static final int LIQUIDATION_FIELD_NUMBER = 30;
private boolean liquidation_ = false;
/**
* bool liquidation = 30;
* @return The liquidation.
*/
@java.lang.Override
public boolean getLiquidation() {
return liquidation_;
}
public static final int NAME_FIELD_NUMBER = 31;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* symbol name
*
*
* string name = 31;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
* symbol name
*
*
* string name = 31;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 32;
@SuppressWarnings("serial")
private volatile java.lang.Object source_ = "";
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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();
source_ = s;
return s;
}
}
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRORMSG_FIELD_NUMBER = 33;
@SuppressWarnings("serial")
private volatile java.lang.Object errorMsg_ = "";
/**
*
* error message
*
*
* string errorMsg = 33;
* @return The errorMsg.
*/
@java.lang.Override
public java.lang.String getErrorMsg() {
java.lang.Object ref = errorMsg_;
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();
errorMsg_ = s;
return s;
}
}
/**
*
* error message
*
*
* string errorMsg = 33;
* @return The bytes for errorMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMsgBytes() {
java.lang.Object ref = errorMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ATTRDESC_FIELD_NUMBER = 34;
@SuppressWarnings("serial")
private volatile java.lang.Object attrDesc_ = "";
/**
*
* order description
*
*
* string attrDesc = 34;
* @return The attrDesc.
*/
@java.lang.Override
public java.lang.String getAttrDesc() {
java.lang.Object ref = attrDesc_;
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();
attrDesc_ = s;
return s;
}
}
/**
*
* order description
*
*
* string attrDesc = 34;
* @return The bytes for attrDesc.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAttrDescBytes() {
java.lang.Object ref = attrDesc_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attrDesc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMISSIONANDFEE_FIELD_NUMBER = 35;
private float commissionAndFee_ = 0F;
/**
*
* commission and fee
*
*
* float commissionAndFee = 35;
* @return The commissionAndFee.
*/
@java.lang.Override
public float getCommissionAndFee() {
return commissionAndFee_;
}
public static final int OPENTIME_FIELD_NUMBER = 36;
private long openTime_ = 0L;
/**
*
* timestamp when the order is placed
*
*
* uint64 openTime = 36;
* @return The openTime.
*/
@java.lang.Override
public long getOpenTime() {
return openTime_;
}
public static final int TIMESTAMP_FIELD_NUMBER = 37;
private long timestamp_ = 0L;
/**
* uint64 timestamp = 37;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int USERMARK_FIELD_NUMBER = 38;
@SuppressWarnings("serial")
private volatile java.lang.Object userMark_ = "";
/**
* string userMark = 38;
* @return The userMark.
*/
@java.lang.Override
public java.lang.String getUserMark() {
java.lang.Object ref = userMark_;
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();
userMark_ = s;
return s;
}
}
/**
* string userMark = 38;
* @return The bytes for userMark.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserMarkBytes() {
java.lang.Object ref = userMark_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userMark_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOTALCASHAMOUNT_FIELD_NUMBER = 39;
private double totalCashAmount_ = 0D;
/**
* double totalCashAmount = 39;
* @return The totalCashAmount.
*/
@java.lang.Override
public double getTotalCashAmount() {
return totalCashAmount_;
}
public static final int FILLEDCASHAMOUNT_FIELD_NUMBER = 40;
private double filledCashAmount_ = 0D;
/**
* double filledCashAmount = 40;
* @return The filledCashAmount.
*/
@java.lang.Override
public double getFilledCashAmount() {
return filledCashAmount_;
}
public static final int GST_FIELD_NUMBER = 41;
private double gst_ = 0D;
/**
*
* Goods and Services Tax(TBSG only)
*
*
* double gst = 41;
* @return The gst.
*/
@java.lang.Override
public double getGst() {
return gst_;
}
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 (id_ != 0L) {
output.writeSInt64(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, account_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(symbol_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, symbol_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expiry_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, expiry_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strike_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, strike_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(right_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, right_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, identifier_);
}
if (multiplier_ != 0) {
output.writeUInt32(8, multiplier_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, action_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(market_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, market_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, currency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(segType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, segType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, secType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, orderType_);
}
if (isLong_ != false) {
output.writeBool(15, isLong_);
}
if (totalQuantity_ != 0L) {
output.writeSInt64(16, totalQuantity_);
}
if (totalQuantityScale_ != 0) {
output.writeSInt32(17, totalQuantityScale_);
}
if (filledQuantity_ != 0L) {
output.writeSInt64(18, filledQuantity_);
}
if (filledQuantityScale_ != 0) {
output.writeSInt32(19, filledQuantityScale_);
}
if (java.lang.Double.doubleToRawLongBits(avgFillPrice_) != 0) {
output.writeDouble(20, avgFillPrice_);
}
if (java.lang.Double.doubleToRawLongBits(limitPrice_) != 0) {
output.writeDouble(21, limitPrice_);
}
if (java.lang.Double.doubleToRawLongBits(stopPrice_) != 0) {
output.writeDouble(22, stopPrice_);
}
if (java.lang.Double.doubleToRawLongBits(realizedPnl_) != 0) {
output.writeDouble(23, realizedPnl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 24, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceStatus_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 25, replaceStatus_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelStatus_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 26, cancelStatus_);
}
if (outsideRth_ != false) {
output.writeBool(27, outsideRth_);
}
if (canModify_ != false) {
output.writeBool(28, canModify_);
}
if (canCancel_ != false) {
output.writeBool(29, canCancel_);
}
if (liquidation_ != false) {
output.writeBool(30, liquidation_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 31, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 32, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMsg_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 33, errorMsg_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attrDesc_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 34, attrDesc_);
}
if (java.lang.Float.floatToRawIntBits(commissionAndFee_) != 0) {
output.writeFloat(35, commissionAndFee_);
}
if (openTime_ != 0L) {
output.writeUInt64(36, openTime_);
}
if (timestamp_ != 0L) {
output.writeUInt64(37, timestamp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userMark_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 38, userMark_);
}
if (java.lang.Double.doubleToRawLongBits(totalCashAmount_) != 0) {
output.writeDouble(39, totalCashAmount_);
}
if (java.lang.Double.doubleToRawLongBits(filledCashAmount_) != 0) {
output.writeDouble(40, filledCashAmount_);
}
if (java.lang.Double.doubleToRawLongBits(gst_) != 0) {
output.writeDouble(41, gst_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(1, id_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, account_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(symbol_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, symbol_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expiry_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, expiry_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(strike_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, strike_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(right_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, right_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, identifier_);
}
if (multiplier_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, multiplier_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, action_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(market_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, market_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currency_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, currency_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(segType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, segType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, secType_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, orderType_);
}
if (isLong_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, isLong_);
}
if (totalQuantity_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(16, totalQuantity_);
}
if (totalQuantityScale_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(17, totalQuantityScale_);
}
if (filledQuantity_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(18, filledQuantity_);
}
if (filledQuantityScale_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(19, filledQuantityScale_);
}
if (java.lang.Double.doubleToRawLongBits(avgFillPrice_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(20, avgFillPrice_);
}
if (java.lang.Double.doubleToRawLongBits(limitPrice_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(21, limitPrice_);
}
if (java.lang.Double.doubleToRawLongBits(stopPrice_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(22, stopPrice_);
}
if (java.lang.Double.doubleToRawLongBits(realizedPnl_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(23, realizedPnl_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, status_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replaceStatus_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, replaceStatus_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelStatus_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(26, cancelStatus_);
}
if (outsideRth_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, outsideRth_);
}
if (canModify_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(28, canModify_);
}
if (canCancel_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(29, canCancel_);
}
if (liquidation_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, liquidation_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMsg_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, errorMsg_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(attrDesc_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(34, attrDesc_);
}
if (java.lang.Float.floatToRawIntBits(commissionAndFee_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(35, commissionAndFee_);
}
if (openTime_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(36, openTime_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(37, timestamp_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userMark_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(38, userMark_);
}
if (java.lang.Double.doubleToRawLongBits(totalCashAmount_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(39, totalCashAmount_);
}
if (java.lang.Double.doubleToRawLongBits(filledCashAmount_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(40, filledCashAmount_);
}
if (java.lang.Double.doubleToRawLongBits(gst_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(41, gst_);
}
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 com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData)) {
return super.equals(obj);
}
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData other = (com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData) obj;
if (getId()
!= other.getId()) return false;
if (!getAccount()
.equals(other.getAccount())) return false;
if (!getSymbol()
.equals(other.getSymbol())) return false;
if (!getExpiry()
.equals(other.getExpiry())) return false;
if (!getStrike()
.equals(other.getStrike())) return false;
if (!getRight()
.equals(other.getRight())) return false;
if (!getIdentifier()
.equals(other.getIdentifier())) return false;
if (getMultiplier()
!= other.getMultiplier()) return false;
if (!getAction()
.equals(other.getAction())) return false;
if (!getMarket()
.equals(other.getMarket())) return false;
if (!getCurrency()
.equals(other.getCurrency())) return false;
if (!getSegType()
.equals(other.getSegType())) return false;
if (!getSecType()
.equals(other.getSecType())) return false;
if (!getOrderType()
.equals(other.getOrderType())) return false;
if (getIsLong()
!= other.getIsLong()) return false;
if (getTotalQuantity()
!= other.getTotalQuantity()) return false;
if (getTotalQuantityScale()
!= other.getTotalQuantityScale()) return false;
if (getFilledQuantity()
!= other.getFilledQuantity()) return false;
if (getFilledQuantityScale()
!= other.getFilledQuantityScale()) return false;
if (java.lang.Double.doubleToLongBits(getAvgFillPrice())
!= java.lang.Double.doubleToLongBits(
other.getAvgFillPrice())) return false;
if (java.lang.Double.doubleToLongBits(getLimitPrice())
!= java.lang.Double.doubleToLongBits(
other.getLimitPrice())) return false;
if (java.lang.Double.doubleToLongBits(getStopPrice())
!= java.lang.Double.doubleToLongBits(
other.getStopPrice())) return false;
if (java.lang.Double.doubleToLongBits(getRealizedPnl())
!= java.lang.Double.doubleToLongBits(
other.getRealizedPnl())) return false;
if (!getStatus()
.equals(other.getStatus())) return false;
if (!getReplaceStatus()
.equals(other.getReplaceStatus())) return false;
if (!getCancelStatus()
.equals(other.getCancelStatus())) return false;
if (getOutsideRth()
!= other.getOutsideRth()) return false;
if (getCanModify()
!= other.getCanModify()) return false;
if (getCanCancel()
!= other.getCanCancel()) return false;
if (getLiquidation()
!= other.getLiquidation()) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getSource()
.equals(other.getSource())) return false;
if (!getErrorMsg()
.equals(other.getErrorMsg())) return false;
if (!getAttrDesc()
.equals(other.getAttrDesc())) return false;
if (java.lang.Float.floatToIntBits(getCommissionAndFee())
!= java.lang.Float.floatToIntBits(
other.getCommissionAndFee())) return false;
if (getOpenTime()
!= other.getOpenTime()) return false;
if (getTimestamp()
!= other.getTimestamp()) return false;
if (!getUserMark()
.equals(other.getUserMark())) return false;
if (java.lang.Double.doubleToLongBits(getTotalCashAmount())
!= java.lang.Double.doubleToLongBits(
other.getTotalCashAmount())) return false;
if (java.lang.Double.doubleToLongBits(getFilledCashAmount())
!= java.lang.Double.doubleToLongBits(
other.getFilledCashAmount())) return false;
if (java.lang.Double.doubleToLongBits(getGst())
!= java.lang.Double.doubleToLongBits(
other.getGst())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAccount().hashCode();
hash = (37 * hash) + SYMBOL_FIELD_NUMBER;
hash = (53 * hash) + getSymbol().hashCode();
hash = (37 * hash) + EXPIRY_FIELD_NUMBER;
hash = (53 * hash) + getExpiry().hashCode();
hash = (37 * hash) + STRIKE_FIELD_NUMBER;
hash = (53 * hash) + getStrike().hashCode();
hash = (37 * hash) + RIGHT_FIELD_NUMBER;
hash = (53 * hash) + getRight().hashCode();
hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getIdentifier().hashCode();
hash = (37 * hash) + MULTIPLIER_FIELD_NUMBER;
hash = (53 * hash) + getMultiplier();
hash = (37 * hash) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + getAction().hashCode();
hash = (37 * hash) + MARKET_FIELD_NUMBER;
hash = (53 * hash) + getMarket().hashCode();
hash = (37 * hash) + CURRENCY_FIELD_NUMBER;
hash = (53 * hash) + getCurrency().hashCode();
hash = (37 * hash) + SEGTYPE_FIELD_NUMBER;
hash = (53 * hash) + getSegType().hashCode();
hash = (37 * hash) + SECTYPE_FIELD_NUMBER;
hash = (53 * hash) + getSecType().hashCode();
hash = (37 * hash) + ORDERTYPE_FIELD_NUMBER;
hash = (53 * hash) + getOrderType().hashCode();
hash = (37 * hash) + ISLONG_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsLong());
hash = (37 * hash) + TOTALQUANTITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalQuantity());
hash = (37 * hash) + TOTALQUANTITYSCALE_FIELD_NUMBER;
hash = (53 * hash) + getTotalQuantityScale();
hash = (37 * hash) + FILLEDQUANTITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFilledQuantity());
hash = (37 * hash) + FILLEDQUANTITYSCALE_FIELD_NUMBER;
hash = (53 * hash) + getFilledQuantityScale();
hash = (37 * hash) + AVGFILLPRICE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAvgFillPrice()));
hash = (37 * hash) + LIMITPRICE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLimitPrice()));
hash = (37 * hash) + STOPPRICE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getStopPrice()));
hash = (37 * hash) + REALIZEDPNL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRealizedPnl()));
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
hash = (37 * hash) + REPLACESTATUS_FIELD_NUMBER;
hash = (53 * hash) + getReplaceStatus().hashCode();
hash = (37 * hash) + CANCELSTATUS_FIELD_NUMBER;
hash = (53 * hash) + getCancelStatus().hashCode();
hash = (37 * hash) + OUTSIDERTH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOutsideRth());
hash = (37 * hash) + CANMODIFY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanModify());
hash = (37 * hash) + CANCANCEL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCanCancel());
hash = (37 * hash) + LIQUIDATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLiquidation());
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
hash = (37 * hash) + ERRORMSG_FIELD_NUMBER;
hash = (53 * hash) + getErrorMsg().hashCode();
hash = (37 * hash) + ATTRDESC_FIELD_NUMBER;
hash = (53 * hash) + getAttrDesc().hashCode();
hash = (37 * hash) + COMMISSIONANDFEE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getCommissionAndFee());
hash = (37 * hash) + OPENTIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getOpenTime());
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (37 * hash) + USERMARK_FIELD_NUMBER;
hash = (53 * hash) + getUserMark().hashCode();
hash = (37 * hash) + TOTALCASHAMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTotalCashAmount()));
hash = (37 * hash) + FILLEDCASHAMOUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getFilledCashAmount()));
hash = (37 * hash) + GST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGst()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData 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.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData 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.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData 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.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData 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 com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData)
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusDataOuterClass.internal_static_com_tigerbrokers_stock_openapi_client_socket_data_pb_OrderStatusData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusDataOuterClass.internal_static_com_tigerbrokers_stock_openapi_client_socket_data_pb_OrderStatusData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.class, com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.Builder.class);
}
// Construct using com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
bitField1_ = 0;
id_ = 0L;
account_ = "";
symbol_ = "";
expiry_ = "";
strike_ = "";
right_ = "";
identifier_ = "";
multiplier_ = 0;
action_ = "";
market_ = "";
currency_ = "";
segType_ = "";
secType_ = "";
orderType_ = "";
isLong_ = false;
totalQuantity_ = 0L;
totalQuantityScale_ = 0;
filledQuantity_ = 0L;
filledQuantityScale_ = 0;
avgFillPrice_ = 0D;
limitPrice_ = 0D;
stopPrice_ = 0D;
realizedPnl_ = 0D;
status_ = "";
replaceStatus_ = "";
cancelStatus_ = "";
outsideRth_ = false;
canModify_ = false;
canCancel_ = false;
liquidation_ = false;
name_ = "";
source_ = "";
errorMsg_ = "";
attrDesc_ = "";
commissionAndFee_ = 0F;
openTime_ = 0L;
timestamp_ = 0L;
userMark_ = "";
totalCashAmount_ = 0D;
filledCashAmount_ = 0D;
gst_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusDataOuterClass.internal_static_com_tigerbrokers_stock_openapi_client_socket_data_pb_OrderStatusData_descriptor;
}
@java.lang.Override
public com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData getDefaultInstanceForType() {
return com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.getDefaultInstance();
}
@java.lang.Override
public com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData build() {
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData buildPartial() {
com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData result = new com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData(this);
if (bitField0_ != 0) { buildPartial0(result); }
if (bitField1_ != 0) { buildPartial1(result); }
onBuilt();
return result;
}
private void buildPartial0(com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.account_ = account_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.symbol_ = symbol_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.expiry_ = expiry_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.strike_ = strike_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.right_ = right_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.identifier_ = identifier_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.multiplier_ = multiplier_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.action_ = action_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.market_ = market_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.currency_ = currency_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.segType_ = segType_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.secType_ = secType_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.orderType_ = orderType_;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.isLong_ = isLong_;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.totalQuantity_ = totalQuantity_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.totalQuantityScale_ = totalQuantityScale_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.filledQuantity_ = filledQuantity_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.filledQuantityScale_ = filledQuantityScale_;
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.avgFillPrice_ = avgFillPrice_;
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.limitPrice_ = limitPrice_;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.stopPrice_ = stopPrice_;
}
if (((from_bitField0_ & 0x00400000) != 0)) {
result.realizedPnl_ = realizedPnl_;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x01000000) != 0)) {
result.replaceStatus_ = replaceStatus_;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.cancelStatus_ = cancelStatus_;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.outsideRth_ = outsideRth_;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.canModify_ = canModify_;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.canCancel_ = canCancel_;
}
if (((from_bitField0_ & 0x20000000) != 0)) {
result.liquidation_ = liquidation_;
}
if (((from_bitField0_ & 0x40000000) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x80000000) != 0)) {
result.source_ = source_;
}
}
private void buildPartial1(com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData result) {
int from_bitField1_ = bitField1_;
if (((from_bitField1_ & 0x00000001) != 0)) {
result.errorMsg_ = errorMsg_;
}
if (((from_bitField1_ & 0x00000002) != 0)) {
result.attrDesc_ = attrDesc_;
}
if (((from_bitField1_ & 0x00000004) != 0)) {
result.commissionAndFee_ = commissionAndFee_;
}
if (((from_bitField1_ & 0x00000008) != 0)) {
result.openTime_ = openTime_;
}
if (((from_bitField1_ & 0x00000010) != 0)) {
result.timestamp_ = timestamp_;
}
if (((from_bitField1_ & 0x00000020) != 0)) {
result.userMark_ = userMark_;
}
if (((from_bitField1_ & 0x00000040) != 0)) {
result.totalCashAmount_ = totalCashAmount_;
}
if (((from_bitField1_ & 0x00000080) != 0)) {
result.filledCashAmount_ = filledCashAmount_;
}
if (((from_bitField1_ & 0x00000100) != 0)) {
result.gst_ = gst_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData) {
return mergeFrom((com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData other) {
if (other == com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData.getDefaultInstance()) return this;
if (other.getId() != 0L) {
setId(other.getId());
}
if (!other.getAccount().isEmpty()) {
account_ = other.account_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getSymbol().isEmpty()) {
symbol_ = other.symbol_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getExpiry().isEmpty()) {
expiry_ = other.expiry_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getStrike().isEmpty()) {
strike_ = other.strike_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getRight().isEmpty()) {
right_ = other.right_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getIdentifier().isEmpty()) {
identifier_ = other.identifier_;
bitField0_ |= 0x00000040;
onChanged();
}
if (other.getMultiplier() != 0) {
setMultiplier(other.getMultiplier());
}
if (!other.getAction().isEmpty()) {
action_ = other.action_;
bitField0_ |= 0x00000100;
onChanged();
}
if (!other.getMarket().isEmpty()) {
market_ = other.market_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getCurrency().isEmpty()) {
currency_ = other.currency_;
bitField0_ |= 0x00000400;
onChanged();
}
if (!other.getSegType().isEmpty()) {
segType_ = other.segType_;
bitField0_ |= 0x00000800;
onChanged();
}
if (!other.getSecType().isEmpty()) {
secType_ = other.secType_;
bitField0_ |= 0x00001000;
onChanged();
}
if (!other.getOrderType().isEmpty()) {
orderType_ = other.orderType_;
bitField0_ |= 0x00002000;
onChanged();
}
if (other.getIsLong() != false) {
setIsLong(other.getIsLong());
}
if (other.getTotalQuantity() != 0L) {
setTotalQuantity(other.getTotalQuantity());
}
if (other.getTotalQuantityScale() != 0) {
setTotalQuantityScale(other.getTotalQuantityScale());
}
if (other.getFilledQuantity() != 0L) {
setFilledQuantity(other.getFilledQuantity());
}
if (other.getFilledQuantityScale() != 0) {
setFilledQuantityScale(other.getFilledQuantityScale());
}
if (other.getAvgFillPrice() != 0D) {
setAvgFillPrice(other.getAvgFillPrice());
}
if (other.getLimitPrice() != 0D) {
setLimitPrice(other.getLimitPrice());
}
if (other.getStopPrice() != 0D) {
setStopPrice(other.getStopPrice());
}
if (other.getRealizedPnl() != 0D) {
setRealizedPnl(other.getRealizedPnl());
}
if (!other.getStatus().isEmpty()) {
status_ = other.status_;
bitField0_ |= 0x00800000;
onChanged();
}
if (!other.getReplaceStatus().isEmpty()) {
replaceStatus_ = other.replaceStatus_;
bitField0_ |= 0x01000000;
onChanged();
}
if (!other.getCancelStatus().isEmpty()) {
cancelStatus_ = other.cancelStatus_;
bitField0_ |= 0x02000000;
onChanged();
}
if (other.getOutsideRth() != false) {
setOutsideRth(other.getOutsideRth());
}
if (other.getCanModify() != false) {
setCanModify(other.getCanModify());
}
if (other.getCanCancel() != false) {
setCanCancel(other.getCanCancel());
}
if (other.getLiquidation() != false) {
setLiquidation(other.getLiquidation());
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x40000000;
onChanged();
}
if (!other.getSource().isEmpty()) {
source_ = other.source_;
bitField0_ |= 0x80000000;
onChanged();
}
if (!other.getErrorMsg().isEmpty()) {
errorMsg_ = other.errorMsg_;
bitField1_ |= 0x00000001;
onChanged();
}
if (!other.getAttrDesc().isEmpty()) {
attrDesc_ = other.attrDesc_;
bitField1_ |= 0x00000002;
onChanged();
}
if (other.getCommissionAndFee() != 0F) {
setCommissionAndFee(other.getCommissionAndFee());
}
if (other.getOpenTime() != 0L) {
setOpenTime(other.getOpenTime());
}
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (!other.getUserMark().isEmpty()) {
userMark_ = other.userMark_;
bitField1_ |= 0x00000020;
onChanged();
}
if (other.getTotalCashAmount() != 0D) {
setTotalCashAmount(other.getTotalCashAmount());
}
if (other.getFilledCashAmount() != 0D) {
setFilledCashAmount(other.getFilledCashAmount());
}
if (other.getGst() != 0D) {
setGst(other.getGst());
}
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 8: {
id_ = input.readSInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
account_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
symbol_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
expiry_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
strike_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
right_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
identifier_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
case 64: {
multiplier_ = input.readUInt32();
bitField0_ |= 0x00000080;
break;
} // case 64
case 74: {
action_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
case 82: {
market_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 82
case 90: {
currency_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 90
case 98: {
segType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000800;
break;
} // case 98
case 106: {
secType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00001000;
break;
} // case 106
case 114: {
orderType_ = input.readStringRequireUtf8();
bitField0_ |= 0x00002000;
break;
} // case 114
case 120: {
isLong_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 120
case 128: {
totalQuantity_ = input.readSInt64();
bitField0_ |= 0x00008000;
break;
} // case 128
case 136: {
totalQuantityScale_ = input.readSInt32();
bitField0_ |= 0x00010000;
break;
} // case 136
case 144: {
filledQuantity_ = input.readSInt64();
bitField0_ |= 0x00020000;
break;
} // case 144
case 152: {
filledQuantityScale_ = input.readSInt32();
bitField0_ |= 0x00040000;
break;
} // case 152
case 161: {
avgFillPrice_ = input.readDouble();
bitField0_ |= 0x00080000;
break;
} // case 161
case 169: {
limitPrice_ = input.readDouble();
bitField0_ |= 0x00100000;
break;
} // case 169
case 177: {
stopPrice_ = input.readDouble();
bitField0_ |= 0x00200000;
break;
} // case 177
case 185: {
realizedPnl_ = input.readDouble();
bitField0_ |= 0x00400000;
break;
} // case 185
case 194: {
status_ = input.readStringRequireUtf8();
bitField0_ |= 0x00800000;
break;
} // case 194
case 202: {
replaceStatus_ = input.readStringRequireUtf8();
bitField0_ |= 0x01000000;
break;
} // case 202
case 210: {
cancelStatus_ = input.readStringRequireUtf8();
bitField0_ |= 0x02000000;
break;
} // case 210
case 216: {
outsideRth_ = input.readBool();
bitField0_ |= 0x04000000;
break;
} // case 216
case 224: {
canModify_ = input.readBool();
bitField0_ |= 0x08000000;
break;
} // case 224
case 232: {
canCancel_ = input.readBool();
bitField0_ |= 0x10000000;
break;
} // case 232
case 240: {
liquidation_ = input.readBool();
bitField0_ |= 0x20000000;
break;
} // case 240
case 250: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x40000000;
break;
} // case 250
case 258: {
source_ = input.readStringRequireUtf8();
bitField0_ |= 0x80000000;
break;
} // case 258
case 266: {
errorMsg_ = input.readStringRequireUtf8();
bitField1_ |= 0x00000001;
break;
} // case 266
case 274: {
attrDesc_ = input.readStringRequireUtf8();
bitField1_ |= 0x00000002;
break;
} // case 274
case 285: {
commissionAndFee_ = input.readFloat();
bitField1_ |= 0x00000004;
break;
} // case 285
case 288: {
openTime_ = input.readUInt64();
bitField1_ |= 0x00000008;
break;
} // case 288
case 296: {
timestamp_ = input.readUInt64();
bitField1_ |= 0x00000010;
break;
} // case 296
case 306: {
userMark_ = input.readStringRequireUtf8();
bitField1_ |= 0x00000020;
break;
} // case 306
case 313: {
totalCashAmount_ = input.readDouble();
bitField1_ |= 0x00000040;
break;
} // case 313
case 321: {
filledCashAmount_ = input.readDouble();
bitField1_ |= 0x00000080;
break;
} // case 321
case 329: {
gst_ = input.readDouble();
bitField1_ |= 0x00000100;
break;
} // case 329
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 int bitField1_;
private long id_ ;
/**
*
* unique order id
*
*
* sint64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
* unique order id
*
*
* sint64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* unique order id
*
*
* sint64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private java.lang.Object account_ = "";
/**
*
* user account
*
*
* string account = 2;
* @return The account.
*/
public java.lang.String getAccount() {
java.lang.Object ref = account_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
account_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* user account
*
*
* string account = 2;
* @return The bytes for account.
*/
public com.google.protobuf.ByteString
getAccountBytes() {
java.lang.Object ref = account_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
account_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* user account
*
*
* string account = 2;
* @param value The account to set.
* @return This builder for chaining.
*/
public Builder setAccount(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
account_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* user account
*
*
* string account = 2;
* @return This builder for chaining.
*/
public Builder clearAccount() {
account_ = getDefaultInstance().getAccount();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* user account
*
*
* string account = 2;
* @param value The bytes for account to set.
* @return This builder for chaining.
*/
public Builder setAccountBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
account_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object symbol_ = "";
/**
* string symbol = 3;
* @return The symbol.
*/
public java.lang.String getSymbol() {
java.lang.Object ref = symbol_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
symbol_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string symbol = 3;
* @return The bytes for symbol.
*/
public com.google.protobuf.ByteString
getSymbolBytes() {
java.lang.Object ref = symbol_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
symbol_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string symbol = 3;
* @param value The symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbol(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
symbol_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string symbol = 3;
* @return This builder for chaining.
*/
public Builder clearSymbol() {
symbol_ = getDefaultInstance().getSymbol();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string symbol = 3;
* @param value The bytes for symbol to set.
* @return This builder for chaining.
*/
public Builder setSymbolBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
symbol_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object expiry_ = "";
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @return The expiry.
*/
public java.lang.String getExpiry() {
java.lang.Object ref = expiry_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
expiry_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @return The bytes for expiry.
*/
public com.google.protobuf.ByteString
getExpiryBytes() {
java.lang.Object ref = expiry_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expiry_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @param value The expiry to set.
* @return This builder for chaining.
*/
public Builder setExpiry(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
expiry_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @return This builder for chaining.
*/
public Builder clearExpiry() {
expiry_ = getDefaultInstance().getExpiry();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* for options, formate:yyyyMMdd
*
*
* string expiry = 4;
* @param value The bytes for expiry to set.
* @return This builder for chaining.
*/
public Builder setExpiryBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
expiry_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object strike_ = "";
/**
*
* for options
*
*
* string strike = 5;
* @return The strike.
*/
public java.lang.String getStrike() {
java.lang.Object ref = strike_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
strike_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* for options
*
*
* string strike = 5;
* @return The bytes for strike.
*/
public com.google.protobuf.ByteString
getStrikeBytes() {
java.lang.Object ref = strike_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strike_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* for options
*
*
* string strike = 5;
* @param value The strike to set.
* @return This builder for chaining.
*/
public Builder setStrike(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
strike_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* for options
*
*
* string strike = 5;
* @return This builder for chaining.
*/
public Builder clearStrike() {
strike_ = getDefaultInstance().getStrike();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* for options
*
*
* string strike = 5;
* @param value The bytes for strike to set.
* @return This builder for chaining.
*/
public Builder setStrikeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
strike_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object right_ = "";
/**
*
* for options
*
*
* string right = 6;
* @return The right.
*/
public java.lang.String getRight() {
java.lang.Object ref = right_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
right_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* for options
*
*
* string right = 6;
* @return The bytes for right.
*/
public com.google.protobuf.ByteString
getRightBytes() {
java.lang.Object ref = right_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
right_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* for options
*
*
* string right = 6;
* @param value The right to set.
* @return This builder for chaining.
*/
public Builder setRight(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
right_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* for options
*
*
* string right = 6;
* @return This builder for chaining.
*/
public Builder clearRight() {
right_ = getDefaultInstance().getRight();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* for options
*
*
* string right = 6;
* @param value The bytes for right to set.
* @return This builder for chaining.
*/
public Builder setRightBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
right_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object identifier_ = "";
/**
* string identifier = 7;
* @return The identifier.
*/
public java.lang.String getIdentifier() {
java.lang.Object ref = identifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
identifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string identifier = 7;
* @return The bytes for identifier.
*/
public com.google.protobuf.ByteString
getIdentifierBytes() {
java.lang.Object ref = identifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
identifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string identifier = 7;
* @param value The identifier to set.
* @return This builder for chaining.
*/
public Builder setIdentifier(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
identifier_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* string identifier = 7;
* @return This builder for chaining.
*/
public Builder clearIdentifier() {
identifier_ = getDefaultInstance().getIdentifier();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* string identifier = 7;
* @param value The bytes for identifier to set.
* @return This builder for chaining.
*/
public Builder setIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
identifier_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
private int multiplier_ ;
/**
*
* multiplier for futures, options, warrants and CBBC
*
*
* uint32 multiplier = 8;
* @return The multiplier.
*/
@java.lang.Override
public int getMultiplier() {
return multiplier_;
}
/**
*
* multiplier for futures, options, warrants and CBBC
*
*
* uint32 multiplier = 8;
* @param value The multiplier to set.
* @return This builder for chaining.
*/
public Builder setMultiplier(int value) {
multiplier_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* multiplier for futures, options, warrants and CBBC
*
*
* uint32 multiplier = 8;
* @return This builder for chaining.
*/
public Builder clearMultiplier() {
bitField0_ = (bitField0_ & ~0x00000080);
multiplier_ = 0;
onChanged();
return this;
}
private java.lang.Object action_ = "";
/**
*
* BUY or SELL
*
*
* string action = 9;
* @return The action.
*/
public java.lang.String getAction() {
java.lang.Object ref = action_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
action_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* BUY or SELL
*
*
* string action = 9;
* @return The bytes for action.
*/
public com.google.protobuf.ByteString
getActionBytes() {
java.lang.Object ref = action_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
action_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* BUY or SELL
*
*
* string action = 9;
* @param value The action to set.
* @return This builder for chaining.
*/
public Builder setAction(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
action_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* BUY or SELL
*
*
* string action = 9;
* @return This builder for chaining.
*/
public Builder clearAction() {
action_ = getDefaultInstance().getAction();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
* BUY or SELL
*
*
* string action = 9;
* @param value The bytes for action to set.
* @return This builder for chaining.
*/
public Builder setActionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
action_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object market_ = "";
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @return The market.
*/
public java.lang.String getMarket() {
java.lang.Object ref = market_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
market_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @return The bytes for market.
*/
public com.google.protobuf.ByteString
getMarketBytes() {
java.lang.Object ref = market_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
market_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @param value The market to set.
* @return This builder for chaining.
*/
public Builder setMarket(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
market_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @return This builder for chaining.
*/
public Builder clearMarket() {
market_ = getDefaultInstance().getMarket();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
* market. US, HK, etc.
*
*
* string market = 10;
* @param value The bytes for market to set.
* @return This builder for chaining.
*/
public Builder setMarketBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
market_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object currency_ = "";
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @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;
}
}
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @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;
}
}
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @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_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @return This builder for chaining.
*/
public Builder clearCurrency() {
currency_ = getDefaultInstance().getCurrency();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
* currency. USD, HKD, etc.
*
*
* string currency = 11;
* @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_ |= 0x00000400;
onChanged();
return this;
}
private java.lang.Object segType_ = "";
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @return The segType.
*/
public java.lang.String getSegType() {
java.lang.Object ref = segType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
segType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @return The bytes for segType.
*/
public com.google.protobuf.ByteString
getSegTypeBytes() {
java.lang.Object ref = segType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
segType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @param value The segType to set.
* @return This builder for chaining.
*/
public Builder setSegType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
segType_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @return This builder for chaining.
*/
public Builder clearSegType() {
segType_ = getDefaultInstance().getSegType();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
*
* Securities Category C: (Commodities Futures), S: (Securities Stocks)
*
*
* string segType = 12;
* @param value The bytes for segType to set.
* @return This builder for chaining.
*/
public Builder setSegTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
segType_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private java.lang.Object secType_ = "";
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @return The secType.
*/
public java.lang.String getSecType() {
java.lang.Object ref = secType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
secType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @return The bytes for secType.
*/
public com.google.protobuf.ByteString
getSecTypeBytes() {
java.lang.Object ref = secType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
secType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @param value The secType to set.
* @return This builder for chaining.
*/
public Builder setSecType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
secType_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @return This builder for chaining.
*/
public Builder clearSecType() {
secType_ = getDefaultInstance().getSecType();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
/**
*
* STK Stocks, OPT Options, WAR Warrants, IOPT CBBC, CASH FOREX, FUT Futures, FOP Future Options
*
*
* string secType = 13;
* @param value The bytes for secType to set.
* @return This builder for chaining.
*/
public Builder setSecTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
secType_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
private java.lang.Object orderType_ = "";
/**
*
* order type
*
*
* string orderType = 14;
* @return The orderType.
*/
public java.lang.String getOrderType() {
java.lang.Object ref = orderType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
orderType_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* order type
*
*
* string orderType = 14;
* @return The bytes for orderType.
*/
public com.google.protobuf.ByteString
getOrderTypeBytes() {
java.lang.Object ref = orderType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
orderType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* order type
*
*
* string orderType = 14;
* @param value The orderType to set.
* @return This builder for chaining.
*/
public Builder setOrderType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
orderType_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* order type
*
*
* string orderType = 14;
* @return This builder for chaining.
*/
public Builder clearOrderType() {
orderType_ = getDefaultInstance().getOrderType();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
* order type
*
*
* string orderType = 14;
* @param value The bytes for orderType to set.
* @return This builder for chaining.
*/
public Builder setOrderTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
orderType_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private boolean isLong_ ;
/**
* bool isLong = 15;
* @return The isLong.
*/
@java.lang.Override
public boolean getIsLong() {
return isLong_;
}
/**
* bool isLong = 15;
* @param value The isLong to set.
* @return This builder for chaining.
*/
public Builder setIsLong(boolean value) {
isLong_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* bool isLong = 15;
* @return This builder for chaining.
*/
public Builder clearIsLong() {
bitField0_ = (bitField0_ & ~0x00004000);
isLong_ = false;
onChanged();
return this;
}
private long totalQuantity_ ;
/**
*
* total quantity
*
*
* sint64 totalQuantity = 16;
* @return The totalQuantity.
*/
@java.lang.Override
public long getTotalQuantity() {
return totalQuantity_;
}
/**
*
* total quantity
*
*
* sint64 totalQuantity = 16;
* @param value The totalQuantity to set.
* @return This builder for chaining.
*/
public Builder setTotalQuantity(long value) {
totalQuantity_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
* total quantity
*
*
* sint64 totalQuantity = 16;
* @return This builder for chaining.
*/
public Builder clearTotalQuantity() {
bitField0_ = (bitField0_ & ~0x00008000);
totalQuantity_ = 0L;
onChanged();
return this;
}
private int totalQuantityScale_ ;
/**
*
* total quantity scale
*
*
* sint32 totalQuantityScale = 17;
* @return The totalQuantityScale.
*/
@java.lang.Override
public int getTotalQuantityScale() {
return totalQuantityScale_;
}
/**
*
* total quantity scale
*
*
* sint32 totalQuantityScale = 17;
* @param value The totalQuantityScale to set.
* @return This builder for chaining.
*/
public Builder setTotalQuantityScale(int value) {
totalQuantityScale_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* total quantity scale
*
*
* sint32 totalQuantityScale = 17;
* @return This builder for chaining.
*/
public Builder clearTotalQuantityScale() {
bitField0_ = (bitField0_ & ~0x00010000);
totalQuantityScale_ = 0;
onChanged();
return this;
}
private long filledQuantity_ ;
/**
*
* filled quantity
*
*
* sint64 filledQuantity = 18;
* @return The filledQuantity.
*/
@java.lang.Override
public long getFilledQuantity() {
return filledQuantity_;
}
/**
*
* filled quantity
*
*
* sint64 filledQuantity = 18;
* @param value The filledQuantity to set.
* @return This builder for chaining.
*/
public Builder setFilledQuantity(long value) {
filledQuantity_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* filled quantity
*
*
* sint64 filledQuantity = 18;
* @return This builder for chaining.
*/
public Builder clearFilledQuantity() {
bitField0_ = (bitField0_ & ~0x00020000);
filledQuantity_ = 0L;
onChanged();
return this;
}
private int filledQuantityScale_ ;
/**
*
* filled quantity scale
*
*
* sint32 filledQuantityScale = 19;
* @return The filledQuantityScale.
*/
@java.lang.Override
public int getFilledQuantityScale() {
return filledQuantityScale_;
}
/**
*
* filled quantity scale
*
*
* sint32 filledQuantityScale = 19;
* @param value The filledQuantityScale to set.
* @return This builder for chaining.
*/
public Builder setFilledQuantityScale(int value) {
filledQuantityScale_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* filled quantity scale
*
*
* sint32 filledQuantityScale = 19;
* @return This builder for chaining.
*/
public Builder clearFilledQuantityScale() {
bitField0_ = (bitField0_ & ~0x00040000);
filledQuantityScale_ = 0;
onChanged();
return this;
}
private double avgFillPrice_ ;
/**
*
* average price at which the orders got filled
*
*
* double avgFillPrice = 20;
* @return The avgFillPrice.
*/
@java.lang.Override
public double getAvgFillPrice() {
return avgFillPrice_;
}
/**
*
* average price at which the orders got filled
*
*
* double avgFillPrice = 20;
* @param value The avgFillPrice to set.
* @return This builder for chaining.
*/
public Builder setAvgFillPrice(double value) {
avgFillPrice_ = value;
bitField0_ |= 0x00080000;
onChanged();
return this;
}
/**
*
* average price at which the orders got filled
*
*
* double avgFillPrice = 20;
* @return This builder for chaining.
*/
public Builder clearAvgFillPrice() {
bitField0_ = (bitField0_ & ~0x00080000);
avgFillPrice_ = 0D;
onChanged();
return this;
}
private double limitPrice_ ;
/**
*
* limit price(required when orderType is 'LMT')
*
*
* double limitPrice = 21;
* @return The limitPrice.
*/
@java.lang.Override
public double getLimitPrice() {
return limitPrice_;
}
/**
*
* limit price(required when orderType is 'LMT')
*
*
* double limitPrice = 21;
* @param value The limitPrice to set.
* @return This builder for chaining.
*/
public Builder setLimitPrice(double value) {
limitPrice_ = value;
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
* limit price(required when orderType is 'LMT')
*
*
* double limitPrice = 21;
* @return This builder for chaining.
*/
public Builder clearLimitPrice() {
bitField0_ = (bitField0_ & ~0x00100000);
limitPrice_ = 0D;
onChanged();
return this;
}
private double stopPrice_ ;
/**
*
* stop price(required when orderType is 'STP')
*
*
* double stopPrice = 22;
* @return The stopPrice.
*/
@java.lang.Override
public double getStopPrice() {
return stopPrice_;
}
/**
*
* stop price(required when orderType is 'STP')
*
*
* double stopPrice = 22;
* @param value The stopPrice to set.
* @return This builder for chaining.
*/
public Builder setStopPrice(double value) {
stopPrice_ = value;
bitField0_ |= 0x00200000;
onChanged();
return this;
}
/**
*
* stop price(required when orderType is 'STP')
*
*
* double stopPrice = 22;
* @return This builder for chaining.
*/
public Builder clearStopPrice() {
bitField0_ = (bitField0_ & ~0x00200000);
stopPrice_ = 0D;
onChanged();
return this;
}
private double realizedPnl_ ;
/**
*
* realized profit and loss
*
*
* double realizedPnl = 23;
* @return The realizedPnl.
*/
@java.lang.Override
public double getRealizedPnl() {
return realizedPnl_;
}
/**
*
* realized profit and loss
*
*
* double realizedPnl = 23;
* @param value The realizedPnl to set.
* @return This builder for chaining.
*/
public Builder setRealizedPnl(double value) {
realizedPnl_ = value;
bitField0_ |= 0x00400000;
onChanged();
return this;
}
/**
*
* realized profit and loss
*
*
* double realizedPnl = 23;
* @return This builder for chaining.
*/
public Builder clearRealizedPnl() {
bitField0_ = (bitField0_ & ~0x00400000);
realizedPnl_ = 0D;
onChanged();
return this;
}
private java.lang.Object status_ = "";
/**
*
* order status
*
*
* string status = 24;
* @return The status.
*/
public java.lang.String getStatus() {
java.lang.Object ref = status_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
status_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* order status
*
*
* string status = 24;
* @return The bytes for status.
*/
public com.google.protobuf.ByteString
getStatusBytes() {
java.lang.Object ref = status_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
status_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* order status
*
*
* string status = 24;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
status_ = value;
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* order status
*
*
* string status = 24;
* @return This builder for chaining.
*/
public Builder clearStatus() {
status_ = getDefaultInstance().getStatus();
bitField0_ = (bitField0_ & ~0x00800000);
onChanged();
return this;
}
/**
*
* order status
*
*
* string status = 24;
* @param value The bytes for status to set.
* @return This builder for chaining.
*/
public Builder setStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
status_ = value;
bitField0_ |= 0x00800000;
onChanged();
return this;
}
private java.lang.Object replaceStatus_ = "";
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @return The replaceStatus.
*/
public java.lang.String getReplaceStatus() {
java.lang.Object ref = replaceStatus_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
replaceStatus_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @return The bytes for replaceStatus.
*/
public com.google.protobuf.ByteString
getReplaceStatusBytes() {
java.lang.Object ref = replaceStatus_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
replaceStatus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @param value The replaceStatus to set.
* @return This builder for chaining.
*/
public Builder setReplaceStatus(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
replaceStatus_ = value;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @return This builder for chaining.
*/
public Builder clearReplaceStatus() {
replaceStatus_ = getDefaultInstance().getReplaceStatus();
bitField0_ = (bitField0_ & ~0x01000000);
onChanged();
return this;
}
/**
*
* order replace status
*
*
* string replaceStatus = 25;
* @param value The bytes for replaceStatus to set.
* @return This builder for chaining.
*/
public Builder setReplaceStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
replaceStatus_ = value;
bitField0_ |= 0x01000000;
onChanged();
return this;
}
private java.lang.Object cancelStatus_ = "";
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @return The cancelStatus.
*/
public java.lang.String getCancelStatus() {
java.lang.Object ref = cancelStatus_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
cancelStatus_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @return The bytes for cancelStatus.
*/
public com.google.protobuf.ByteString
getCancelStatusBytes() {
java.lang.Object ref = cancelStatus_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cancelStatus_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @param value The cancelStatus to set.
* @return This builder for chaining.
*/
public Builder setCancelStatus(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
cancelStatus_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @return This builder for chaining.
*/
public Builder clearCancelStatus() {
cancelStatus_ = getDefaultInstance().getCancelStatus();
bitField0_ = (bitField0_ & ~0x02000000);
onChanged();
return this;
}
/**
*
* order cancel status
*
*
* string cancelStatus = 26;
* @param value The bytes for cancelStatus to set.
* @return This builder for chaining.
*/
public Builder setCancelStatusBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
cancelStatus_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
private boolean outsideRth_ ;
/**
*
* if trade outside regular trading hours (only applicable to U.S. market)
*
*
* bool outsideRth = 27;
* @return The outsideRth.
*/
@java.lang.Override
public boolean getOutsideRth() {
return outsideRth_;
}
/**
*
* if trade outside regular trading hours (only applicable to U.S. market)
*
*
* bool outsideRth = 27;
* @param value The outsideRth to set.
* @return This builder for chaining.
*/
public Builder setOutsideRth(boolean value) {
outsideRth_ = value;
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
* if trade outside regular trading hours (only applicable to U.S. market)
*
*
* bool outsideRth = 27;
* @return This builder for chaining.
*/
public Builder clearOutsideRth() {
bitField0_ = (bitField0_ & ~0x04000000);
outsideRth_ = false;
onChanged();
return this;
}
private boolean canModify_ ;
/**
* bool canModify = 28;
* @return The canModify.
*/
@java.lang.Override
public boolean getCanModify() {
return canModify_;
}
/**
* bool canModify = 28;
* @param value The canModify to set.
* @return This builder for chaining.
*/
public Builder setCanModify(boolean value) {
canModify_ = value;
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
* bool canModify = 28;
* @return This builder for chaining.
*/
public Builder clearCanModify() {
bitField0_ = (bitField0_ & ~0x08000000);
canModify_ = false;
onChanged();
return this;
}
private boolean canCancel_ ;
/**
* bool canCancel = 29;
* @return The canCancel.
*/
@java.lang.Override
public boolean getCanCancel() {
return canCancel_;
}
/**
* bool canCancel = 29;
* @param value The canCancel to set.
* @return This builder for chaining.
*/
public Builder setCanCancel(boolean value) {
canCancel_ = value;
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
* bool canCancel = 29;
* @return This builder for chaining.
*/
public Builder clearCanCancel() {
bitField0_ = (bitField0_ & ~0x10000000);
canCancel_ = false;
onChanged();
return this;
}
private boolean liquidation_ ;
/**
* bool liquidation = 30;
* @return The liquidation.
*/
@java.lang.Override
public boolean getLiquidation() {
return liquidation_;
}
/**
* bool liquidation = 30;
* @param value The liquidation to set.
* @return This builder for chaining.
*/
public Builder setLiquidation(boolean value) {
liquidation_ = value;
bitField0_ |= 0x20000000;
onChanged();
return this;
}
/**
* bool liquidation = 30;
* @return This builder for chaining.
*/
public Builder clearLiquidation() {
bitField0_ = (bitField0_ & ~0x20000000);
liquidation_ = false;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* symbol name
*
*
* string name = 31;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* symbol name
*
*
* string name = 31;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* symbol name
*
*
* string name = 31;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x40000000;
onChanged();
return this;
}
/**
*
* symbol name
*
*
* string name = 31;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x40000000);
onChanged();
return this;
}
/**
*
* symbol name
*
*
* string name = 31;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x40000000;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
source_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
source_ = value;
bitField0_ |= 0x80000000;
onChanged();
return this;
}
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
bitField0_ = (bitField0_ & ~0x80000000);
onChanged();
return this;
}
/**
*
* order source(from 'OpenApi', or not)
*
*
* string source = 32;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
source_ = value;
bitField0_ |= 0x80000000;
onChanged();
return this;
}
private java.lang.Object errorMsg_ = "";
/**
*
* error message
*
*
* string errorMsg = 33;
* @return The errorMsg.
*/
public java.lang.String getErrorMsg() {
java.lang.Object ref = errorMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMsg_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* error message
*
*
* string errorMsg = 33;
* @return The bytes for errorMsg.
*/
public com.google.protobuf.ByteString
getErrorMsgBytes() {
java.lang.Object ref = errorMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* error message
*
*
* string errorMsg = 33;
* @param value The errorMsg to set.
* @return This builder for chaining.
*/
public Builder setErrorMsg(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
errorMsg_ = value;
bitField1_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* error message
*
*
* string errorMsg = 33;
* @return This builder for chaining.
*/
public Builder clearErrorMsg() {
errorMsg_ = getDefaultInstance().getErrorMsg();
bitField1_ = (bitField1_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* error message
*
*
* string errorMsg = 33;
* @param value The bytes for errorMsg to set.
* @return This builder for chaining.
*/
public Builder setErrorMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
errorMsg_ = value;
bitField1_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object attrDesc_ = "";
/**
*
* order description
*
*
* string attrDesc = 34;
* @return The attrDesc.
*/
public java.lang.String getAttrDesc() {
java.lang.Object ref = attrDesc_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
attrDesc_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* order description
*
*
* string attrDesc = 34;
* @return The bytes for attrDesc.
*/
public com.google.protobuf.ByteString
getAttrDescBytes() {
java.lang.Object ref = attrDesc_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
attrDesc_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* order description
*
*
* string attrDesc = 34;
* @param value The attrDesc to set.
* @return This builder for chaining.
*/
public Builder setAttrDesc(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
attrDesc_ = value;
bitField1_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* order description
*
*
* string attrDesc = 34;
* @return This builder for chaining.
*/
public Builder clearAttrDesc() {
attrDesc_ = getDefaultInstance().getAttrDesc();
bitField1_ = (bitField1_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* order description
*
*
* string attrDesc = 34;
* @param value The bytes for attrDesc to set.
* @return This builder for chaining.
*/
public Builder setAttrDescBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
attrDesc_ = value;
bitField1_ |= 0x00000002;
onChanged();
return this;
}
private float commissionAndFee_ ;
/**
*
* commission and fee
*
*
* float commissionAndFee = 35;
* @return The commissionAndFee.
*/
@java.lang.Override
public float getCommissionAndFee() {
return commissionAndFee_;
}
/**
*
* commission and fee
*
*
* float commissionAndFee = 35;
* @param value The commissionAndFee to set.
* @return This builder for chaining.
*/
public Builder setCommissionAndFee(float value) {
commissionAndFee_ = value;
bitField1_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* commission and fee
*
*
* float commissionAndFee = 35;
* @return This builder for chaining.
*/
public Builder clearCommissionAndFee() {
bitField1_ = (bitField1_ & ~0x00000004);
commissionAndFee_ = 0F;
onChanged();
return this;
}
private long openTime_ ;
/**
*
* timestamp when the order is placed
*
*
* uint64 openTime = 36;
* @return The openTime.
*/
@java.lang.Override
public long getOpenTime() {
return openTime_;
}
/**
*
* timestamp when the order is placed
*
*
* uint64 openTime = 36;
* @param value The openTime to set.
* @return This builder for chaining.
*/
public Builder setOpenTime(long value) {
openTime_ = value;
bitField1_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* timestamp when the order is placed
*
*
* uint64 openTime = 36;
* @return This builder for chaining.
*/
public Builder clearOpenTime() {
bitField1_ = (bitField1_ & ~0x00000008);
openTime_ = 0L;
onChanged();
return this;
}
private long timestamp_ ;
/**
* uint64 timestamp = 37;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
* uint64 timestamp = 37;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
bitField1_ |= 0x00000010;
onChanged();
return this;
}
/**
* uint64 timestamp = 37;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField1_ = (bitField1_ & ~0x00000010);
timestamp_ = 0L;
onChanged();
return this;
}
private java.lang.Object userMark_ = "";
/**
* string userMark = 38;
* @return The userMark.
*/
public java.lang.String getUserMark() {
java.lang.Object ref = userMark_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userMark_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string userMark = 38;
* @return The bytes for userMark.
*/
public com.google.protobuf.ByteString
getUserMarkBytes() {
java.lang.Object ref = userMark_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userMark_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string userMark = 38;
* @param value The userMark to set.
* @return This builder for chaining.
*/
public Builder setUserMark(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
userMark_ = value;
bitField1_ |= 0x00000020;
onChanged();
return this;
}
/**
* string userMark = 38;
* @return This builder for chaining.
*/
public Builder clearUserMark() {
userMark_ = getDefaultInstance().getUserMark();
bitField1_ = (bitField1_ & ~0x00000020);
onChanged();
return this;
}
/**
* string userMark = 38;
* @param value The bytes for userMark to set.
* @return This builder for chaining.
*/
public Builder setUserMarkBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
userMark_ = value;
bitField1_ |= 0x00000020;
onChanged();
return this;
}
private double totalCashAmount_ ;
/**
* double totalCashAmount = 39;
* @return The totalCashAmount.
*/
@java.lang.Override
public double getTotalCashAmount() {
return totalCashAmount_;
}
/**
* double totalCashAmount = 39;
* @param value The totalCashAmount to set.
* @return This builder for chaining.
*/
public Builder setTotalCashAmount(double value) {
totalCashAmount_ = value;
bitField1_ |= 0x00000040;
onChanged();
return this;
}
/**
* double totalCashAmount = 39;
* @return This builder for chaining.
*/
public Builder clearTotalCashAmount() {
bitField1_ = (bitField1_ & ~0x00000040);
totalCashAmount_ = 0D;
onChanged();
return this;
}
private double filledCashAmount_ ;
/**
* double filledCashAmount = 40;
* @return The filledCashAmount.
*/
@java.lang.Override
public double getFilledCashAmount() {
return filledCashAmount_;
}
/**
* double filledCashAmount = 40;
* @param value The filledCashAmount to set.
* @return This builder for chaining.
*/
public Builder setFilledCashAmount(double value) {
filledCashAmount_ = value;
bitField1_ |= 0x00000080;
onChanged();
return this;
}
/**
* double filledCashAmount = 40;
* @return This builder for chaining.
*/
public Builder clearFilledCashAmount() {
bitField1_ = (bitField1_ & ~0x00000080);
filledCashAmount_ = 0D;
onChanged();
return this;
}
private double gst_ ;
/**
*
* Goods and Services Tax(TBSG only)
*
*
* double gst = 41;
* @return The gst.
*/
@java.lang.Override
public double getGst() {
return gst_;
}
/**
*
* Goods and Services Tax(TBSG only)
*
*
* double gst = 41;
* @param value The gst to set.
* @return This builder for chaining.
*/
public Builder setGst(double value) {
gst_ = value;
bitField1_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* Goods and Services Tax(TBSG only)
*
*
* double gst = 41;
* @return This builder for chaining.
*/
public Builder clearGst() {
bitField1_ = (bitField1_ & ~0x00000100);
gst_ = 0D;
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:com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData)
}
// @@protoc_insertion_point(class_scope:com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData)
private static final com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData();
}
public static com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OrderStatusData 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 com.tigerbrokers.stock.openapi.client.socket.data.pb.OrderStatusData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy