com.moomoo.openapi.pb.QotUpdateOrderBook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moomoo-api Show documentation
Show all versions of moomoo-api Show documentation
Moomoo OpenAPI quantitative transaction interface for Java.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_UpdateOrderBook.proto
package com.moomoo.openapi.pb;
public final class QotUpdateOrderBook {
private QotUpdateOrderBook() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface S2COrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_UpdateOrderBook.S2C)
com.google.protobuf.MessageOrBuilder {
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
boolean hasSecurity();
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
com.moomoo.openapi.pb.QotCommon.Security getSecurity();
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder();
/**
*
*股票名称
*
*
* optional string name = 8;
*/
boolean hasName();
/**
*
*股票名称
*
*
* optional string name = 8;
*/
java.lang.String getName();
/**
*
*股票名称
*
*
* optional string name = 8;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
java.util.List
getOrderBookAskListList();
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
com.moomoo.openapi.pb.QotCommon.OrderBook getOrderBookAskList(int index);
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
int getOrderBookAskListCount();
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
java.util.List extends com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookAskListOrBuilderList();
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder getOrderBookAskListOrBuilder(
int index);
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
java.util.List
getOrderBookBidListList();
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
com.moomoo.openapi.pb.QotCommon.OrderBook getOrderBookBidList(int index);
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
int getOrderBookBidListCount();
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
java.util.List extends com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookBidListOrBuilderList();
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder getOrderBookBidListOrBuilder(
int index);
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
boolean hasSvrRecvTimeBid();
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
java.lang.String getSvrRecvTimeBid();
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
com.google.protobuf.ByteString
getSvrRecvTimeBidBytes();
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
boolean hasSvrRecvTimeBidTimestamp();
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
double getSvrRecvTimeBidTimestamp();
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
boolean hasSvrRecvTimeAsk();
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
java.lang.String getSvrRecvTimeAsk();
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
com.google.protobuf.ByteString
getSvrRecvTimeAskBytes();
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
boolean hasSvrRecvTimeAskTimestamp();
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
double getSvrRecvTimeAskTimestamp();
}
/**
* Protobuf type {@code Qot_UpdateOrderBook.S2C}
*/
public static final class S2C extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_UpdateOrderBook.S2C)
S2COrBuilder {
private static final long serialVersionUID = 0L;
// Use S2C.newBuilder() to construct.
private S2C(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private S2C() {
name_ = "";
orderBookAskList_ = java.util.Collections.emptyList();
orderBookBidList_ = java.util.Collections.emptyList();
svrRecvTimeBid_ = "";
svrRecvTimeBidTimestamp_ = 0D;
svrRecvTimeAsk_ = "";
svrRecvTimeAskTimestamp_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private S2C(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.moomoo.openapi.pb.QotCommon.Security.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = security_.toBuilder();
}
security_ = input.readMessage(com.moomoo.openapi.pb.QotCommon.Security.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(security_);
security_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
orderBookAskList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
orderBookAskList_.add(
input.readMessage(com.moomoo.openapi.pb.QotCommon.OrderBook.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
orderBookBidList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
orderBookBidList_.add(
input.readMessage(com.moomoo.openapi.pb.QotCommon.OrderBook.PARSER, extensionRegistry));
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
svrRecvTimeBid_ = bs;
break;
}
case 41: {
bitField0_ |= 0x00000008;
svrRecvTimeBidTimestamp_ = input.readDouble();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
svrRecvTimeAsk_ = bs;
break;
}
case 57: {
bitField0_ |= 0x00000020;
svrRecvTimeAskTimestamp_ = input.readDouble();
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
name_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
orderBookAskList_ = java.util.Collections.unmodifiableList(orderBookAskList_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
orderBookBidList_ = java.util.Collections.unmodifiableList(orderBookBidList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.class, com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder.class);
}
private int bitField0_;
public static final int SECURITY_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotCommon.Security security_;
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public boolean hasSecurity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurity() {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder() {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
public static final int NAME_FIELD_NUMBER = 8;
private volatile java.lang.Object name_;
/**
*
*股票名称
*
*
* optional string name = 8;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
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 ORDERBOOKASKLIST_FIELD_NUMBER = 2;
private java.util.List orderBookAskList_;
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public java.util.List getOrderBookAskListList() {
return orderBookAskList_;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookAskListOrBuilderList() {
return orderBookAskList_;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public int getOrderBookAskListCount() {
return orderBookAskList_.size();
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook getOrderBookAskList(int index) {
return orderBookAskList_.get(index);
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder getOrderBookAskListOrBuilder(
int index) {
return orderBookAskList_.get(index);
}
public static final int ORDERBOOKBIDLIST_FIELD_NUMBER = 3;
private java.util.List orderBookBidList_;
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public java.util.List getOrderBookBidListList() {
return orderBookBidList_;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public java.util.List extends com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookBidListOrBuilderList() {
return orderBookBidList_;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public int getOrderBookBidListCount() {
return orderBookBidList_.size();
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook getOrderBookBidList(int index) {
return orderBookBidList_.get(index);
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder getOrderBookBidListOrBuilder(
int index) {
return orderBookBidList_.get(index);
}
public static final int SVRRECVTIMEBID_FIELD_NUMBER = 4;
private volatile java.lang.Object svrRecvTimeBid_;
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public boolean hasSvrRecvTimeBid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public java.lang.String getSvrRecvTimeBid() {
java.lang.Object ref = svrRecvTimeBid_;
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();
if (bs.isValidUtf8()) {
svrRecvTimeBid_ = s;
}
return s;
}
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public com.google.protobuf.ByteString
getSvrRecvTimeBidBytes() {
java.lang.Object ref = svrRecvTimeBid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
svrRecvTimeBid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SVRRECVTIMEBIDTIMESTAMP_FIELD_NUMBER = 5;
private double svrRecvTimeBidTimestamp_;
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
public boolean hasSvrRecvTimeBidTimestamp() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
public double getSvrRecvTimeBidTimestamp() {
return svrRecvTimeBidTimestamp_;
}
public static final int SVRRECVTIMEASK_FIELD_NUMBER = 6;
private volatile java.lang.Object svrRecvTimeAsk_;
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public boolean hasSvrRecvTimeAsk() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public java.lang.String getSvrRecvTimeAsk() {
java.lang.Object ref = svrRecvTimeAsk_;
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();
if (bs.isValidUtf8()) {
svrRecvTimeAsk_ = s;
}
return s;
}
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public com.google.protobuf.ByteString
getSvrRecvTimeAskBytes() {
java.lang.Object ref = svrRecvTimeAsk_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
svrRecvTimeAsk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SVRRECVTIMEASKTIMESTAMP_FIELD_NUMBER = 7;
private double svrRecvTimeAskTimestamp_;
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
public boolean hasSvrRecvTimeAskTimestamp() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
public double getSvrRecvTimeAskTimestamp() {
return svrRecvTimeAskTimestamp_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSecurity()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSecurity().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getOrderBookAskListCount(); i++) {
if (!getOrderBookAskList(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getOrderBookBidListCount(); i++) {
if (!getOrderBookBidList(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getSecurity());
}
for (int i = 0; i < orderBookAskList_.size(); i++) {
output.writeMessage(2, orderBookAskList_.get(i));
}
for (int i = 0; i < orderBookBidList_.size(); i++) {
output.writeMessage(3, orderBookBidList_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, svrRecvTimeBid_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(5, svrRecvTimeBidTimestamp_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, svrRecvTimeAsk_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeDouble(7, svrRecvTimeAskTimestamp_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSecurity());
}
for (int i = 0; i < orderBookAskList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, orderBookAskList_.get(i));
}
for (int i = 0; i < orderBookBidList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, orderBookBidList_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, svrRecvTimeBid_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, svrRecvTimeBidTimestamp_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, svrRecvTimeAsk_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, svrRecvTimeAskTimestamp_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.moomoo.openapi.pb.QotUpdateOrderBook.S2C)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C other = (com.moomoo.openapi.pb.QotUpdateOrderBook.S2C) obj;
boolean result = true;
result = result && (hasSecurity() == other.hasSecurity());
if (hasSecurity()) {
result = result && getSecurity()
.equals(other.getSecurity());
}
result = result && (hasName() == other.hasName());
if (hasName()) {
result = result && getName()
.equals(other.getName());
}
result = result && getOrderBookAskListList()
.equals(other.getOrderBookAskListList());
result = result && getOrderBookBidListList()
.equals(other.getOrderBookBidListList());
result = result && (hasSvrRecvTimeBid() == other.hasSvrRecvTimeBid());
if (hasSvrRecvTimeBid()) {
result = result && getSvrRecvTimeBid()
.equals(other.getSvrRecvTimeBid());
}
result = result && (hasSvrRecvTimeBidTimestamp() == other.hasSvrRecvTimeBidTimestamp());
if (hasSvrRecvTimeBidTimestamp()) {
result = result && (
java.lang.Double.doubleToLongBits(getSvrRecvTimeBidTimestamp())
== java.lang.Double.doubleToLongBits(
other.getSvrRecvTimeBidTimestamp()));
}
result = result && (hasSvrRecvTimeAsk() == other.hasSvrRecvTimeAsk());
if (hasSvrRecvTimeAsk()) {
result = result && getSvrRecvTimeAsk()
.equals(other.getSvrRecvTimeAsk());
}
result = result && (hasSvrRecvTimeAskTimestamp() == other.hasSvrRecvTimeAskTimestamp());
if (hasSvrRecvTimeAskTimestamp()) {
result = result && (
java.lang.Double.doubleToLongBits(getSvrRecvTimeAskTimestamp())
== java.lang.Double.doubleToLongBits(
other.getSvrRecvTimeAskTimestamp()));
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSecurity()) {
hash = (37 * hash) + SECURITY_FIELD_NUMBER;
hash = (53 * hash) + getSecurity().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (getOrderBookAskListCount() > 0) {
hash = (37 * hash) + ORDERBOOKASKLIST_FIELD_NUMBER;
hash = (53 * hash) + getOrderBookAskListList().hashCode();
}
if (getOrderBookBidListCount() > 0) {
hash = (37 * hash) + ORDERBOOKBIDLIST_FIELD_NUMBER;
hash = (53 * hash) + getOrderBookBidListList().hashCode();
}
if (hasSvrRecvTimeBid()) {
hash = (37 * hash) + SVRRECVTIMEBID_FIELD_NUMBER;
hash = (53 * hash) + getSvrRecvTimeBid().hashCode();
}
if (hasSvrRecvTimeBidTimestamp()) {
hash = (37 * hash) + SVRRECVTIMEBIDTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSvrRecvTimeBidTimestamp()));
}
if (hasSvrRecvTimeAsk()) {
hash = (37 * hash) + SVRRECVTIMEASK_FIELD_NUMBER;
hash = (53 * hash) + getSvrRecvTimeAsk().hashCode();
}
if (hasSvrRecvTimeAskTimestamp()) {
hash = (37 * hash) + SVRRECVTIMEASKTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSvrRecvTimeAskTimestamp()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C 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.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C 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.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.moomoo.openapi.pb.QotUpdateOrderBook.S2C prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 Qot_UpdateOrderBook.S2C}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_UpdateOrderBook.S2C)
com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.class, com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecurityFieldBuilder();
getOrderBookAskListFieldBuilder();
getOrderBookBidListFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (securityBuilder_ == null) {
security_ = null;
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (orderBookAskListBuilder_ == null) {
orderBookAskList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
orderBookAskListBuilder_.clear();
}
if (orderBookBidListBuilder_ == null) {
orderBookBidList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
orderBookBidListBuilder_.clear();
}
svrRecvTimeBid_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
svrRecvTimeBidTimestamp_ = 0D;
bitField0_ = (bitField0_ & ~0x00000020);
svrRecvTimeAsk_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
svrRecvTimeAskTimestamp_ = 0D;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_S2C_descriptor;
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C build() {
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C buildPartial() {
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C result = new com.moomoo.openapi.pb.QotUpdateOrderBook.S2C(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (securityBuilder_ == null) {
result.security_ = security_;
} else {
result.security_ = securityBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (orderBookAskListBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
orderBookAskList_ = java.util.Collections.unmodifiableList(orderBookAskList_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.orderBookAskList_ = orderBookAskList_;
} else {
result.orderBookAskList_ = orderBookAskListBuilder_.build();
}
if (orderBookBidListBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
orderBookBidList_ = java.util.Collections.unmodifiableList(orderBookBidList_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.orderBookBidList_ = orderBookBidList_;
} else {
result.orderBookBidList_ = orderBookBidListBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.svrRecvTimeBid_ = svrRecvTimeBid_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000008;
}
result.svrRecvTimeBidTimestamp_ = svrRecvTimeBidTimestamp_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000010;
}
result.svrRecvTimeAsk_ = svrRecvTimeAsk_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000020;
}
result.svrRecvTimeAskTimestamp_ = svrRecvTimeAskTimestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.moomoo.openapi.pb.QotUpdateOrderBook.S2C) {
return mergeFrom((com.moomoo.openapi.pb.QotUpdateOrderBook.S2C)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotUpdateOrderBook.S2C other) {
if (other == com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance()) return this;
if (other.hasSecurity()) {
mergeSecurity(other.getSecurity());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (orderBookAskListBuilder_ == null) {
if (!other.orderBookAskList_.isEmpty()) {
if (orderBookAskList_.isEmpty()) {
orderBookAskList_ = other.orderBookAskList_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureOrderBookAskListIsMutable();
orderBookAskList_.addAll(other.orderBookAskList_);
}
onChanged();
}
} else {
if (!other.orderBookAskList_.isEmpty()) {
if (orderBookAskListBuilder_.isEmpty()) {
orderBookAskListBuilder_.dispose();
orderBookAskListBuilder_ = null;
orderBookAskList_ = other.orderBookAskList_;
bitField0_ = (bitField0_ & ~0x00000004);
orderBookAskListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrderBookAskListFieldBuilder() : null;
} else {
orderBookAskListBuilder_.addAllMessages(other.orderBookAskList_);
}
}
}
if (orderBookBidListBuilder_ == null) {
if (!other.orderBookBidList_.isEmpty()) {
if (orderBookBidList_.isEmpty()) {
orderBookBidList_ = other.orderBookBidList_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureOrderBookBidListIsMutable();
orderBookBidList_.addAll(other.orderBookBidList_);
}
onChanged();
}
} else {
if (!other.orderBookBidList_.isEmpty()) {
if (orderBookBidListBuilder_.isEmpty()) {
orderBookBidListBuilder_.dispose();
orderBookBidListBuilder_ = null;
orderBookBidList_ = other.orderBookBidList_;
bitField0_ = (bitField0_ & ~0x00000008);
orderBookBidListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOrderBookBidListFieldBuilder() : null;
} else {
orderBookBidListBuilder_.addAllMessages(other.orderBookBidList_);
}
}
}
if (other.hasSvrRecvTimeBid()) {
bitField0_ |= 0x00000010;
svrRecvTimeBid_ = other.svrRecvTimeBid_;
onChanged();
}
if (other.hasSvrRecvTimeBidTimestamp()) {
setSvrRecvTimeBidTimestamp(other.getSvrRecvTimeBidTimestamp());
}
if (other.hasSvrRecvTimeAsk()) {
bitField0_ |= 0x00000040;
svrRecvTimeAsk_ = other.svrRecvTimeAsk_;
onChanged();
}
if (other.hasSvrRecvTimeAskTimestamp()) {
setSvrRecvTimeAskTimestamp(other.getSvrRecvTimeAskTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasSecurity()) {
return false;
}
if (!getSecurity().isInitialized()) {
return false;
}
for (int i = 0; i < getOrderBookAskListCount(); i++) {
if (!getOrderBookAskList(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getOrderBookBidListCount(); i++) {
if (!getOrderBookBidList(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotUpdateOrderBook.S2C) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotCommon.Security security_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder> securityBuilder_;
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public boolean hasSecurity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurity() {
if (securityBuilder_ == null) {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
} else {
return securityBuilder_.getMessage();
}
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder setSecurity(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
security_ = value;
onChanged();
} else {
securityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder setSecurity(
com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) {
if (securityBuilder_ == null) {
security_ = builderForValue.build();
onChanged();
} else {
securityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder mergeSecurity(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
security_ != null &&
security_ != com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance()) {
security_ =
com.moomoo.openapi.pb.QotCommon.Security.newBuilder(security_).mergeFrom(value).buildPartial();
} else {
security_ = value;
}
onChanged();
} else {
securityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder clearSecurity() {
if (securityBuilder_ == null) {
security_ = null;
onChanged();
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security.Builder getSecurityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSecurityFieldBuilder().getBuilder();
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder() {
if (securityBuilder_ != null) {
return securityBuilder_.getMessageOrBuilder();
} else {
return security_ == null ?
com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>
getSecurityFieldBuilder() {
if (securityBuilder_ == null) {
securityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>(
getSecurity(),
getParentForChildren(),
isClean());
security_ = null;
}
return securityBuilder_;
}
private java.lang.Object name_ = "";
/**
*
*股票名称
*
*
* optional string name = 8;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
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;
}
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*股票名称
*
*
* optional string name = 8;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.util.List orderBookAskList_ =
java.util.Collections.emptyList();
private void ensureOrderBookAskListIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
orderBookAskList_ = new java.util.ArrayList(orderBookAskList_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.OrderBook, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder, com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder> orderBookAskListBuilder_;
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public java.util.List getOrderBookAskListList() {
if (orderBookAskListBuilder_ == null) {
return java.util.Collections.unmodifiableList(orderBookAskList_);
} else {
return orderBookAskListBuilder_.getMessageList();
}
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public int getOrderBookAskListCount() {
if (orderBookAskListBuilder_ == null) {
return orderBookAskList_.size();
} else {
return orderBookAskListBuilder_.getCount();
}
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook getOrderBookAskList(int index) {
if (orderBookAskListBuilder_ == null) {
return orderBookAskList_.get(index);
} else {
return orderBookAskListBuilder_.getMessage(index);
}
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder setOrderBookAskList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook value) {
if (orderBookAskListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBookAskListIsMutable();
orderBookAskList_.set(index, value);
onChanged();
} else {
orderBookAskListBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder setOrderBookAskList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder builderForValue) {
if (orderBookAskListBuilder_ == null) {
ensureOrderBookAskListIsMutable();
orderBookAskList_.set(index, builderForValue.build());
onChanged();
} else {
orderBookAskListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder addOrderBookAskList(com.moomoo.openapi.pb.QotCommon.OrderBook value) {
if (orderBookAskListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBookAskListIsMutable();
orderBookAskList_.add(value);
onChanged();
} else {
orderBookAskListBuilder_.addMessage(value);
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder addOrderBookAskList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook value) {
if (orderBookAskListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBookAskListIsMutable();
orderBookAskList_.add(index, value);
onChanged();
} else {
orderBookAskListBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder addOrderBookAskList(
com.moomoo.openapi.pb.QotCommon.OrderBook.Builder builderForValue) {
if (orderBookAskListBuilder_ == null) {
ensureOrderBookAskListIsMutable();
orderBookAskList_.add(builderForValue.build());
onChanged();
} else {
orderBookAskListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder addOrderBookAskList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder builderForValue) {
if (orderBookAskListBuilder_ == null) {
ensureOrderBookAskListIsMutable();
orderBookAskList_.add(index, builderForValue.build());
onChanged();
} else {
orderBookAskListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder addAllOrderBookAskList(
java.lang.Iterable extends com.moomoo.openapi.pb.QotCommon.OrderBook> values) {
if (orderBookAskListBuilder_ == null) {
ensureOrderBookAskListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orderBookAskList_);
onChanged();
} else {
orderBookAskListBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder clearOrderBookAskList() {
if (orderBookAskListBuilder_ == null) {
orderBookAskList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
orderBookAskListBuilder_.clear();
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public Builder removeOrderBookAskList(int index) {
if (orderBookAskListBuilder_ == null) {
ensureOrderBookAskListIsMutable();
orderBookAskList_.remove(index);
onChanged();
} else {
orderBookAskListBuilder_.remove(index);
}
return this;
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook.Builder getOrderBookAskListBuilder(
int index) {
return getOrderBookAskListFieldBuilder().getBuilder(index);
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder getOrderBookAskListOrBuilder(
int index) {
if (orderBookAskListBuilder_ == null) {
return orderBookAskList_.get(index); } else {
return orderBookAskListBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookAskListOrBuilderList() {
if (orderBookAskListBuilder_ != null) {
return orderBookAskListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orderBookAskList_);
}
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook.Builder addOrderBookAskListBuilder() {
return getOrderBookAskListFieldBuilder().addBuilder(
com.moomoo.openapi.pb.QotCommon.OrderBook.getDefaultInstance());
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook.Builder addOrderBookAskListBuilder(
int index) {
return getOrderBookAskListFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.QotCommon.OrderBook.getDefaultInstance());
}
/**
*
*卖盘
*
*
* repeated .Qot_Common.OrderBook orderBookAskList = 2;
*/
public java.util.List
getOrderBookAskListBuilderList() {
return getOrderBookAskListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.OrderBook, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder, com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookAskListFieldBuilder() {
if (orderBookAskListBuilder_ == null) {
orderBookAskListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.OrderBook, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder, com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>(
orderBookAskList_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
orderBookAskList_ = null;
}
return orderBookAskListBuilder_;
}
private java.util.List orderBookBidList_ =
java.util.Collections.emptyList();
private void ensureOrderBookBidListIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
orderBookBidList_ = new java.util.ArrayList(orderBookBidList_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.OrderBook, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder, com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder> orderBookBidListBuilder_;
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public java.util.List getOrderBookBidListList() {
if (orderBookBidListBuilder_ == null) {
return java.util.Collections.unmodifiableList(orderBookBidList_);
} else {
return orderBookBidListBuilder_.getMessageList();
}
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public int getOrderBookBidListCount() {
if (orderBookBidListBuilder_ == null) {
return orderBookBidList_.size();
} else {
return orderBookBidListBuilder_.getCount();
}
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook getOrderBookBidList(int index) {
if (orderBookBidListBuilder_ == null) {
return orderBookBidList_.get(index);
} else {
return orderBookBidListBuilder_.getMessage(index);
}
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder setOrderBookBidList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook value) {
if (orderBookBidListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBookBidListIsMutable();
orderBookBidList_.set(index, value);
onChanged();
} else {
orderBookBidListBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder setOrderBookBidList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder builderForValue) {
if (orderBookBidListBuilder_ == null) {
ensureOrderBookBidListIsMutable();
orderBookBidList_.set(index, builderForValue.build());
onChanged();
} else {
orderBookBidListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder addOrderBookBidList(com.moomoo.openapi.pb.QotCommon.OrderBook value) {
if (orderBookBidListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBookBidListIsMutable();
orderBookBidList_.add(value);
onChanged();
} else {
orderBookBidListBuilder_.addMessage(value);
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder addOrderBookBidList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook value) {
if (orderBookBidListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOrderBookBidListIsMutable();
orderBookBidList_.add(index, value);
onChanged();
} else {
orderBookBidListBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder addOrderBookBidList(
com.moomoo.openapi.pb.QotCommon.OrderBook.Builder builderForValue) {
if (orderBookBidListBuilder_ == null) {
ensureOrderBookBidListIsMutable();
orderBookBidList_.add(builderForValue.build());
onChanged();
} else {
orderBookBidListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder addOrderBookBidList(
int index, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder builderForValue) {
if (orderBookBidListBuilder_ == null) {
ensureOrderBookBidListIsMutable();
orderBookBidList_.add(index, builderForValue.build());
onChanged();
} else {
orderBookBidListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder addAllOrderBookBidList(
java.lang.Iterable extends com.moomoo.openapi.pb.QotCommon.OrderBook> values) {
if (orderBookBidListBuilder_ == null) {
ensureOrderBookBidListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, orderBookBidList_);
onChanged();
} else {
orderBookBidListBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder clearOrderBookBidList() {
if (orderBookBidListBuilder_ == null) {
orderBookBidList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
orderBookBidListBuilder_.clear();
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public Builder removeOrderBookBidList(int index) {
if (orderBookBidListBuilder_ == null) {
ensureOrderBookBidListIsMutable();
orderBookBidList_.remove(index);
onChanged();
} else {
orderBookBidListBuilder_.remove(index);
}
return this;
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook.Builder getOrderBookBidListBuilder(
int index) {
return getOrderBookBidListFieldBuilder().getBuilder(index);
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder getOrderBookBidListOrBuilder(
int index) {
if (orderBookBidListBuilder_ == null) {
return orderBookBidList_.get(index); } else {
return orderBookBidListBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public java.util.List extends com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookBidListOrBuilderList() {
if (orderBookBidListBuilder_ != null) {
return orderBookBidListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(orderBookBidList_);
}
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook.Builder addOrderBookBidListBuilder() {
return getOrderBookBidListFieldBuilder().addBuilder(
com.moomoo.openapi.pb.QotCommon.OrderBook.getDefaultInstance());
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public com.moomoo.openapi.pb.QotCommon.OrderBook.Builder addOrderBookBidListBuilder(
int index) {
return getOrderBookBidListFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.QotCommon.OrderBook.getDefaultInstance());
}
/**
*
*买盘
*
*
* repeated .Qot_Common.OrderBook orderBookBidList = 3;
*/
public java.util.List
getOrderBookBidListBuilderList() {
return getOrderBookBidListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.OrderBook, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder, com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>
getOrderBookBidListFieldBuilder() {
if (orderBookBidListBuilder_ == null) {
orderBookBidListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.OrderBook, com.moomoo.openapi.pb.QotCommon.OrderBook.Builder, com.moomoo.openapi.pb.QotCommon.OrderBookOrBuilder>(
orderBookBidList_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
orderBookBidList_ = null;
}
return orderBookBidListBuilder_;
}
private java.lang.Object svrRecvTimeBid_ = "";
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public boolean hasSvrRecvTimeBid() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public java.lang.String getSvrRecvTimeBid() {
java.lang.Object ref = svrRecvTimeBid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
svrRecvTimeBid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public com.google.protobuf.ByteString
getSvrRecvTimeBidBytes() {
java.lang.Object ref = svrRecvTimeBid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
svrRecvTimeBid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public Builder setSvrRecvTimeBid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
svrRecvTimeBid_ = value;
onChanged();
return this;
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public Builder clearSvrRecvTimeBid() {
bitField0_ = (bitField0_ & ~0x00000010);
svrRecvTimeBid_ = getDefaultInstance().getSvrRecvTimeBid();
onChanged();
return this;
}
/**
*
* 富途服务器从交易所收到数据的时间(for bid)部分数据的接收时间为零,例如服务器重启或第一次推送的缓存数据。该字段暂时只支持港股。
*
*
* optional string svrRecvTimeBid = 4;
*/
public Builder setSvrRecvTimeBidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
svrRecvTimeBid_ = value;
onChanged();
return this;
}
private double svrRecvTimeBidTimestamp_ ;
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
public boolean hasSvrRecvTimeBidTimestamp() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
public double getSvrRecvTimeBidTimestamp() {
return svrRecvTimeBidTimestamp_;
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
public Builder setSvrRecvTimeBidTimestamp(double value) {
bitField0_ |= 0x00000020;
svrRecvTimeBidTimestamp_ = value;
onChanged();
return this;
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for bid)
*
*
* optional double svrRecvTimeBidTimestamp = 5;
*/
public Builder clearSvrRecvTimeBidTimestamp() {
bitField0_ = (bitField0_ & ~0x00000020);
svrRecvTimeBidTimestamp_ = 0D;
onChanged();
return this;
}
private java.lang.Object svrRecvTimeAsk_ = "";
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public boolean hasSvrRecvTimeAsk() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public java.lang.String getSvrRecvTimeAsk() {
java.lang.Object ref = svrRecvTimeAsk_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
svrRecvTimeAsk_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public com.google.protobuf.ByteString
getSvrRecvTimeAskBytes() {
java.lang.Object ref = svrRecvTimeAsk_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
svrRecvTimeAsk_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public Builder setSvrRecvTimeAsk(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
svrRecvTimeAsk_ = value;
onChanged();
return this;
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public Builder clearSvrRecvTimeAsk() {
bitField0_ = (bitField0_ & ~0x00000040);
svrRecvTimeAsk_ = getDefaultInstance().getSvrRecvTimeAsk();
onChanged();
return this;
}
/**
*
* 富途服务器从交易所收到数据的时间(for ask)
*
*
* optional string svrRecvTimeAsk = 6;
*/
public Builder setSvrRecvTimeAskBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
svrRecvTimeAsk_ = value;
onChanged();
return this;
}
private double svrRecvTimeAskTimestamp_ ;
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
public boolean hasSvrRecvTimeAskTimestamp() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
public double getSvrRecvTimeAskTimestamp() {
return svrRecvTimeAskTimestamp_;
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
public Builder setSvrRecvTimeAskTimestamp(double value) {
bitField0_ |= 0x00000080;
svrRecvTimeAskTimestamp_ = value;
onChanged();
return this;
}
/**
*
* 富途服务器从交易所收到数据的时间戳(for ask)
*
*
* optional double svrRecvTimeAskTimestamp = 7;
*/
public Builder clearSvrRecvTimeAskTimestamp() {
bitField0_ = (bitField0_ & ~0x00000080);
svrRecvTimeAskTimestamp_ = 0D;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_UpdateOrderBook.S2C)
}
// @@protoc_insertion_point(class_scope:Qot_UpdateOrderBook.S2C)
private static final com.moomoo.openapi.pb.QotUpdateOrderBook.S2C DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotUpdateOrderBook.S2C();
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.S2C getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public S2C parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new S2C(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_UpdateOrderBook.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
boolean hasRetType();
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
int getRetType();
/**
* optional string retMsg = 2;
*/
boolean hasRetMsg();
/**
* optional string retMsg = 2;
*/
java.lang.String getRetMsg();
/**
* optional string retMsg = 2;
*/
com.google.protobuf.ByteString
getRetMsgBytes();
/**
* optional int32 errCode = 3;
*/
boolean hasErrCode();
/**
* optional int32 errCode = 3;
*/
int getErrCode();
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
boolean hasS2C();
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C getS2C();
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder getS2COrBuilder();
}
/**
* Protobuf type {@code Qot_UpdateOrderBook.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_UpdateOrderBook.Response)
ResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Response.newBuilder() to construct.
private Response(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Response() {
retType_ = -400;
retMsg_ = "";
errCode_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Response(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
retType_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
retMsg_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
errCode_ = input.readInt32();
break;
}
case 34: {
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = s2C_.toBuilder();
}
s2C_ = input.readMessage(com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(s2C_);
s2C_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotUpdateOrderBook.Response.class, com.moomoo.openapi.pb.QotUpdateOrderBook.Response.Builder.class);
}
private int bitField0_;
public static final int RETTYPE_FIELD_NUMBER = 1;
private int retType_;
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
public static final int RETMSG_FIELD_NUMBER = 2;
private volatile java.lang.Object retMsg_;
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
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();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRCODE_FIELD_NUMBER = 3;
private int errCode_;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
public static final int S2C_FIELD_NUMBER = 4;
private com.moomoo.openapi.pb.QotUpdateOrderBook.S2C s2C_;
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C getS2C() {
return s2C_ == null ? com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance() : s2C_;
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder getS2COrBuilder() {
return s2C_ == null ? com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance() : s2C_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasRetType()) {
memoizedIsInitialized = 0;
return false;
}
if (hasS2C()) {
if (!getS2C().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, retType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, retMsg_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, errCode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getS2C());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, retType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, retMsg_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, errCode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getS2C());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.moomoo.openapi.pb.QotUpdateOrderBook.Response)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotUpdateOrderBook.Response other = (com.moomoo.openapi.pb.QotUpdateOrderBook.Response) obj;
boolean result = true;
result = result && (hasRetType() == other.hasRetType());
if (hasRetType()) {
result = result && (getRetType()
== other.getRetType());
}
result = result && (hasRetMsg() == other.hasRetMsg());
if (hasRetMsg()) {
result = result && getRetMsg()
.equals(other.getRetMsg());
}
result = result && (hasErrCode() == other.hasErrCode());
if (hasErrCode()) {
result = result && (getErrCode()
== other.getErrCode());
}
result = result && (hasS2C() == other.hasS2C());
if (hasS2C()) {
result = result && getS2C()
.equals(other.getS2C());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasRetType()) {
hash = (37 * hash) + RETTYPE_FIELD_NUMBER;
hash = (53 * hash) + getRetType();
}
if (hasRetMsg()) {
hash = (37 * hash) + RETMSG_FIELD_NUMBER;
hash = (53 * hash) + getRetMsg().hashCode();
}
if (hasErrCode()) {
hash = (37 * hash) + ERRCODE_FIELD_NUMBER;
hash = (53 * hash) + getErrCode();
}
if (hasS2C()) {
hash = (37 * hash) + S2C_FIELD_NUMBER;
hash = (53 * hash) + getS2C().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response 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.moomoo.openapi.pb.QotUpdateOrderBook.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response 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.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.moomoo.openapi.pb.QotUpdateOrderBook.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 Qot_UpdateOrderBook.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_UpdateOrderBook.Response)
com.moomoo.openapi.pb.QotUpdateOrderBook.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotUpdateOrderBook.Response.class, com.moomoo.openapi.pb.QotUpdateOrderBook.Response.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotUpdateOrderBook.Response.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getS2CFieldBuilder();
}
}
public Builder clear() {
super.clear();
retType_ = -400;
bitField0_ = (bitField0_ & ~0x00000001);
retMsg_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
errCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (s2CBuilder_ == null) {
s2C_ = null;
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.internal_static_Qot_UpdateOrderBook_Response_descriptor;
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.Response getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotUpdateOrderBook.Response.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.Response build() {
com.moomoo.openapi.pb.QotUpdateOrderBook.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.Response buildPartial() {
com.moomoo.openapi.pb.QotUpdateOrderBook.Response result = new com.moomoo.openapi.pb.QotUpdateOrderBook.Response(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.retType_ = retType_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.retMsg_ = retMsg_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.errCode_ = errCode_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (s2CBuilder_ == null) {
result.s2C_ = s2C_;
} else {
result.s2C_ = s2CBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.moomoo.openapi.pb.QotUpdateOrderBook.Response) {
return mergeFrom((com.moomoo.openapi.pb.QotUpdateOrderBook.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotUpdateOrderBook.Response other) {
if (other == com.moomoo.openapi.pb.QotUpdateOrderBook.Response.getDefaultInstance()) return this;
if (other.hasRetType()) {
setRetType(other.getRetType());
}
if (other.hasRetMsg()) {
bitField0_ |= 0x00000002;
retMsg_ = other.retMsg_;
onChanged();
}
if (other.hasErrCode()) {
setErrCode(other.getErrCode());
}
if (other.hasS2C()) {
mergeS2C(other.getS2C());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasRetType()) {
return false;
}
if (hasS2C()) {
if (!getS2C().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.QotUpdateOrderBook.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotUpdateOrderBook.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int retType_ = -400;
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder setRetType(int value) {
bitField0_ |= 0x00000001;
retType_ = value;
onChanged();
return this;
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder clearRetType() {
bitField0_ = (bitField0_ & ~0x00000001);
retType_ = -400;
onChanged();
return this;
}
private java.lang.Object retMsg_ = "";
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder clearRetMsg() {
bitField0_ = (bitField0_ & ~0x00000002);
retMsg_ = getDefaultInstance().getRetMsg();
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
private int errCode_ ;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
/**
* optional int32 errCode = 3;
*/
public Builder setErrCode(int value) {
bitField0_ |= 0x00000004;
errCode_ = value;
onChanged();
return this;
}
/**
* optional int32 errCode = 3;
*/
public Builder clearErrCode() {
bitField0_ = (bitField0_ & ~0x00000004);
errCode_ = 0;
onChanged();
return this;
}
private com.moomoo.openapi.pb.QotUpdateOrderBook.S2C s2C_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C, com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder, com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder> s2CBuilder_;
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C getS2C() {
if (s2CBuilder_ == null) {
return s2C_ == null ? com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance() : s2C_;
} else {
return s2CBuilder_.getMessage();
}
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public Builder setS2C(com.moomoo.openapi.pb.QotUpdateOrderBook.S2C value) {
if (s2CBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
s2C_ = value;
onChanged();
} else {
s2CBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public Builder setS2C(
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder builderForValue) {
if (s2CBuilder_ == null) {
s2C_ = builderForValue.build();
onChanged();
} else {
s2CBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public Builder mergeS2C(com.moomoo.openapi.pb.QotUpdateOrderBook.S2C value) {
if (s2CBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
s2C_ != null &&
s2C_ != com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance()) {
s2C_ =
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial();
} else {
s2C_ = value;
}
onChanged();
} else {
s2CBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public Builder clearS2C() {
if (s2CBuilder_ == null) {
s2C_ = null;
onChanged();
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder getS2CBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getS2CFieldBuilder().getBuilder();
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder getS2COrBuilder() {
if (s2CBuilder_ != null) {
return s2CBuilder_.getMessageOrBuilder();
} else {
return s2C_ == null ?
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.getDefaultInstance() : s2C_;
}
}
/**
* optional .Qot_UpdateOrderBook.S2C s2c = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C, com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder, com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder>
getS2CFieldBuilder() {
if (s2CBuilder_ == null) {
s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotUpdateOrderBook.S2C, com.moomoo.openapi.pb.QotUpdateOrderBook.S2C.Builder, com.moomoo.openapi.pb.QotUpdateOrderBook.S2COrBuilder>(
getS2C(),
getParentForChildren(),
isClean());
s2C_ = null;
}
return s2CBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_UpdateOrderBook.Response)
}
// @@protoc_insertion_point(class_scope:Qot_UpdateOrderBook.Response)
private static final com.moomoo.openapi.pb.QotUpdateOrderBook.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotUpdateOrderBook.Response();
}
public static com.moomoo.openapi.pb.QotUpdateOrderBook.Response getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Response parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Response(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.moomoo.openapi.pb.QotUpdateOrderBook.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_UpdateOrderBook_S2C_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_UpdateOrderBook_S2C_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_UpdateOrderBook_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_UpdateOrderBook_Response_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031Qot_UpdateOrderBook.proto\022\023Qot_UpdateO" +
"rderBook\032\014Common.proto\032\020Qot_Common.proto" +
"\"\217\002\n\003S2C\022&\n\010security\030\001 \002(\0132\024.Qot_Common." +
"Security\022\014\n\004name\030\010 \001(\t\022/\n\020orderBookAskLi" +
"st\030\002 \003(\0132\025.Qot_Common.OrderBook\022/\n\020order" +
"BookBidList\030\003 \003(\0132\025.Qot_Common.OrderBook" +
"\022\026\n\016svrRecvTimeBid\030\004 \001(\t\022\037\n\027svrRecvTimeB" +
"idTimestamp\030\005 \001(\001\022\026\n\016svrRecvTimeAsk\030\006 \001(" +
"\t\022\037\n\027svrRecvTimeAskTimestamp\030\007 \001(\001\"i\n\010Re" +
"sponse\022\025\n\007retType\030\001 \002(\005:\004-400\022\016\n\006retMsg\030" +
"\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022%\n\003s2c\030\004 \001(\0132\030.Qo" +
"t_UpdateOrderBook.S2CBK\n\025com.moomoo.open" +
"api.pbZ2github.com/futuopen/ftapi4go/pb/" +
"qotupdateorderbook"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.moomoo.openapi.pb.Common.getDescriptor(),
com.moomoo.openapi.pb.QotCommon.getDescriptor(),
}, assigner);
internal_static_Qot_UpdateOrderBook_S2C_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Qot_UpdateOrderBook_S2C_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_UpdateOrderBook_S2C_descriptor,
new java.lang.String[] { "Security", "Name", "OrderBookAskList", "OrderBookBidList", "SvrRecvTimeBid", "SvrRecvTimeBidTimestamp", "SvrRecvTimeAsk", "SvrRecvTimeAskTimestamp", });
internal_static_Qot_UpdateOrderBook_Response_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Qot_UpdateOrderBook_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_UpdateOrderBook_Response_descriptor,
new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", });
com.moomoo.openapi.pb.Common.getDescriptor();
com.moomoo.openapi.pb.QotCommon.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}