diff --git a/Java/pom.xml b/Java/pom.xml index 450b5ae0..51cca26a 100644 --- a/Java/pom.xml +++ b/Java/pom.xml @@ -68,6 +68,12 @@ 2.9.0 + + com.google.protobuf + protobuf-java + 4.29.3 + + commons-lang commons-lang diff --git a/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApply.java b/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApply.java index 4df10531..7c87dc08 100644 --- a/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApply.java +++ b/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApply.java @@ -14,17 +14,17 @@ @Slf4j public class WithdrawApply { public static Withdraw withdraw(Map params) { - return UserDataClient.post("/api/v3/capital/withdraw/apply", params, new TypeReference() { + return UserDataClient.post("/api/v3/capital/withdraw", params, new TypeReference() { }); } public static void main(String[] args) { //withdraw apply HashMap withdrawParams = Maps.newHashMap(ImmutableMap.builder() - .put("coin", "USDT-TRX") - .put("address", "TPb5qT9ZikopzCUD4zyieSEfwbjdjU8PVb") - .put("amount", "3") - .put("network", "TRC20") + .put("coin", "USDT") + .put("address", "TLHwAkP8Ao5vHc8GR9KvwhrJHwJN142ECZ") + .put("amount", "0.1") + .put("netWork", "TRX") .put("recvWindow", "60000") .build()); diff --git a/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApplyOld.java b/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApplyOld.java new file mode 100644 index 00000000..c77abd5e --- /dev/null +++ b/Java/src/main/java/com/mexc/example/spot/api/v3/wallet/WithdrawApplyOld.java @@ -0,0 +1,34 @@ +package com.mexc.example.spot.api.v3.wallet; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.Maps; +import com.mexc.example.common.JsonUtil; +import com.mexc.example.common.UserDataClient; +import com.mexc.example.spot.api.v3.pojo.Withdraw; +import lombok.extern.slf4j.Slf4j; + +import java.util.HashMap; +import java.util.Map; + +@Slf4j +public class WithdrawApplyOld { + public static Withdraw withdraw(Map params) { + return UserDataClient.post("/api/v3/capital/withdraw/apply", params, new TypeReference() { + }); + } + + public static void main(String[] args) { + //withdraw apply + HashMap withdrawParams = Maps.newHashMap(ImmutableMap.builder() + .put("coin", "USDT-TRX") + .put("address", "TPb5qT9ZikopzCUD4zyieSEfwbjdjU8PVb") + .put("amount", "3") + .put("network", "TRC20") + .put("recvWindow", "60000") + .build()); + + Object withdraw = withdraw(withdrawParams); + log.info("===>>withdraw resp:{}", JsonUtil.toJson(withdraw)); + } +} diff --git a/Java/src/main/java/com/mexc/example/spot/websocket/SubscriptionCommand.java b/Java/src/main/java/com/mexc/example/spot/websocket/SubscriptionCommand.java new file mode 100644 index 00000000..174f132e --- /dev/null +++ b/Java/src/main/java/com/mexc/example/spot/websocket/SubscriptionCommand.java @@ -0,0 +1,26 @@ +package com.mexc.example.spot.websocket; + + +import com.mexc.example.common.JsonUtil; +import lombok.Getter; +import lombok.Setter; + +import java.util.Collections; +import java.util.List; + +@Setter +@Getter +public class SubscriptionCommand { + + private String method = "SUBSCRIPTION"; + + private List params; + + public SubscriptionCommand(String channel) { + this.params = Collections.singletonList(channel); + } + + public String toJsonString() { + return JsonUtil.toJson(this); + } +} \ No newline at end of file diff --git a/Java/src/main/java/com/mexc/example/spot/websocket/WebsocketV3Protobuf.java b/Java/src/main/java/com/mexc/example/spot/websocket/WebsocketV3Protobuf.java new file mode 100644 index 00000000..cbc29f7b --- /dev/null +++ b/Java/src/main/java/com/mexc/example/spot/websocket/WebsocketV3Protobuf.java @@ -0,0 +1,151 @@ +package com.mexc.example.spot.websocket; + +import com.google.protobuf.InvalidProtocolBufferException; +import com.mxc.push.common.protobuf.PushDataV3ApiWrapper; +import lombok.extern.slf4j.Slf4j; +import okhttp3.*; +import okio.ByteString; +import org.jetbrains.annotations.NotNull; + +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.TimeUnit; + +@Slf4j +public final class WebsocketV3Protobuf extends WebSocketListener { + + + private WebSocket privateClient() { + OkHttpClient client = new OkHttpClient.Builder() + .readTimeout(0, TimeUnit.MILLISECONDS) + .build(); + Map params = new HashMap<>(); + params.put("recWindow", "60000"); + //String listenKey = CreateListenKey.postUserDataStream(params).get("listenKey"); + String listenKey = "1955374b3a1e64a47fe177678229d1238539a746d4a62ea9475cc4a394230425"; + + Request request = new Request.Builder() + .url("wss://wbs-api.mexc.com/ws?listenKey=" + listenKey) + .build(); + WebSocket webSocket = client.newWebSocket(request, this); + + //Trigger shutdown of the dispatcher's executor so this process can exit cleanly. + client.dispatcher().executorService().shutdown(); + return webSocket; + } + + private WebSocket publicClient() { + OkHttpClient client = new OkHttpClient.Builder() + .readTimeout(0, TimeUnit.MILLISECONDS) + .build(); + + Request request = new Request.Builder() + .url("wss://wbs-api.mexc.com/ws") + .build(); + WebSocket webSocket = client.newWebSocket(request, this); + + //Trigger shutdown of the dispatcher's executor so this process can exit cleanly. + client.dispatcher().executorService().shutdown(); + return webSocket; + } + + @Override + public void onOpen(@NotNull WebSocket webSocket, @NotNull Response response) { + log.info("MEXC-WS CONNECTED ...."); + } + + @Override + public void onMessage(@NotNull WebSocket webSocket, @NotNull String text) { + System.out.println("TEXT MESSAGE: " + text); + } + + @Override + public void onMessage(@NotNull WebSocket webSocket, ByteString bytes) { + try { + PushDataV3ApiWrapper pushDataV3ApiWrapper = PushDataV3ApiWrapper.parseFrom(bytes.toByteArray()); + String channel = pushDataV3ApiWrapper.getChannel(); + switch (channel) { + case "spot@public.aggre.deals.v3.api.pb@100ms@BTCUSDT": + log.info("Trade Streams:{}", pushDataV3ApiWrapper.getPublicAggreDeals()); + break; + + case "spot@public.kline.v3.api.pb@BTCUSDT@Min15": + log.info("K-line Streams:{}", pushDataV3ApiWrapper.getPublicSpotKline()); + break; + + case "spot@public.aggre.depth.v3.api.pb@100ms@BTCUSDT": + log.info("Diff.Depth Stream:{}", pushDataV3ApiWrapper.getPublicAggreDepths()); + break; + + case "spot@public.increase.depth.batch.v3.api.pb@BTCUSDT": + log.info("Diff.Depth Stream(Batch):{}", pushDataV3ApiWrapper.getPublicIncreaseDepthsBatch()); + break; + + case "spot@public.limit.depth.v3.api.pb@BTCUSDT@5": + log.info("Partial Book Depth Streams:{}", pushDataV3ApiWrapper.getPublicLimitDepths()); + break; + + case "spot@public.aggre.bookTicker.v3.api.pb@100ms@BTCUSDT": + log.info("Individual Symbol Book Ticker Streams:{}", pushDataV3ApiWrapper.getPublicAggreBookTicker()); + break; + case "spot@public.bookTicker.batch.v3.api.pb@BTCUSDT": + log.info("Individual Symbol Book Ticker Streams(Batch):{}", pushDataV3ApiWrapper.getPublicBookTickerBatch()); + break; + + case "spot@private.account.v3.api.pb": + log.info("Spot Account Update:{}", pushDataV3ApiWrapper.getPrivateAccount()); + break; + + case "spot@private.deals.v3.api.pb": + log.info("Spot Account Deals:{}", pushDataV3ApiWrapper.getPrivateDeals()); + break; + + case "spot@private.orders.v3.api.pb": + log.info("Spot Account Orders:{}", pushDataV3ApiWrapper.getPrivateOrders()); + break; + + default: + break; + } + } catch (InvalidProtocolBufferException e) { + throw new RuntimeException(e); + } + } + + @Override + public void onClosing(WebSocket webSocket, int code, String reason) { + webSocket.close(1000, null); + System.out.println("CLOSE: " + code + " " + reason); + } + + @Override + public void onFailure(@NotNull WebSocket webSocket, Throwable t, Response response) { + t.printStackTrace(); + } + + public static void main(String... args) { + WebsocketV3Protobuf websocketV3 = new WebsocketV3Protobuf(); + //sub public channel + WebSocket publicClient = websocketV3.publicClient(); + publicClient.send(new SubscriptionCommand("spot@public.aggre.deals.v3.api.pb@100ms@BTCUSDT").toJsonString()); + publicClient.send(new SubscriptionCommand("spot@public.kline.v3.api.pb@BTCUSDT@Min15").toJsonString()); + publicClient.send(new SubscriptionCommand("spot@public.aggre.depth.v3.api.pb@100ms@BTCUSDT").toJsonString()); + publicClient.send(new SubscriptionCommand("spot@public.increase.depth.batch.v3.api.pb@BTCUSDT").toJsonString()); + publicClient.send(new SubscriptionCommand("spot@public.limit.depth.v3.api.pb@BTCUSDT@5").toJsonString()); + publicClient.send(new SubscriptionCommand("spot@public.aggre.bookTicker.v3.api.pb@100ms@BTCUSDT").toJsonString()); + publicClient.send(new SubscriptionCommand("spot@public.bookTicker.batch.v3.api.pb@BTCUSDT").toJsonString()); + + //sub private channel + WebSocket privateClient = websocketV3.privateClient(); + privateClient.send(new SubscriptionCommand("spot@private.account.v3.api.pb").toJsonString()); + privateClient.send(new SubscriptionCommand("spot@private.deals.v3.api.pb").toJsonString()); + privateClient.send(new SubscriptionCommand("spot@private.orders.v3.api.pb").toJsonString()); + + ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(1); + scheduledExecutorService.scheduleAtFixedRate( + () -> privateClient.send("{\"method\":\"PING\"}"), 10, 20, TimeUnit.SECONDS + ); + } +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3Api.java new file mode 100644 index 00000000..7ad21969 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3Api.java @@ -0,0 +1,1384 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateAccountV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PrivateAccountV3Api} + */ +public final class PrivateAccountV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PrivateAccountV3Api) + PrivateAccountV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PrivateAccountV3Api.class.getName()); + } + // Use PrivateAccountV3Api.newBuilder() to construct. + private PrivateAccountV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrivateAccountV3Api() { + vcoinName_ = ""; + coinId_ = ""; + balanceAmount_ = ""; + balanceAmountChange_ = ""; + frozenAmount_ = ""; + frozenAmountChange_ = ""; + type_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrivateAccountV3ApiProto.internal_static_PrivateAccountV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PrivateAccountV3ApiProto.internal_static_PrivateAccountV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrivateAccountV3Api.class, Builder.class); + } + + public static final int VCOINNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object vcoinName_ = ""; + /** + * string vcoinName = 1; + * @return The vcoinName. + */ + @Override + public String getVcoinName() { + Object ref = vcoinName_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + vcoinName_ = s; + return s; + } + } + /** + * string vcoinName = 1; + * @return The bytes for vcoinName. + */ + @Override + public com.google.protobuf.ByteString + getVcoinNameBytes() { + Object ref = vcoinName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + vcoinName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COINID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object coinId_ = ""; + /** + * string coinId = 2; + * @return The coinId. + */ + @Override + public String getCoinId() { + Object ref = coinId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + coinId_ = s; + return s; + } + } + /** + * string coinId = 2; + * @return The bytes for coinId. + */ + @Override + public com.google.protobuf.ByteString + getCoinIdBytes() { + Object ref = coinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + coinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BALANCEAMOUNT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object balanceAmount_ = ""; + /** + * string balanceAmount = 3; + * @return The balanceAmount. + */ + @Override + public String getBalanceAmount() { + Object ref = balanceAmount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + balanceAmount_ = s; + return s; + } + } + /** + * string balanceAmount = 3; + * @return The bytes for balanceAmount. + */ + @Override + public com.google.protobuf.ByteString + getBalanceAmountBytes() { + Object ref = balanceAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + balanceAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BALANCEAMOUNTCHANGE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object balanceAmountChange_ = ""; + /** + * string balanceAmountChange = 4; + * @return The balanceAmountChange. + */ + @Override + public String getBalanceAmountChange() { + Object ref = balanceAmountChange_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + balanceAmountChange_ = s; + return s; + } + } + /** + * string balanceAmountChange = 4; + * @return The bytes for balanceAmountChange. + */ + @Override + public com.google.protobuf.ByteString + getBalanceAmountChangeBytes() { + Object ref = balanceAmountChange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + balanceAmountChange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FROZENAMOUNT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile Object frozenAmount_ = ""; + /** + * string frozenAmount = 5; + * @return The frozenAmount. + */ + @Override + public String getFrozenAmount() { + Object ref = frozenAmount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + frozenAmount_ = s; + return s; + } + } + /** + * string frozenAmount = 5; + * @return The bytes for frozenAmount. + */ + @Override + public com.google.protobuf.ByteString + getFrozenAmountBytes() { + Object ref = frozenAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + frozenAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FROZENAMOUNTCHANGE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile Object frozenAmountChange_ = ""; + /** + * string frozenAmountChange = 6; + * @return The frozenAmountChange. + */ + @Override + public String getFrozenAmountChange() { + Object ref = frozenAmountChange_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + frozenAmountChange_ = s; + return s; + } + } + /** + * string frozenAmountChange = 6; + * @return The bytes for frozenAmountChange. + */ + @Override + public com.google.protobuf.ByteString + getFrozenAmountChangeBytes() { + Object ref = frozenAmountChange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + frozenAmountChange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile Object type_ = ""; + /** + * string type = 7; + * @return The type. + */ + @Override + public String getType() { + Object ref = type_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + type_ = s; + return s; + } + } + /** + * string type = 7; + * @return The bytes for type. + */ + @Override + public com.google.protobuf.ByteString + getTypeBytes() { + Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_FIELD_NUMBER = 8; + private long time_ = 0L; + /** + * int64 time = 8; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vcoinName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, vcoinName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(coinId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, coinId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(balanceAmount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, balanceAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(balanceAmountChange_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, balanceAmountChange_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(frozenAmount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, frozenAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(frozenAmountChange_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, frozenAmountChange_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, type_); + } + if (time_ != 0L) { + output.writeInt64(8, time_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(vcoinName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, vcoinName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(coinId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, coinId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(balanceAmount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, balanceAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(balanceAmountChange_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, balanceAmountChange_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(frozenAmount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, frozenAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(frozenAmountChange_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, frozenAmountChange_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, type_); + } + if (time_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, time_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PrivateAccountV3Api)) { + return super.equals(obj); + } + PrivateAccountV3Api other = (PrivateAccountV3Api) obj; + + if (!getVcoinName() + .equals(other.getVcoinName())) return false; + if (!getCoinId() + .equals(other.getCoinId())) return false; + if (!getBalanceAmount() + .equals(other.getBalanceAmount())) return false; + if (!getBalanceAmountChange() + .equals(other.getBalanceAmountChange())) return false; + if (!getFrozenAmount() + .equals(other.getFrozenAmount())) return false; + if (!getFrozenAmountChange() + .equals(other.getFrozenAmountChange())) return false; + if (!getType() + .equals(other.getType())) return false; + if (getTime() + != other.getTime()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VCOINNAME_FIELD_NUMBER; + hash = (53 * hash) + getVcoinName().hashCode(); + hash = (37 * hash) + COINID_FIELD_NUMBER; + hash = (53 * hash) + getCoinId().hashCode(); + hash = (37 * hash) + BALANCEAMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getBalanceAmount().hashCode(); + hash = (37 * hash) + BALANCEAMOUNTCHANGE_FIELD_NUMBER; + hash = (53 * hash) + getBalanceAmountChange().hashCode(); + hash = (37 * hash) + FROZENAMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getFrozenAmount().hashCode(); + hash = (37 * hash) + FROZENAMOUNTCHANGE_FIELD_NUMBER; + hash = (53 * hash) + getFrozenAmountChange().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTime()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PrivateAccountV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateAccountV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateAccountV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateAccountV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateAccountV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateAccountV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateAccountV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PrivateAccountV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PrivateAccountV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PrivateAccountV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PrivateAccountV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PrivateAccountV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PrivateAccountV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PrivateAccountV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PrivateAccountV3Api) + PrivateAccountV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrivateAccountV3ApiProto.internal_static_PrivateAccountV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PrivateAccountV3ApiProto.internal_static_PrivateAccountV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrivateAccountV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PrivateAccountV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vcoinName_ = ""; + coinId_ = ""; + balanceAmount_ = ""; + balanceAmountChange_ = ""; + frozenAmount_ = ""; + frozenAmountChange_ = ""; + type_ = ""; + time_ = 0L; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrivateAccountV3ApiProto.internal_static_PrivateAccountV3Api_descriptor; + } + + @Override + public PrivateAccountV3Api getDefaultInstanceForType() { + return PrivateAccountV3Api.getDefaultInstance(); + } + + @Override + public PrivateAccountV3Api build() { + PrivateAccountV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PrivateAccountV3Api buildPartial() { + PrivateAccountV3Api result = new PrivateAccountV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PrivateAccountV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vcoinName_ = vcoinName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coinId_ = coinId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.balanceAmount_ = balanceAmount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.balanceAmountChange_ = balanceAmountChange_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.frozenAmount_ = frozenAmount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.frozenAmountChange_ = frozenAmountChange_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.time_ = time_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrivateAccountV3Api) { + return mergeFrom((PrivateAccountV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrivateAccountV3Api other) { + if (other == PrivateAccountV3Api.getDefaultInstance()) return this; + if (!other.getVcoinName().isEmpty()) { + vcoinName_ = other.vcoinName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCoinId().isEmpty()) { + coinId_ = other.coinId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBalanceAmount().isEmpty()) { + balanceAmount_ = other.balanceAmount_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getBalanceAmountChange().isEmpty()) { + balanceAmountChange_ = other.balanceAmountChange_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFrozenAmount().isEmpty()) { + frozenAmount_ = other.frozenAmount_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getFrozenAmountChange().isEmpty()) { + frozenAmountChange_ = other.frozenAmountChange_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getTime() != 0L) { + setTime(other.getTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + vcoinName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + coinId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + balanceAmount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + balanceAmountChange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + frozenAmount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + frozenAmountChange_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + time_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + 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 Object vcoinName_ = ""; + /** + * string vcoinName = 1; + * @return The vcoinName. + */ + public String getVcoinName() { + Object ref = vcoinName_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + vcoinName_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string vcoinName = 1; + * @return The bytes for vcoinName. + */ + public com.google.protobuf.ByteString + getVcoinNameBytes() { + Object ref = vcoinName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + vcoinName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string vcoinName = 1; + * @param value The vcoinName to set. + * @return This builder for chaining. + */ + public Builder setVcoinName( + String value) { + if (value == null) { throw new NullPointerException(); } + vcoinName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string vcoinName = 1; + * @return This builder for chaining. + */ + public Builder clearVcoinName() { + vcoinName_ = getDefaultInstance().getVcoinName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string vcoinName = 1; + * @param value The bytes for vcoinName to set. + * @return This builder for chaining. + */ + public Builder setVcoinNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + vcoinName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object coinId_ = ""; + /** + * string coinId = 2; + * @return The coinId. + */ + public String getCoinId() { + Object ref = coinId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + coinId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string coinId = 2; + * @return The bytes for coinId. + */ + public com.google.protobuf.ByteString + getCoinIdBytes() { + Object ref = coinId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + coinId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string coinId = 2; + * @param value The coinId to set. + * @return This builder for chaining. + */ + public Builder setCoinId( + String value) { + if (value == null) { throw new NullPointerException(); } + coinId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string coinId = 2; + * @return This builder for chaining. + */ + public Builder clearCoinId() { + coinId_ = getDefaultInstance().getCoinId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string coinId = 2; + * @param value The bytes for coinId to set. + * @return This builder for chaining. + */ + public Builder setCoinIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + coinId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private Object balanceAmount_ = ""; + /** + * string balanceAmount = 3; + * @return The balanceAmount. + */ + public String getBalanceAmount() { + Object ref = balanceAmount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + balanceAmount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string balanceAmount = 3; + * @return The bytes for balanceAmount. + */ + public com.google.protobuf.ByteString + getBalanceAmountBytes() { + Object ref = balanceAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + balanceAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string balanceAmount = 3; + * @param value The balanceAmount to set. + * @return This builder for chaining. + */ + public Builder setBalanceAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + balanceAmount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string balanceAmount = 3; + * @return This builder for chaining. + */ + public Builder clearBalanceAmount() { + balanceAmount_ = getDefaultInstance().getBalanceAmount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string balanceAmount = 3; + * @param value The bytes for balanceAmount to set. + * @return This builder for chaining. + */ + public Builder setBalanceAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + balanceAmount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object balanceAmountChange_ = ""; + /** + * string balanceAmountChange = 4; + * @return The balanceAmountChange. + */ + public String getBalanceAmountChange() { + Object ref = balanceAmountChange_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + balanceAmountChange_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string balanceAmountChange = 4; + * @return The bytes for balanceAmountChange. + */ + public com.google.protobuf.ByteString + getBalanceAmountChangeBytes() { + Object ref = balanceAmountChange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + balanceAmountChange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string balanceAmountChange = 4; + * @param value The balanceAmountChange to set. + * @return This builder for chaining. + */ + public Builder setBalanceAmountChange( + String value) { + if (value == null) { throw new NullPointerException(); } + balanceAmountChange_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string balanceAmountChange = 4; + * @return This builder for chaining. + */ + public Builder clearBalanceAmountChange() { + balanceAmountChange_ = getDefaultInstance().getBalanceAmountChange(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string balanceAmountChange = 4; + * @param value The bytes for balanceAmountChange to set. + * @return This builder for chaining. + */ + public Builder setBalanceAmountChangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + balanceAmountChange_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private Object frozenAmount_ = ""; + /** + * string frozenAmount = 5; + * @return The frozenAmount. + */ + public String getFrozenAmount() { + Object ref = frozenAmount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + frozenAmount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string frozenAmount = 5; + * @return The bytes for frozenAmount. + */ + public com.google.protobuf.ByteString + getFrozenAmountBytes() { + Object ref = frozenAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + frozenAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string frozenAmount = 5; + * @param value The frozenAmount to set. + * @return This builder for chaining. + */ + public Builder setFrozenAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + frozenAmount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string frozenAmount = 5; + * @return This builder for chaining. + */ + public Builder clearFrozenAmount() { + frozenAmount_ = getDefaultInstance().getFrozenAmount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string frozenAmount = 5; + * @param value The bytes for frozenAmount to set. + * @return This builder for chaining. + */ + public Builder setFrozenAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + frozenAmount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private Object frozenAmountChange_ = ""; + /** + * string frozenAmountChange = 6; + * @return The frozenAmountChange. + */ + public String getFrozenAmountChange() { + Object ref = frozenAmountChange_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + frozenAmountChange_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string frozenAmountChange = 6; + * @return The bytes for frozenAmountChange. + */ + public com.google.protobuf.ByteString + getFrozenAmountChangeBytes() { + Object ref = frozenAmountChange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + frozenAmountChange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string frozenAmountChange = 6; + * @param value The frozenAmountChange to set. + * @return This builder for chaining. + */ + public Builder setFrozenAmountChange( + String value) { + if (value == null) { throw new NullPointerException(); } + frozenAmountChange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string frozenAmountChange = 6; + * @return This builder for chaining. + */ + public Builder clearFrozenAmountChange() { + frozenAmountChange_ = getDefaultInstance().getFrozenAmountChange(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string frozenAmountChange = 6; + * @param value The bytes for frozenAmountChange to set. + * @return This builder for chaining. + */ + public Builder setFrozenAmountChangeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + frozenAmountChange_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private Object type_ = ""; + /** + * string type = 7; + * @return The type. + */ + public String getType() { + Object ref = type_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string type = 7; + * @return The bytes for type. + */ + public com.google.protobuf.ByteString + getTypeBytes() { + Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string type = 7; + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + String value) { + if (value == null) { throw new NullPointerException(); } + type_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string type = 7; + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string type = 7; + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private long time_ ; + /** + * int64 time = 8; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + /** + * int64 time = 8; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(long value) { + + time_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * int64 time = 8; + * @return This builder for chaining. + */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000080); + time_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PrivateAccountV3Api) + } + + // @@protoc_insertion_point(class_scope:PrivateAccountV3Api) + private static final PrivateAccountV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PrivateAccountV3Api(); + } + + public static PrivateAccountV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PrivateAccountV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PrivateAccountV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3ApiOrBuilder.java new file mode 100644 index 00000000..43f34e17 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3ApiOrBuilder.java @@ -0,0 +1,101 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateAccountV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PrivateAccountV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PrivateAccountV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * string vcoinName = 1; + * @return The vcoinName. + */ + String getVcoinName(); + /** + * string vcoinName = 1; + * @return The bytes for vcoinName. + */ + com.google.protobuf.ByteString + getVcoinNameBytes(); + + /** + * string coinId = 2; + * @return The coinId. + */ + String getCoinId(); + /** + * string coinId = 2; + * @return The bytes for coinId. + */ + com.google.protobuf.ByteString + getCoinIdBytes(); + + /** + * string balanceAmount = 3; + * @return The balanceAmount. + */ + String getBalanceAmount(); + /** + * string balanceAmount = 3; + * @return The bytes for balanceAmount. + */ + com.google.protobuf.ByteString + getBalanceAmountBytes(); + + /** + * string balanceAmountChange = 4; + * @return The balanceAmountChange. + */ + String getBalanceAmountChange(); + /** + * string balanceAmountChange = 4; + * @return The bytes for balanceAmountChange. + */ + com.google.protobuf.ByteString + getBalanceAmountChangeBytes(); + + /** + * string frozenAmount = 5; + * @return The frozenAmount. + */ + String getFrozenAmount(); + /** + * string frozenAmount = 5; + * @return The bytes for frozenAmount. + */ + com.google.protobuf.ByteString + getFrozenAmountBytes(); + + /** + * string frozenAmountChange = 6; + * @return The frozenAmountChange. + */ + String getFrozenAmountChange(); + /** + * string frozenAmountChange = 6; + * @return The bytes for frozenAmountChange. + */ + com.google.protobuf.ByteString + getFrozenAmountChangeBytes(); + + /** + * string type = 7; + * @return The type. + */ + String getType(); + /** + * string type = 7; + * @return The bytes for type. + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + * int64 time = 8; + * @return The time. + */ + long getTime(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3ApiProto.java new file mode 100644 index 00000000..38499dd0 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateAccountV3ApiProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateAccountV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PrivateAccountV3ApiProto { + private PrivateAccountV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PrivateAccountV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PrivateAccountV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PrivateAccountV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\031PrivateAccountV3Api.proto\"\272\001\n\023PrivateA" + + "ccountV3Api\022\021\n\tvcoinName\030\001 \001(\t\022\016\n\006coinId" + + "\030\002 \001(\t\022\025\n\rbalanceAmount\030\003 \001(\t\022\033\n\023balance" + + "AmountChange\030\004 \001(\t\022\024\n\014frozenAmount\030\005 \001(\t" + + "\022\032\n\022frozenAmountChange\030\006 \001(\t\022\014\n\004type\030\007 \001" + + "(\t\022\014\n\004time\030\010 \001(\003B<\n\034com.mxc.push.common." + + "protobufB\030PrivateAccountV3ApiProtoH\001P\001b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PrivateAccountV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PrivateAccountV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PrivateAccountV3Api_descriptor, + new String[] { "VcoinName", "CoinId", "BalanceAmount", "BalanceAmountChange", "FrozenAmount", "FrozenAmountChange", "Type", "Time", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3Api.java new file mode 100644 index 00000000..3abf842a --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3Api.java @@ -0,0 +1,1720 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PrivateDealsV3Api} + */ +public final class PrivateDealsV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PrivateDealsV3Api) + PrivateDealsV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PrivateDealsV3Api.class.getName()); + } + // Use PrivateDealsV3Api.newBuilder() to construct. + private PrivateDealsV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrivateDealsV3Api() { + price_ = ""; + quantity_ = ""; + amount_ = ""; + tradeId_ = ""; + clientOrderId_ = ""; + orderId_ = ""; + feeAmount_ = ""; + feeCurrency_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrivateDealsV3ApiProto.internal_static_PrivateDealsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PrivateDealsV3ApiProto.internal_static_PrivateDealsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrivateDealsV3Api.class, Builder.class); + } + + public static final int PRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object amount_ = ""; + /** + * string amount = 3; + * @return The amount. + */ + @Override + public String getAmount() { + Object ref = amount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + * string amount = 3; + * @return The bytes for amount. + */ + @Override + public com.google.protobuf.ByteString + getAmountBytes() { + Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRADETYPE_FIELD_NUMBER = 4; + private int tradeType_ = 0; + /** + * int32 tradeType = 4; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + + public static final int ISMAKER_FIELD_NUMBER = 5; + private boolean isMaker_ = false; + /** + * bool isMaker = 5; + * @return The isMaker. + */ + @Override + public boolean getIsMaker() { + return isMaker_; + } + + public static final int ISSELFTRADE_FIELD_NUMBER = 6; + private boolean isSelfTrade_ = false; + /** + * bool isSelfTrade = 6; + * @return The isSelfTrade. + */ + @Override + public boolean getIsSelfTrade() { + return isSelfTrade_; + } + + public static final int TRADEID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile Object tradeId_ = ""; + /** + * string tradeId = 7; + * @return The tradeId. + */ + @Override + public String getTradeId() { + Object ref = tradeId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + tradeId_ = s; + return s; + } + } + /** + * string tradeId = 7; + * @return The bytes for tradeId. + */ + @Override + public com.google.protobuf.ByteString + getTradeIdBytes() { + Object ref = tradeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + tradeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENTORDERID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile Object clientOrderId_ = ""; + /** + * string clientOrderId = 8; + * @return The clientOrderId. + */ + @Override + public String getClientOrderId() { + Object ref = clientOrderId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + clientOrderId_ = s; + return s; + } + } + /** + * string clientOrderId = 8; + * @return The bytes for clientOrderId. + */ + @Override + public com.google.protobuf.ByteString + getClientOrderIdBytes() { + Object ref = clientOrderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + clientOrderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDERID_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile Object orderId_ = ""; + /** + * string orderId = 9; + * @return The orderId. + */ + @Override + public String getOrderId() { + Object ref = orderId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + orderId_ = s; + return s; + } + } + /** + * string orderId = 9; + * @return The bytes for orderId. + */ + @Override + public com.google.protobuf.ByteString + getOrderIdBytes() { + Object ref = orderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + orderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEEAMOUNT_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile Object feeAmount_ = ""; + /** + * string feeAmount = 10; + * @return The feeAmount. + */ + @Override + public String getFeeAmount() { + Object ref = feeAmount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + feeAmount_ = s; + return s; + } + } + /** + * string feeAmount = 10; + * @return The bytes for feeAmount. + */ + @Override + public com.google.protobuf.ByteString + getFeeAmountBytes() { + Object ref = feeAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + feeAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEECURRENCY_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile Object feeCurrency_ = ""; + /** + * string feeCurrency = 11; + * @return The feeCurrency. + */ + @Override + public String getFeeCurrency() { + Object ref = feeCurrency_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + feeCurrency_ = s; + return s; + } + } + /** + * string feeCurrency = 11; + * @return The bytes for feeCurrency. + */ + @Override + public com.google.protobuf.ByteString + getFeeCurrencyBytes() { + Object ref = feeCurrency_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + feeCurrency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_FIELD_NUMBER = 12; + private long time_ = 0L; + /** + * int64 time = 12; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, quantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(amount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, amount_); + } + if (tradeType_ != 0) { + output.writeInt32(4, tradeType_); + } + if (isMaker_ != false) { + output.writeBool(5, isMaker_); + } + if (isSelfTrade_ != false) { + output.writeBool(6, isSelfTrade_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tradeId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, tradeId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientOrderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, clientOrderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, orderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(feeAmount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, feeAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(feeCurrency_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, feeCurrency_); + } + if (time_ != 0L) { + output.writeInt64(12, time_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, quantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(amount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, amount_); + } + if (tradeType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, tradeType_); + } + if (isMaker_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isMaker_); + } + if (isSelfTrade_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, isSelfTrade_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tradeId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, tradeId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientOrderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, clientOrderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, orderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(feeAmount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, feeAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(feeCurrency_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, feeCurrency_); + } + if (time_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, time_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PrivateDealsV3Api)) { + return super.equals(obj); + } + PrivateDealsV3Api other = (PrivateDealsV3Api) obj; + + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (getTradeType() + != other.getTradeType()) return false; + if (getIsMaker() + != other.getIsMaker()) return false; + if (getIsSelfTrade() + != other.getIsSelfTrade()) return false; + if (!getTradeId() + .equals(other.getTradeId())) return false; + if (!getClientOrderId() + .equals(other.getClientOrderId())) return false; + if (!getOrderId() + .equals(other.getOrderId())) return false; + if (!getFeeAmount() + .equals(other.getFeeAmount())) return false; + if (!getFeeCurrency() + .equals(other.getFeeCurrency())) return false; + if (getTime() + != other.getTime()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + TRADETYPE_FIELD_NUMBER; + hash = (53 * hash) + getTradeType(); + hash = (37 * hash) + ISMAKER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMaker()); + hash = (37 * hash) + ISSELFTRADE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSelfTrade()); + hash = (37 * hash) + TRADEID_FIELD_NUMBER; + hash = (53 * hash) + getTradeId().hashCode(); + hash = (37 * hash) + CLIENTORDERID_FIELD_NUMBER; + hash = (53 * hash) + getClientOrderId().hashCode(); + hash = (37 * hash) + ORDERID_FIELD_NUMBER; + hash = (53 * hash) + getOrderId().hashCode(); + hash = (37 * hash) + FEEAMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getFeeAmount().hashCode(); + hash = (37 * hash) + FEECURRENCY_FIELD_NUMBER; + hash = (53 * hash) + getFeeCurrency().hashCode(); + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTime()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PrivateDealsV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateDealsV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateDealsV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateDealsV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateDealsV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateDealsV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateDealsV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PrivateDealsV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PrivateDealsV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PrivateDealsV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PrivateDealsV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PrivateDealsV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PrivateDealsV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PrivateDealsV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PrivateDealsV3Api) + PrivateDealsV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrivateDealsV3ApiProto.internal_static_PrivateDealsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PrivateDealsV3ApiProto.internal_static_PrivateDealsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrivateDealsV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PrivateDealsV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + price_ = ""; + quantity_ = ""; + amount_ = ""; + tradeType_ = 0; + isMaker_ = false; + isSelfTrade_ = false; + tradeId_ = ""; + clientOrderId_ = ""; + orderId_ = ""; + feeAmount_ = ""; + feeCurrency_ = ""; + time_ = 0L; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrivateDealsV3ApiProto.internal_static_PrivateDealsV3Api_descriptor; + } + + @Override + public PrivateDealsV3Api getDefaultInstanceForType() { + return PrivateDealsV3Api.getDefaultInstance(); + } + + @Override + public PrivateDealsV3Api build() { + PrivateDealsV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PrivateDealsV3Api buildPartial() { + PrivateDealsV3Api result = new PrivateDealsV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PrivateDealsV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.amount_ = amount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tradeType_ = tradeType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isMaker_ = isMaker_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isSelfTrade_ = isSelfTrade_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tradeId_ = tradeId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.clientOrderId_ = clientOrderId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.orderId_ = orderId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.feeAmount_ = feeAmount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.feeCurrency_ = feeCurrency_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.time_ = time_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrivateDealsV3Api) { + return mergeFrom((PrivateDealsV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrivateDealsV3Api other) { + if (other == PrivateDealsV3Api.getDefaultInstance()) return this; + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getTradeType() != 0) { + setTradeType(other.getTradeType()); + } + if (other.getIsMaker() != false) { + setIsMaker(other.getIsMaker()); + } + if (other.getIsSelfTrade() != false) { + setIsSelfTrade(other.getIsSelfTrade()); + } + if (!other.getTradeId().isEmpty()) { + tradeId_ = other.tradeId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getClientOrderId().isEmpty()) { + clientOrderId_ = other.clientOrderId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getOrderId().isEmpty()) { + orderId_ = other.orderId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getFeeAmount().isEmpty()) { + feeAmount_ = other.feeAmount_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getFeeCurrency().isEmpty()) { + feeCurrency_ = other.feeCurrency_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.getTime() != 0L) { + setTime(other.getTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + amount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + tradeType_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + isMaker_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + isSelfTrade_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + tradeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + clientOrderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + orderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + feeAmount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + feeCurrency_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + time_ = input.readInt64(); + bitField0_ |= 0x00000800; + break; + } // case 96 + 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 Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 1; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string price = 1; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string price = 1; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 2; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string quantity = 2; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string quantity = 2; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private Object amount_ = ""; + /** + * string amount = 3; + * @return The amount. + */ + public String getAmount() { + Object ref = amount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string amount = 3; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string amount = 3; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + amount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string amount = 3; + * @return This builder for chaining. + */ + public Builder clearAmount() { + amount_ = getDefaultInstance().getAmount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string amount = 3; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + amount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int tradeType_ ; + /** + * int32 tradeType = 4; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + /** + * int32 tradeType = 4; + * @param value The tradeType to set. + * @return This builder for chaining. + */ + public Builder setTradeType(int value) { + + tradeType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int32 tradeType = 4; + * @return This builder for chaining. + */ + public Builder clearTradeType() { + bitField0_ = (bitField0_ & ~0x00000008); + tradeType_ = 0; + onChanged(); + return this; + } + + private boolean isMaker_ ; + /** + * bool isMaker = 5; + * @return The isMaker. + */ + @Override + public boolean getIsMaker() { + return isMaker_; + } + /** + * bool isMaker = 5; + * @param value The isMaker to set. + * @return This builder for chaining. + */ + public Builder setIsMaker(boolean value) { + + isMaker_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool isMaker = 5; + * @return This builder for chaining. + */ + public Builder clearIsMaker() { + bitField0_ = (bitField0_ & ~0x00000010); + isMaker_ = false; + onChanged(); + return this; + } + + private boolean isSelfTrade_ ; + /** + * bool isSelfTrade = 6; + * @return The isSelfTrade. + */ + @Override + public boolean getIsSelfTrade() { + return isSelfTrade_; + } + /** + * bool isSelfTrade = 6; + * @param value The isSelfTrade to set. + * @return This builder for chaining. + */ + public Builder setIsSelfTrade(boolean value) { + + isSelfTrade_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * bool isSelfTrade = 6; + * @return This builder for chaining. + */ + public Builder clearIsSelfTrade() { + bitField0_ = (bitField0_ & ~0x00000020); + isSelfTrade_ = false; + onChanged(); + return this; + } + + private Object tradeId_ = ""; + /** + * string tradeId = 7; + * @return The tradeId. + */ + public String getTradeId() { + Object ref = tradeId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + tradeId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string tradeId = 7; + * @return The bytes for tradeId. + */ + public com.google.protobuf.ByteString + getTradeIdBytes() { + Object ref = tradeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + tradeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tradeId = 7; + * @param value The tradeId to set. + * @return This builder for chaining. + */ + public Builder setTradeId( + String value) { + if (value == null) { throw new NullPointerException(); } + tradeId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string tradeId = 7; + * @return This builder for chaining. + */ + public Builder clearTradeId() { + tradeId_ = getDefaultInstance().getTradeId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string tradeId = 7; + * @param value The bytes for tradeId to set. + * @return This builder for chaining. + */ + public Builder setTradeIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + tradeId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private Object clientOrderId_ = ""; + /** + * string clientOrderId = 8; + * @return The clientOrderId. + */ + public String getClientOrderId() { + Object ref = clientOrderId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + clientOrderId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string clientOrderId = 8; + * @return The bytes for clientOrderId. + */ + public com.google.protobuf.ByteString + getClientOrderIdBytes() { + Object ref = clientOrderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + clientOrderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string clientOrderId = 8; + * @param value The clientOrderId to set. + * @return This builder for chaining. + */ + public Builder setClientOrderId( + String value) { + if (value == null) { throw new NullPointerException(); } + clientOrderId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * string clientOrderId = 8; + * @return This builder for chaining. + */ + public Builder clearClientOrderId() { + clientOrderId_ = getDefaultInstance().getClientOrderId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * string clientOrderId = 8; + * @param value The bytes for clientOrderId to set. + * @return This builder for chaining. + */ + public Builder setClientOrderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientOrderId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private Object orderId_ = ""; + /** + * string orderId = 9; + * @return The orderId. + */ + public String getOrderId() { + Object ref = orderId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + orderId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string orderId = 9; + * @return The bytes for orderId. + */ + public com.google.protobuf.ByteString + getOrderIdBytes() { + Object ref = orderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + orderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string orderId = 9; + * @param value The orderId to set. + * @return This builder for chaining. + */ + public Builder setOrderId( + String value) { + if (value == null) { throw new NullPointerException(); } + orderId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * string orderId = 9; + * @return This builder for chaining. + */ + public Builder clearOrderId() { + orderId_ = getDefaultInstance().getOrderId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * string orderId = 9; + * @param value The bytes for orderId to set. + * @return This builder for chaining. + */ + public Builder setOrderIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + orderId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private Object feeAmount_ = ""; + /** + * string feeAmount = 10; + * @return The feeAmount. + */ + public String getFeeAmount() { + Object ref = feeAmount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + feeAmount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string feeAmount = 10; + * @return The bytes for feeAmount. + */ + public com.google.protobuf.ByteString + getFeeAmountBytes() { + Object ref = feeAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + feeAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string feeAmount = 10; + * @param value The feeAmount to set. + * @return This builder for chaining. + */ + public Builder setFeeAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + feeAmount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string feeAmount = 10; + * @return This builder for chaining. + */ + public Builder clearFeeAmount() { + feeAmount_ = getDefaultInstance().getFeeAmount(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string feeAmount = 10; + * @param value The bytes for feeAmount to set. + * @return This builder for chaining. + */ + public Builder setFeeAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + feeAmount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private Object feeCurrency_ = ""; + /** + * string feeCurrency = 11; + * @return The feeCurrency. + */ + public String getFeeCurrency() { + Object ref = feeCurrency_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + feeCurrency_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string feeCurrency = 11; + * @return The bytes for feeCurrency. + */ + public com.google.protobuf.ByteString + getFeeCurrencyBytes() { + Object ref = feeCurrency_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + feeCurrency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string feeCurrency = 11; + * @param value The feeCurrency to set. + * @return This builder for chaining. + */ + public Builder setFeeCurrency( + String value) { + if (value == null) { throw new NullPointerException(); } + feeCurrency_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string feeCurrency = 11; + * @return This builder for chaining. + */ + public Builder clearFeeCurrency() { + feeCurrency_ = getDefaultInstance().getFeeCurrency(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string feeCurrency = 11; + * @param value The bytes for feeCurrency to set. + * @return This builder for chaining. + */ + public Builder setFeeCurrencyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + feeCurrency_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private long time_ ; + /** + * int64 time = 12; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + /** + * int64 time = 12; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(long value) { + + time_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * int64 time = 12; + * @return This builder for chaining. + */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000800); + time_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PrivateDealsV3Api) + } + + // @@protoc_insertion_point(class_scope:PrivateDealsV3Api) + private static final PrivateDealsV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PrivateDealsV3Api(); + } + + public static PrivateDealsV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PrivateDealsV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PrivateDealsV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3ApiOrBuilder.java new file mode 100644 index 00000000..07728797 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3ApiOrBuilder.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PrivateDealsV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PrivateDealsV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * string price = 1; + * @return The price. + */ + String getPrice(); + /** + * string price = 1; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 2; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); + + /** + * string amount = 3; + * @return The amount. + */ + String getAmount(); + /** + * string amount = 3; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + * int32 tradeType = 4; + * @return The tradeType. + */ + int getTradeType(); + + /** + * bool isMaker = 5; + * @return The isMaker. + */ + boolean getIsMaker(); + + /** + * bool isSelfTrade = 6; + * @return The isSelfTrade. + */ + boolean getIsSelfTrade(); + + /** + * string tradeId = 7; + * @return The tradeId. + */ + String getTradeId(); + /** + * string tradeId = 7; + * @return The bytes for tradeId. + */ + com.google.protobuf.ByteString + getTradeIdBytes(); + + /** + * string clientOrderId = 8; + * @return The clientOrderId. + */ + String getClientOrderId(); + /** + * string clientOrderId = 8; + * @return The bytes for clientOrderId. + */ + com.google.protobuf.ByteString + getClientOrderIdBytes(); + + /** + * string orderId = 9; + * @return The orderId. + */ + String getOrderId(); + /** + * string orderId = 9; + * @return The bytes for orderId. + */ + com.google.protobuf.ByteString + getOrderIdBytes(); + + /** + * string feeAmount = 10; + * @return The feeAmount. + */ + String getFeeAmount(); + /** + * string feeAmount = 10; + * @return The bytes for feeAmount. + */ + com.google.protobuf.ByteString + getFeeAmountBytes(); + + /** + * string feeCurrency = 11; + * @return The feeCurrency. + */ + String getFeeCurrency(); + /** + * string feeCurrency = 11; + * @return The bytes for feeCurrency. + */ + com.google.protobuf.ByteString + getFeeCurrencyBytes(); + + /** + * int64 time = 12; + * @return The time. + */ + long getTime(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3ApiProto.java new file mode 100644 index 00000000..bc37a543 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateDealsV3ApiProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PrivateDealsV3ApiProto { + private PrivateDealsV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PrivateDealsV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PrivateDealsV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PrivateDealsV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\027PrivateDealsV3Api.proto\"\354\001\n\021PrivateDea" + + "lsV3Api\022\r\n\005price\030\001 \001(\t\022\020\n\010quantity\030\002 \001(\t" + + "\022\016\n\006amount\030\003 \001(\t\022\021\n\ttradeType\030\004 \001(\005\022\017\n\007i" + + "sMaker\030\005 \001(\010\022\023\n\013isSelfTrade\030\006 \001(\010\022\017\n\007tra" + + "deId\030\007 \001(\t\022\025\n\rclientOrderId\030\010 \001(\t\022\017\n\007ord" + + "erId\030\t \001(\t\022\021\n\tfeeAmount\030\n \001(\t\022\023\n\013feeCurr" + + "ency\030\013 \001(\t\022\014\n\004time\030\014 \001(\003B:\n\034com.mxc.push" + + ".common.protobufB\026PrivateDealsV3ApiProto" + + "H\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PrivateDealsV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PrivateDealsV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PrivateDealsV3Api_descriptor, + new String[] { "Price", "Quantity", "Amount", "TradeType", "IsMaker", "IsSelfTrade", "TradeId", "ClientOrderId", "OrderId", "FeeAmount", "FeeCurrency", "Time", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3Api.java new file mode 100644 index 00000000..b1a0ce1b --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3Api.java @@ -0,0 +1,3649 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateOrdersV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PrivateOrdersV3Api} + */ +public final class PrivateOrdersV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PrivateOrdersV3Api) + PrivateOrdersV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PrivateOrdersV3Api.class.getName()); + } + // Use PrivateOrdersV3Api.newBuilder() to construct. + private PrivateOrdersV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PrivateOrdersV3Api() { + id_ = ""; + clientId_ = ""; + price_ = ""; + quantity_ = ""; + amount_ = ""; + avgPrice_ = ""; + remainAmount_ = ""; + remainQuantity_ = ""; + lastDealQuantity_ = ""; + cumulativeQuantity_ = ""; + cumulativeAmount_ = ""; + market_ = ""; + triggerPrice_ = ""; + ocoId_ = ""; + routeFactor_ = ""; + symbolId_ = ""; + marketId_ = ""; + marketCurrencyId_ = ""; + currencyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrivateOrdersV3ApiProto.internal_static_PrivateOrdersV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PrivateOrdersV3ApiProto.internal_static_PrivateOrdersV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrivateOrdersV3Api.class, Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object id_ = ""; + /** + * string id = 1; + * @return The id. + */ + @Override + public String getId() { + Object ref = id_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + @Override + public com.google.protobuf.ByteString + getIdBytes() { + Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENTID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object clientId_ = ""; + /** + * string clientId = 2; + * @return The clientId. + */ + @Override + public String getClientId() { + Object ref = clientId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } + } + /** + * string clientId = 2; + * @return The bytes for clientId. + */ + @Override + public com.google.protobuf.ByteString + getClientIdBytes() { + Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 3; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 3; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 4; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 4; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile Object amount_ = ""; + /** + * string amount = 5; + * @return The amount. + */ + @Override + public String getAmount() { + Object ref = amount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + * string amount = 5; + * @return The bytes for amount. + */ + @Override + public com.google.protobuf.ByteString + getAmountBytes() { + Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AVGPRICE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile Object avgPrice_ = ""; + /** + * string avgPrice = 6; + * @return The avgPrice. + */ + @Override + public String getAvgPrice() { + Object ref = avgPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + avgPrice_ = s; + return s; + } + } + /** + * string avgPrice = 6; + * @return The bytes for avgPrice. + */ + @Override + public com.google.protobuf.ByteString + getAvgPriceBytes() { + Object ref = avgPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + avgPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDERTYPE_FIELD_NUMBER = 7; + private int orderType_ = 0; + /** + * int32 orderType = 7; + * @return The orderType. + */ + @Override + public int getOrderType() { + return orderType_; + } + + public static final int TRADETYPE_FIELD_NUMBER = 8; + private int tradeType_ = 0; + /** + * int32 tradeType = 8; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + + public static final int ISMAKER_FIELD_NUMBER = 9; + private boolean isMaker_ = false; + /** + * bool isMaker = 9; + * @return The isMaker. + */ + @Override + public boolean getIsMaker() { + return isMaker_; + } + + public static final int REMAINAMOUNT_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile Object remainAmount_ = ""; + /** + * string remainAmount = 10; + * @return The remainAmount. + */ + @Override + public String getRemainAmount() { + Object ref = remainAmount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + remainAmount_ = s; + return s; + } + } + /** + * string remainAmount = 10; + * @return The bytes for remainAmount. + */ + @Override + public com.google.protobuf.ByteString + getRemainAmountBytes() { + Object ref = remainAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + remainAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMAINQUANTITY_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile Object remainQuantity_ = ""; + /** + * string remainQuantity = 11; + * @return The remainQuantity. + */ + @Override + public String getRemainQuantity() { + Object ref = remainQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + remainQuantity_ = s; + return s; + } + } + /** + * string remainQuantity = 11; + * @return The bytes for remainQuantity. + */ + @Override + public com.google.protobuf.ByteString + getRemainQuantityBytes() { + Object ref = remainQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + remainQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTDEALQUANTITY_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile Object lastDealQuantity_ = ""; + /** + * optional string lastDealQuantity = 12; + * @return Whether the lastDealQuantity field is set. + */ + @Override + public boolean hasLastDealQuantity() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string lastDealQuantity = 12; + * @return The lastDealQuantity. + */ + @Override + public String getLastDealQuantity() { + Object ref = lastDealQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastDealQuantity_ = s; + return s; + } + } + /** + * optional string lastDealQuantity = 12; + * @return The bytes for lastDealQuantity. + */ + @Override + public com.google.protobuf.ByteString + getLastDealQuantityBytes() { + Object ref = lastDealQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastDealQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUMULATIVEQUANTITY_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile Object cumulativeQuantity_ = ""; + /** + * string cumulativeQuantity = 13; + * @return The cumulativeQuantity. + */ + @Override + public String getCumulativeQuantity() { + Object ref = cumulativeQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + cumulativeQuantity_ = s; + return s; + } + } + /** + * string cumulativeQuantity = 13; + * @return The bytes for cumulativeQuantity. + */ + @Override + public com.google.protobuf.ByteString + getCumulativeQuantityBytes() { + Object ref = cumulativeQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + cumulativeQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUMULATIVEAMOUNT_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile Object cumulativeAmount_ = ""; + /** + * string cumulativeAmount = 14; + * @return The cumulativeAmount. + */ + @Override + public String getCumulativeAmount() { + Object ref = cumulativeAmount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + cumulativeAmount_ = s; + return s; + } + } + /** + * string cumulativeAmount = 14; + * @return The bytes for cumulativeAmount. + */ + @Override + public com.google.protobuf.ByteString + getCumulativeAmountBytes() { + Object ref = cumulativeAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + cumulativeAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 15; + private int status_ = 0; + /** + * int32 status = 15; + * @return The status. + */ + @Override + public int getStatus() { + return status_; + } + + public static final int CREATETIME_FIELD_NUMBER = 16; + private long createTime_ = 0L; + /** + * int64 createTime = 16; + * @return The createTime. + */ + @Override + public long getCreateTime() { + return createTime_; + } + + public static final int MARKET_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile Object market_ = ""; + /** + * optional string market = 17; + * @return Whether the market field is set. + */ + @Override + public boolean hasMarket() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string market = 17; + * @return The market. + */ + @Override + public String getMarket() { + Object ref = market_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + market_ = s; + return s; + } + } + /** + * optional string market = 17; + * @return The bytes for market. + */ + @Override + public com.google.protobuf.ByteString + getMarketBytes() { + Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRIGGERTYPE_FIELD_NUMBER = 18; + private int triggerType_ = 0; + /** + * optional int32 triggerType = 18; + * @return Whether the triggerType field is set. + */ + @Override + public boolean hasTriggerType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional int32 triggerType = 18; + * @return The triggerType. + */ + @Override + public int getTriggerType() { + return triggerType_; + } + + public static final int TRIGGERPRICE_FIELD_NUMBER = 19; + @SuppressWarnings("serial") + private volatile Object triggerPrice_ = ""; + /** + * optional string triggerPrice = 19; + * @return Whether the triggerPrice field is set. + */ + @Override + public boolean hasTriggerPrice() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string triggerPrice = 19; + * @return The triggerPrice. + */ + @Override + public String getTriggerPrice() { + Object ref = triggerPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + triggerPrice_ = s; + return s; + } + } + /** + * optional string triggerPrice = 19; + * @return The bytes for triggerPrice. + */ + @Override + public com.google.protobuf.ByteString + getTriggerPriceBytes() { + Object ref = triggerPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + triggerPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 20; + private int state_ = 0; + /** + * optional int32 state = 20; + * @return Whether the state field is set. + */ + @Override + public boolean hasState() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional int32 state = 20; + * @return The state. + */ + @Override + public int getState() { + return state_; + } + + public static final int OCOID_FIELD_NUMBER = 21; + @SuppressWarnings("serial") + private volatile Object ocoId_ = ""; + /** + * optional string ocoId = 21; + * @return Whether the ocoId field is set. + */ + @Override + public boolean hasOcoId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string ocoId = 21; + * @return The ocoId. + */ + @Override + public String getOcoId() { + Object ref = ocoId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + ocoId_ = s; + return s; + } + } + /** + * optional string ocoId = 21; + * @return The bytes for ocoId. + */ + @Override + public com.google.protobuf.ByteString + getOcoIdBytes() { + Object ref = ocoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + ocoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROUTEFACTOR_FIELD_NUMBER = 22; + @SuppressWarnings("serial") + private volatile Object routeFactor_ = ""; + /** + * optional string routeFactor = 22; + * @return Whether the routeFactor field is set. + */ + @Override + public boolean hasRouteFactor() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string routeFactor = 22; + * @return The routeFactor. + */ + @Override + public String getRouteFactor() { + Object ref = routeFactor_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + routeFactor_ = s; + return s; + } + } + /** + * optional string routeFactor = 22; + * @return The bytes for routeFactor. + */ + @Override + public com.google.protobuf.ByteString + getRouteFactorBytes() { + Object ref = routeFactor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + routeFactor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOLID_FIELD_NUMBER = 23; + @SuppressWarnings("serial") + private volatile Object symbolId_ = ""; + /** + * optional string symbolId = 23; + * @return Whether the symbolId field is set. + */ + @Override + public boolean hasSymbolId() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string symbolId = 23; + * @return The symbolId. + */ + @Override + public String getSymbolId() { + Object ref = symbolId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbolId_ = s; + return s; + } + } + /** + * optional string symbolId = 23; + * @return The bytes for symbolId. + */ + @Override + public com.google.protobuf.ByteString + getSymbolIdBytes() { + Object ref = symbolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MARKETID_FIELD_NUMBER = 24; + @SuppressWarnings("serial") + private volatile Object marketId_ = ""; + /** + * optional string marketId = 24; + * @return Whether the marketId field is set. + */ + @Override + public boolean hasMarketId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string marketId = 24; + * @return The marketId. + */ + @Override + public String getMarketId() { + Object ref = marketId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + marketId_ = s; + return s; + } + } + /** + * optional string marketId = 24; + * @return The bytes for marketId. + */ + @Override + public com.google.protobuf.ByteString + getMarketIdBytes() { + Object ref = marketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MARKETCURRENCYID_FIELD_NUMBER = 25; + @SuppressWarnings("serial") + private volatile Object marketCurrencyId_ = ""; + /** + * optional string marketCurrencyId = 25; + * @return Whether the marketCurrencyId field is set. + */ + @Override + public boolean hasMarketCurrencyId() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * optional string marketCurrencyId = 25; + * @return The marketCurrencyId. + */ + @Override + public String getMarketCurrencyId() { + Object ref = marketCurrencyId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + marketCurrencyId_ = s; + return s; + } + } + /** + * optional string marketCurrencyId = 25; + * @return The bytes for marketCurrencyId. + */ + @Override + public com.google.protobuf.ByteString + getMarketCurrencyIdBytes() { + Object ref = marketCurrencyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + marketCurrencyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENCYID_FIELD_NUMBER = 26; + @SuppressWarnings("serial") + private volatile Object currencyId_ = ""; + /** + * optional string currencyId = 26; + * @return Whether the currencyId field is set. + */ + @Override + public boolean hasCurrencyId() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string currencyId = 26; + * @return The currencyId. + */ + @Override + public String getCurrencyId() { + Object ref = currencyId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + currencyId_ = s; + return s; + } + } + /** + * optional string currencyId = 26; + * @return The bytes for currencyId. + */ + @Override + public com.google.protobuf.ByteString + getCurrencyIdBytes() { + Object ref = currencyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + currencyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, quantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(amount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, amount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avgPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, avgPrice_); + } + if (orderType_ != 0) { + output.writeInt32(7, orderType_); + } + if (tradeType_ != 0) { + output.writeInt32(8, tradeType_); + } + if (isMaker_ != false) { + output.writeBool(9, isMaker_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remainAmount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, remainAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remainQuantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, remainQuantity_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, lastDealQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cumulativeQuantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, cumulativeQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cumulativeAmount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, cumulativeAmount_); + } + if (status_ != 0) { + output.writeInt32(15, status_); + } + if (createTime_ != 0L) { + output.writeInt64(16, createTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, market_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt32(18, triggerType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, triggerPrice_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(20, state_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 21, ocoId_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 22, routeFactor_); + } + if (((bitField0_ & 0x00000080) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 23, symbolId_); + } + if (((bitField0_ & 0x00000100) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 24, marketId_); + } + if (((bitField0_ & 0x00000200) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 25, marketCurrencyId_); + } + if (((bitField0_ & 0x00000400) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, currencyId_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, quantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(amount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, amount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(avgPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, avgPrice_); + } + if (orderType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, orderType_); + } + if (tradeType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, tradeType_); + } + if (isMaker_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, isMaker_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remainAmount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, remainAmount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remainQuantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, remainQuantity_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, lastDealQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cumulativeQuantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, cumulativeQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cumulativeAmount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(14, cumulativeAmount_); + } + if (status_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, status_); + } + if (createTime_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(16, createTime_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, market_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(18, triggerType_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, triggerPrice_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(20, state_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(21, ocoId_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(22, routeFactor_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(23, symbolId_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(24, marketId_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(25, marketCurrencyId_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(26, currencyId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PrivateOrdersV3Api)) { + return super.equals(obj); + } + PrivateOrdersV3Api other = (PrivateOrdersV3Api) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getClientId() + .equals(other.getClientId())) return false; + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (!getAvgPrice() + .equals(other.getAvgPrice())) return false; + if (getOrderType() + != other.getOrderType()) return false; + if (getTradeType() + != other.getTradeType()) return false; + if (getIsMaker() + != other.getIsMaker()) return false; + if (!getRemainAmount() + .equals(other.getRemainAmount())) return false; + if (!getRemainQuantity() + .equals(other.getRemainQuantity())) return false; + if (hasLastDealQuantity() != other.hasLastDealQuantity()) return false; + if (hasLastDealQuantity()) { + if (!getLastDealQuantity() + .equals(other.getLastDealQuantity())) return false; + } + if (!getCumulativeQuantity() + .equals(other.getCumulativeQuantity())) return false; + if (!getCumulativeAmount() + .equals(other.getCumulativeAmount())) return false; + if (getStatus() + != other.getStatus()) return false; + if (getCreateTime() + != other.getCreateTime()) return false; + if (hasMarket() != other.hasMarket()) return false; + if (hasMarket()) { + if (!getMarket() + .equals(other.getMarket())) return false; + } + if (hasTriggerType() != other.hasTriggerType()) return false; + if (hasTriggerType()) { + if (getTriggerType() + != other.getTriggerType()) return false; + } + if (hasTriggerPrice() != other.hasTriggerPrice()) return false; + if (hasTriggerPrice()) { + if (!getTriggerPrice() + .equals(other.getTriggerPrice())) return false; + } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (getState() + != other.getState()) return false; + } + if (hasOcoId() != other.hasOcoId()) return false; + if (hasOcoId()) { + if (!getOcoId() + .equals(other.getOcoId())) return false; + } + if (hasRouteFactor() != other.hasRouteFactor()) return false; + if (hasRouteFactor()) { + if (!getRouteFactor() + .equals(other.getRouteFactor())) return false; + } + if (hasSymbolId() != other.hasSymbolId()) return false; + if (hasSymbolId()) { + if (!getSymbolId() + .equals(other.getSymbolId())) return false; + } + if (hasMarketId() != other.hasMarketId()) return false; + if (hasMarketId()) { + if (!getMarketId() + .equals(other.getMarketId())) return false; + } + if (hasMarketCurrencyId() != other.hasMarketCurrencyId()) return false; + if (hasMarketCurrencyId()) { + if (!getMarketCurrencyId() + .equals(other.getMarketCurrencyId())) return false; + } + if (hasCurrencyId() != other.hasCurrencyId()) return false; + if (hasCurrencyId()) { + if (!getCurrencyId() + .equals(other.getCurrencyId())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @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) + getId().hashCode(); + hash = (37 * hash) + CLIENTID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + AVGPRICE_FIELD_NUMBER; + hash = (53 * hash) + getAvgPrice().hashCode(); + hash = (37 * hash) + ORDERTYPE_FIELD_NUMBER; + hash = (53 * hash) + getOrderType(); + hash = (37 * hash) + TRADETYPE_FIELD_NUMBER; + hash = (53 * hash) + getTradeType(); + hash = (37 * hash) + ISMAKER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMaker()); + hash = (37 * hash) + REMAINAMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getRemainAmount().hashCode(); + hash = (37 * hash) + REMAINQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getRemainQuantity().hashCode(); + if (hasLastDealQuantity()) { + hash = (37 * hash) + LASTDEALQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getLastDealQuantity().hashCode(); + } + hash = (37 * hash) + CUMULATIVEQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getCumulativeQuantity().hashCode(); + hash = (37 * hash) + CUMULATIVEAMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getCumulativeAmount().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus(); + hash = (37 * hash) + CREATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreateTime()); + if (hasMarket()) { + hash = (37 * hash) + MARKET_FIELD_NUMBER; + hash = (53 * hash) + getMarket().hashCode(); + } + if (hasTriggerType()) { + hash = (37 * hash) + TRIGGERTYPE_FIELD_NUMBER; + hash = (53 * hash) + getTriggerType(); + } + if (hasTriggerPrice()) { + hash = (37 * hash) + TRIGGERPRICE_FIELD_NUMBER; + hash = (53 * hash) + getTriggerPrice().hashCode(); + } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState(); + } + if (hasOcoId()) { + hash = (37 * hash) + OCOID_FIELD_NUMBER; + hash = (53 * hash) + getOcoId().hashCode(); + } + if (hasRouteFactor()) { + hash = (37 * hash) + ROUTEFACTOR_FIELD_NUMBER; + hash = (53 * hash) + getRouteFactor().hashCode(); + } + if (hasSymbolId()) { + hash = (37 * hash) + SYMBOLID_FIELD_NUMBER; + hash = (53 * hash) + getSymbolId().hashCode(); + } + if (hasMarketId()) { + hash = (37 * hash) + MARKETID_FIELD_NUMBER; + hash = (53 * hash) + getMarketId().hashCode(); + } + if (hasMarketCurrencyId()) { + hash = (37 * hash) + MARKETCURRENCYID_FIELD_NUMBER; + hash = (53 * hash) + getMarketCurrencyId().hashCode(); + } + if (hasCurrencyId()) { + hash = (37 * hash) + CURRENCYID_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PrivateOrdersV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateOrdersV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateOrdersV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateOrdersV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateOrdersV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PrivateOrdersV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PrivateOrdersV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PrivateOrdersV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PrivateOrdersV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PrivateOrdersV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PrivateOrdersV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PrivateOrdersV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PrivateOrdersV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PrivateOrdersV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PrivateOrdersV3Api) + PrivateOrdersV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PrivateOrdersV3ApiProto.internal_static_PrivateOrdersV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PrivateOrdersV3ApiProto.internal_static_PrivateOrdersV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PrivateOrdersV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PrivateOrdersV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + clientId_ = ""; + price_ = ""; + quantity_ = ""; + amount_ = ""; + avgPrice_ = ""; + orderType_ = 0; + tradeType_ = 0; + isMaker_ = false; + remainAmount_ = ""; + remainQuantity_ = ""; + lastDealQuantity_ = ""; + cumulativeQuantity_ = ""; + cumulativeAmount_ = ""; + status_ = 0; + createTime_ = 0L; + market_ = ""; + triggerType_ = 0; + triggerPrice_ = ""; + state_ = 0; + ocoId_ = ""; + routeFactor_ = ""; + symbolId_ = ""; + marketId_ = ""; + marketCurrencyId_ = ""; + currencyId_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PrivateOrdersV3ApiProto.internal_static_PrivateOrdersV3Api_descriptor; + } + + @Override + public PrivateOrdersV3Api getDefaultInstanceForType() { + return PrivateOrdersV3Api.getDefaultInstance(); + } + + @Override + public PrivateOrdersV3Api build() { + PrivateOrdersV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PrivateOrdersV3Api buildPartial() { + PrivateOrdersV3Api result = new PrivateOrdersV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PrivateOrdersV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.quantity_ = quantity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.amount_ = amount_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.avgPrice_ = avgPrice_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.orderType_ = orderType_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.tradeType_ = tradeType_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.isMaker_ = isMaker_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.remainAmount_ = remainAmount_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.remainQuantity_ = remainQuantity_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000800) != 0)) { + result.lastDealQuantity_ = lastDealQuantity_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.cumulativeQuantity_ = cumulativeQuantity_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.cumulativeAmount_ = cumulativeAmount_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.createTime_ = createTime_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.market_ = market_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.triggerType_ = triggerType_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.triggerPrice_ = triggerPrice_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.ocoId_ = ocoId_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.routeFactor_ = routeFactor_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.symbolId_ = symbolId_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.marketId_ = marketId_; + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.marketCurrencyId_ = marketCurrencyId_; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.currencyId_ = currencyId_; + to_bitField0_ |= 0x00000400; + } + result.bitField0_ |= to_bitField0_; + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PrivateOrdersV3Api) { + return mergeFrom((PrivateOrdersV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PrivateOrdersV3Api other) { + if (other == PrivateOrdersV3Api.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getAvgPrice().isEmpty()) { + avgPrice_ = other.avgPrice_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getOrderType() != 0) { + setOrderType(other.getOrderType()); + } + if (other.getTradeType() != 0) { + setTradeType(other.getTradeType()); + } + if (other.getIsMaker() != false) { + setIsMaker(other.getIsMaker()); + } + if (!other.getRemainAmount().isEmpty()) { + remainAmount_ = other.remainAmount_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getRemainQuantity().isEmpty()) { + remainQuantity_ = other.remainQuantity_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasLastDealQuantity()) { + lastDealQuantity_ = other.lastDealQuantity_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getCumulativeQuantity().isEmpty()) { + cumulativeQuantity_ = other.cumulativeQuantity_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getCumulativeAmount().isEmpty()) { + cumulativeAmount_ = other.cumulativeAmount_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.getStatus() != 0) { + setStatus(other.getStatus()); + } + if (other.getCreateTime() != 0L) { + setCreateTime(other.getCreateTime()); + } + if (other.hasMarket()) { + market_ = other.market_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasTriggerType()) { + setTriggerType(other.getTriggerType()); + } + if (other.hasTriggerPrice()) { + triggerPrice_ = other.triggerPrice_; + bitField0_ |= 0x00040000; + onChanged(); + } + if (other.hasState()) { + setState(other.getState()); + } + if (other.hasOcoId()) { + ocoId_ = other.ocoId_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (other.hasRouteFactor()) { + routeFactor_ = other.routeFactor_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (other.hasSymbolId()) { + symbolId_ = other.symbolId_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (other.hasMarketId()) { + marketId_ = other.marketId_; + bitField0_ |= 0x00800000; + onChanged(); + } + if (other.hasMarketCurrencyId()) { + marketCurrencyId_ = other.marketCurrencyId_; + bitField0_ |= 0x01000000; + onChanged(); + } + if (other.hasCurrencyId()) { + currencyId_ = other.currencyId_; + bitField0_ |= 0x02000000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + amount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + avgPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + orderType_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + tradeType_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + isMaker_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + remainAmount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + remainQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + lastDealQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + cumulativeQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + cumulativeAmount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 120: { + status_ = input.readInt32(); + bitField0_ |= 0x00004000; + break; + } // case 120 + case 128: { + createTime_ = input.readInt64(); + bitField0_ |= 0x00008000; + break; + } // case 128 + case 138: { + market_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 144: { + triggerType_ = input.readInt32(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: { + triggerPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 160: { + state_ = input.readInt32(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 170: { + ocoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 170 + case 178: { + routeFactor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: { + symbolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 194: { + marketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00800000; + break; + } // case 194 + case 202: { + marketCurrencyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x01000000; + break; + } // case 202 + case 210: { + currencyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 210 + 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 Object id_ = ""; + /** + * string id = 1; + * @return The id. + */ + public String getId() { + Object ref = id_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string id = 1; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object clientId_ = ""; + /** + * string clientId = 2; + * @return The clientId. + */ + public String getClientId() { + Object ref = clientId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string clientId = 2; + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString + getClientIdBytes() { + Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string clientId = 2; + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId( + String value) { + if (value == null) { throw new NullPointerException(); } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string clientId = 2; + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string clientId = 2; + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private Object price_ = ""; + /** + * string price = 3; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 3; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 3; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string price = 3; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string price = 3; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 4; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 4; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 4; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string quantity = 4; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string quantity = 4; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private Object amount_ = ""; + /** + * string amount = 5; + * @return The amount. + */ + public String getAmount() { + Object ref = amount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string amount = 5; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string amount = 5; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + amount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string amount = 5; + * @return This builder for chaining. + */ + public Builder clearAmount() { + amount_ = getDefaultInstance().getAmount(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string amount = 5; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + amount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private Object avgPrice_ = ""; + /** + * string avgPrice = 6; + * @return The avgPrice. + */ + public String getAvgPrice() { + Object ref = avgPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + avgPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string avgPrice = 6; + * @return The bytes for avgPrice. + */ + public com.google.protobuf.ByteString + getAvgPriceBytes() { + Object ref = avgPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + avgPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string avgPrice = 6; + * @param value The avgPrice to set. + * @return This builder for chaining. + */ + public Builder setAvgPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + avgPrice_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string avgPrice = 6; + * @return This builder for chaining. + */ + public Builder clearAvgPrice() { + avgPrice_ = getDefaultInstance().getAvgPrice(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string avgPrice = 6; + * @param value The bytes for avgPrice to set. + * @return This builder for chaining. + */ + public Builder setAvgPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + avgPrice_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int orderType_ ; + /** + * int32 orderType = 7; + * @return The orderType. + */ + @Override + public int getOrderType() { + return orderType_; + } + /** + * int32 orderType = 7; + * @param value The orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderType(int value) { + + orderType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * int32 orderType = 7; + * @return This builder for chaining. + */ + public Builder clearOrderType() { + bitField0_ = (bitField0_ & ~0x00000040); + orderType_ = 0; + onChanged(); + return this; + } + + private int tradeType_ ; + /** + * int32 tradeType = 8; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + /** + * int32 tradeType = 8; + * @param value The tradeType to set. + * @return This builder for chaining. + */ + public Builder setTradeType(int value) { + + tradeType_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * int32 tradeType = 8; + * @return This builder for chaining. + */ + public Builder clearTradeType() { + bitField0_ = (bitField0_ & ~0x00000080); + tradeType_ = 0; + onChanged(); + return this; + } + + private boolean isMaker_ ; + /** + * bool isMaker = 9; + * @return The isMaker. + */ + @Override + public boolean getIsMaker() { + return isMaker_; + } + /** + * bool isMaker = 9; + * @param value The isMaker to set. + * @return This builder for chaining. + */ + public Builder setIsMaker(boolean value) { + + isMaker_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * bool isMaker = 9; + * @return This builder for chaining. + */ + public Builder clearIsMaker() { + bitField0_ = (bitField0_ & ~0x00000100); + isMaker_ = false; + onChanged(); + return this; + } + + private Object remainAmount_ = ""; + /** + * string remainAmount = 10; + * @return The remainAmount. + */ + public String getRemainAmount() { + Object ref = remainAmount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + remainAmount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string remainAmount = 10; + * @return The bytes for remainAmount. + */ + public com.google.protobuf.ByteString + getRemainAmountBytes() { + Object ref = remainAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + remainAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remainAmount = 10; + * @param value The remainAmount to set. + * @return This builder for chaining. + */ + public Builder setRemainAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + remainAmount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string remainAmount = 10; + * @return This builder for chaining. + */ + public Builder clearRemainAmount() { + remainAmount_ = getDefaultInstance().getRemainAmount(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string remainAmount = 10; + * @param value The bytes for remainAmount to set. + * @return This builder for chaining. + */ + public Builder setRemainAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + remainAmount_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private Object remainQuantity_ = ""; + /** + * string remainQuantity = 11; + * @return The remainQuantity. + */ + public String getRemainQuantity() { + Object ref = remainQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + remainQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string remainQuantity = 11; + * @return The bytes for remainQuantity. + */ + public com.google.protobuf.ByteString + getRemainQuantityBytes() { + Object ref = remainQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + remainQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string remainQuantity = 11; + * @param value The remainQuantity to set. + * @return This builder for chaining. + */ + public Builder setRemainQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + remainQuantity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string remainQuantity = 11; + * @return This builder for chaining. + */ + public Builder clearRemainQuantity() { + remainQuantity_ = getDefaultInstance().getRemainQuantity(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string remainQuantity = 11; + * @param value The bytes for remainQuantity to set. + * @return This builder for chaining. + */ + public Builder setRemainQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + remainQuantity_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private Object lastDealQuantity_ = ""; + /** + * optional string lastDealQuantity = 12; + * @return Whether the lastDealQuantity field is set. + */ + public boolean hasLastDealQuantity() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string lastDealQuantity = 12; + * @return The lastDealQuantity. + */ + public String getLastDealQuantity() { + Object ref = lastDealQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastDealQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string lastDealQuantity = 12; + * @return The bytes for lastDealQuantity. + */ + public com.google.protobuf.ByteString + getLastDealQuantityBytes() { + Object ref = lastDealQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastDealQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string lastDealQuantity = 12; + * @param value The lastDealQuantity to set. + * @return This builder for chaining. + */ + public Builder setLastDealQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + lastDealQuantity_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional string lastDealQuantity = 12; + * @return This builder for chaining. + */ + public Builder clearLastDealQuantity() { + lastDealQuantity_ = getDefaultInstance().getLastDealQuantity(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * optional string lastDealQuantity = 12; + * @param value The bytes for lastDealQuantity to set. + * @return This builder for chaining. + */ + public Builder setLastDealQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastDealQuantity_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private Object cumulativeQuantity_ = ""; + /** + * string cumulativeQuantity = 13; + * @return The cumulativeQuantity. + */ + public String getCumulativeQuantity() { + Object ref = cumulativeQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + cumulativeQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string cumulativeQuantity = 13; + * @return The bytes for cumulativeQuantity. + */ + public com.google.protobuf.ByteString + getCumulativeQuantityBytes() { + Object ref = cumulativeQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + cumulativeQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cumulativeQuantity = 13; + * @param value The cumulativeQuantity to set. + * @return This builder for chaining. + */ + public Builder setCumulativeQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + cumulativeQuantity_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * string cumulativeQuantity = 13; + * @return This builder for chaining. + */ + public Builder clearCumulativeQuantity() { + cumulativeQuantity_ = getDefaultInstance().getCumulativeQuantity(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * string cumulativeQuantity = 13; + * @param value The bytes for cumulativeQuantity to set. + * @return This builder for chaining. + */ + public Builder setCumulativeQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cumulativeQuantity_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private Object cumulativeAmount_ = ""; + /** + * string cumulativeAmount = 14; + * @return The cumulativeAmount. + */ + public String getCumulativeAmount() { + Object ref = cumulativeAmount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + cumulativeAmount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string cumulativeAmount = 14; + * @return The bytes for cumulativeAmount. + */ + public com.google.protobuf.ByteString + getCumulativeAmountBytes() { + Object ref = cumulativeAmount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + cumulativeAmount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cumulativeAmount = 14; + * @param value The cumulativeAmount to set. + * @return This builder for chaining. + */ + public Builder setCumulativeAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + cumulativeAmount_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * string cumulativeAmount = 14; + * @return This builder for chaining. + */ + public Builder clearCumulativeAmount() { + cumulativeAmount_ = getDefaultInstance().getCumulativeAmount(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * string cumulativeAmount = 14; + * @param value The bytes for cumulativeAmount to set. + * @return This builder for chaining. + */ + public Builder setCumulativeAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cumulativeAmount_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private int status_ ; + /** + * int32 status = 15; + * @return The status. + */ + @Override + public int getStatus() { + return status_; + } + /** + * int32 status = 15; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(int value) { + + status_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * int32 status = 15; + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00004000); + status_ = 0; + onChanged(); + return this; + } + + private long createTime_ ; + /** + * int64 createTime = 16; + * @return The createTime. + */ + @Override + public long getCreateTime() { + return createTime_; + } + /** + * int64 createTime = 16; + * @param value The createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTime(long value) { + + createTime_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * int64 createTime = 16; + * @return This builder for chaining. + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00008000); + createTime_ = 0L; + onChanged(); + return this; + } + + private Object market_ = ""; + /** + * optional string market = 17; + * @return Whether the market field is set. + */ + public boolean hasMarket() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional string market = 17; + * @return The market. + */ + public String getMarket() { + Object ref = market_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + market_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string market = 17; + * @return The bytes for market. + */ + public com.google.protobuf.ByteString + getMarketBytes() { + Object ref = market_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + market_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string market = 17; + * @param value The market to set. + * @return This builder for chaining. + */ + public Builder setMarket( + String value) { + if (value == null) { throw new NullPointerException(); } + market_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional string market = 17; + * @return This builder for chaining. + */ + public Builder clearMarket() { + market_ = getDefaultInstance().getMarket(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * optional string market = 17; + * @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_ |= 0x00010000; + onChanged(); + return this; + } + + private int triggerType_ ; + /** + * optional int32 triggerType = 18; + * @return Whether the triggerType field is set. + */ + @Override + public boolean hasTriggerType() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional int32 triggerType = 18; + * @return The triggerType. + */ + @Override + public int getTriggerType() { + return triggerType_; + } + /** + * optional int32 triggerType = 18; + * @param value The triggerType to set. + * @return This builder for chaining. + */ + public Builder setTriggerType(int value) { + + triggerType_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * optional int32 triggerType = 18; + * @return This builder for chaining. + */ + public Builder clearTriggerType() { + bitField0_ = (bitField0_ & ~0x00020000); + triggerType_ = 0; + onChanged(); + return this; + } + + private Object triggerPrice_ = ""; + /** + * optional string triggerPrice = 19; + * @return Whether the triggerPrice field is set. + */ + public boolean hasTriggerPrice() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * optional string triggerPrice = 19; + * @return The triggerPrice. + */ + public String getTriggerPrice() { + Object ref = triggerPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + triggerPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string triggerPrice = 19; + * @return The bytes for triggerPrice. + */ + public com.google.protobuf.ByteString + getTriggerPriceBytes() { + Object ref = triggerPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + triggerPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string triggerPrice = 19; + * @param value The triggerPrice to set. + * @return This builder for chaining. + */ + public Builder setTriggerPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + triggerPrice_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * optional string triggerPrice = 19; + * @return This builder for chaining. + */ + public Builder clearTriggerPrice() { + triggerPrice_ = getDefaultInstance().getTriggerPrice(); + bitField0_ = (bitField0_ & ~0x00040000); + onChanged(); + return this; + } + /** + * optional string triggerPrice = 19; + * @param value The bytes for triggerPrice to set. + * @return This builder for chaining. + */ + public Builder setTriggerPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + triggerPrice_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private int state_ ; + /** + * optional int32 state = 20; + * @return Whether the state field is set. + */ + @Override + public boolean hasState() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * optional int32 state = 20; + * @return The state. + */ + @Override + public int getState() { + return state_; + } + /** + * optional int32 state = 20; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(int value) { + + state_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * optional int32 state = 20; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00080000); + state_ = 0; + onChanged(); + return this; + } + + private Object ocoId_ = ""; + /** + * optional string ocoId = 21; + * @return Whether the ocoId field is set. + */ + public boolean hasOcoId() { + return ((bitField0_ & 0x00100000) != 0); + } + /** + * optional string ocoId = 21; + * @return The ocoId. + */ + public String getOcoId() { + Object ref = ocoId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + ocoId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string ocoId = 21; + * @return The bytes for ocoId. + */ + public com.google.protobuf.ByteString + getOcoIdBytes() { + Object ref = ocoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + ocoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string ocoId = 21; + * @param value The ocoId to set. + * @return This builder for chaining. + */ + public Builder setOcoId( + String value) { + if (value == null) { throw new NullPointerException(); } + ocoId_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * optional string ocoId = 21; + * @return This builder for chaining. + */ + public Builder clearOcoId() { + ocoId_ = getDefaultInstance().getOcoId(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + /** + * optional string ocoId = 21; + * @param value The bytes for ocoId to set. + * @return This builder for chaining. + */ + public Builder setOcoIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ocoId_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + private Object routeFactor_ = ""; + /** + * optional string routeFactor = 22; + * @return Whether the routeFactor field is set. + */ + public boolean hasRouteFactor() { + return ((bitField0_ & 0x00200000) != 0); + } + /** + * optional string routeFactor = 22; + * @return The routeFactor. + */ + public String getRouteFactor() { + Object ref = routeFactor_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + routeFactor_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string routeFactor = 22; + * @return The bytes for routeFactor. + */ + public com.google.protobuf.ByteString + getRouteFactorBytes() { + Object ref = routeFactor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + routeFactor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string routeFactor = 22; + * @param value The routeFactor to set. + * @return This builder for chaining. + */ + public Builder setRouteFactor( + String value) { + if (value == null) { throw new NullPointerException(); } + routeFactor_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + /** + * optional string routeFactor = 22; + * @return This builder for chaining. + */ + public Builder clearRouteFactor() { + routeFactor_ = getDefaultInstance().getRouteFactor(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + /** + * optional string routeFactor = 22; + * @param value The bytes for routeFactor to set. + * @return This builder for chaining. + */ + public Builder setRouteFactorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + routeFactor_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private Object symbolId_ = ""; + /** + * optional string symbolId = 23; + * @return Whether the symbolId field is set. + */ + public boolean hasSymbolId() { + return ((bitField0_ & 0x00400000) != 0); + } + /** + * optional string symbolId = 23; + * @return The symbolId. + */ + public String getSymbolId() { + Object ref = symbolId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbolId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string symbolId = 23; + * @return The bytes for symbolId. + */ + public com.google.protobuf.ByteString + getSymbolIdBytes() { + Object ref = symbolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string symbolId = 23; + * @param value The symbolId to set. + * @return This builder for chaining. + */ + public Builder setSymbolId( + String value) { + if (value == null) { throw new NullPointerException(); } + symbolId_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + /** + * optional string symbolId = 23; + * @return This builder for chaining. + */ + public Builder clearSymbolId() { + symbolId_ = getDefaultInstance().getSymbolId(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } + /** + * optional string symbolId = 23; + * @param value The bytes for symbolId to set. + * @return This builder for chaining. + */ + public Builder setSymbolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + symbolId_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private Object marketId_ = ""; + /** + * optional string marketId = 24; + * @return Whether the marketId field is set. + */ + public boolean hasMarketId() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * optional string marketId = 24; + * @return The marketId. + */ + public String getMarketId() { + Object ref = marketId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + marketId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string marketId = 24; + * @return The bytes for marketId. + */ + public com.google.protobuf.ByteString + getMarketIdBytes() { + Object ref = marketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + marketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string marketId = 24; + * @param value The marketId to set. + * @return This builder for chaining. + */ + public Builder setMarketId( + String value) { + if (value == null) { throw new NullPointerException(); } + marketId_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * optional string marketId = 24; + * @return This builder for chaining. + */ + public Builder clearMarketId() { + marketId_ = getDefaultInstance().getMarketId(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + return this; + } + /** + * optional string marketId = 24; + * @param value The bytes for marketId to set. + * @return This builder for chaining. + */ + public Builder setMarketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + marketId_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + private Object marketCurrencyId_ = ""; + /** + * optional string marketCurrencyId = 25; + * @return Whether the marketCurrencyId field is set. + */ + public boolean hasMarketCurrencyId() { + return ((bitField0_ & 0x01000000) != 0); + } + /** + * optional string marketCurrencyId = 25; + * @return The marketCurrencyId. + */ + public String getMarketCurrencyId() { + Object ref = marketCurrencyId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + marketCurrencyId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string marketCurrencyId = 25; + * @return The bytes for marketCurrencyId. + */ + public com.google.protobuf.ByteString + getMarketCurrencyIdBytes() { + Object ref = marketCurrencyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + marketCurrencyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string marketCurrencyId = 25; + * @param value The marketCurrencyId to set. + * @return This builder for chaining. + */ + public Builder setMarketCurrencyId( + String value) { + if (value == null) { throw new NullPointerException(); } + marketCurrencyId_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + /** + * optional string marketCurrencyId = 25; + * @return This builder for chaining. + */ + public Builder clearMarketCurrencyId() { + marketCurrencyId_ = getDefaultInstance().getMarketCurrencyId(); + bitField0_ = (bitField0_ & ~0x01000000); + onChanged(); + return this; + } + /** + * optional string marketCurrencyId = 25; + * @param value The bytes for marketCurrencyId to set. + * @return This builder for chaining. + */ + public Builder setMarketCurrencyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + marketCurrencyId_ = value; + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + private Object currencyId_ = ""; + /** + * optional string currencyId = 26; + * @return Whether the currencyId field is set. + */ + public boolean hasCurrencyId() { + return ((bitField0_ & 0x02000000) != 0); + } + /** + * optional string currencyId = 26; + * @return The currencyId. + */ + public String getCurrencyId() { + Object ref = currencyId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + currencyId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * optional string currencyId = 26; + * @return The bytes for currencyId. + */ + public com.google.protobuf.ByteString + getCurrencyIdBytes() { + Object ref = currencyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + currencyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string currencyId = 26; + * @param value The currencyId to set. + * @return This builder for chaining. + */ + public Builder setCurrencyId( + String value) { + if (value == null) { throw new NullPointerException(); } + currencyId_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + /** + * optional string currencyId = 26; + * @return This builder for chaining. + */ + public Builder clearCurrencyId() { + currencyId_ = getDefaultInstance().getCurrencyId(); + bitField0_ = (bitField0_ & ~0x02000000); + onChanged(); + return this; + } + /** + * optional string currencyId = 26; + * @param value The bytes for currencyId to set. + * @return This builder for chaining. + */ + public Builder setCurrencyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + currencyId_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PrivateOrdersV3Api) + } + + // @@protoc_insertion_point(class_scope:PrivateOrdersV3Api) + private static final PrivateOrdersV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PrivateOrdersV3Api(); + } + + public static PrivateOrdersV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PrivateOrdersV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PrivateOrdersV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3ApiOrBuilder.java new file mode 100644 index 00000000..f18df566 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3ApiOrBuilder.java @@ -0,0 +1,336 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateOrdersV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PrivateOrdersV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PrivateOrdersV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + * @return The id. + */ + String getId(); + /** + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string clientId = 2; + * @return The clientId. + */ + String getClientId(); + /** + * string clientId = 2; + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString + getClientIdBytes(); + + /** + * string price = 3; + * @return The price. + */ + String getPrice(); + /** + * string price = 3; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 4; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 4; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); + + /** + * string amount = 5; + * @return The amount. + */ + String getAmount(); + /** + * string amount = 5; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + * string avgPrice = 6; + * @return The avgPrice. + */ + String getAvgPrice(); + /** + * string avgPrice = 6; + * @return The bytes for avgPrice. + */ + com.google.protobuf.ByteString + getAvgPriceBytes(); + + /** + * int32 orderType = 7; + * @return The orderType. + */ + int getOrderType(); + + /** + * int32 tradeType = 8; + * @return The tradeType. + */ + int getTradeType(); + + /** + * bool isMaker = 9; + * @return The isMaker. + */ + boolean getIsMaker(); + + /** + * string remainAmount = 10; + * @return The remainAmount. + */ + String getRemainAmount(); + /** + * string remainAmount = 10; + * @return The bytes for remainAmount. + */ + com.google.protobuf.ByteString + getRemainAmountBytes(); + + /** + * string remainQuantity = 11; + * @return The remainQuantity. + */ + String getRemainQuantity(); + /** + * string remainQuantity = 11; + * @return The bytes for remainQuantity. + */ + com.google.protobuf.ByteString + getRemainQuantityBytes(); + + /** + * optional string lastDealQuantity = 12; + * @return Whether the lastDealQuantity field is set. + */ + boolean hasLastDealQuantity(); + /** + * optional string lastDealQuantity = 12; + * @return The lastDealQuantity. + */ + String getLastDealQuantity(); + /** + * optional string lastDealQuantity = 12; + * @return The bytes for lastDealQuantity. + */ + com.google.protobuf.ByteString + getLastDealQuantityBytes(); + + /** + * string cumulativeQuantity = 13; + * @return The cumulativeQuantity. + */ + String getCumulativeQuantity(); + /** + * string cumulativeQuantity = 13; + * @return The bytes for cumulativeQuantity. + */ + com.google.protobuf.ByteString + getCumulativeQuantityBytes(); + + /** + * string cumulativeAmount = 14; + * @return The cumulativeAmount. + */ + String getCumulativeAmount(); + /** + * string cumulativeAmount = 14; + * @return The bytes for cumulativeAmount. + */ + com.google.protobuf.ByteString + getCumulativeAmountBytes(); + + /** + * int32 status = 15; + * @return The status. + */ + int getStatus(); + + /** + * int64 createTime = 16; + * @return The createTime. + */ + long getCreateTime(); + + /** + * optional string market = 17; + * @return Whether the market field is set. + */ + boolean hasMarket(); + /** + * optional string market = 17; + * @return The market. + */ + String getMarket(); + /** + * optional string market = 17; + * @return The bytes for market. + */ + com.google.protobuf.ByteString + getMarketBytes(); + + /** + * optional int32 triggerType = 18; + * @return Whether the triggerType field is set. + */ + boolean hasTriggerType(); + /** + * optional int32 triggerType = 18; + * @return The triggerType. + */ + int getTriggerType(); + + /** + * optional string triggerPrice = 19; + * @return Whether the triggerPrice field is set. + */ + boolean hasTriggerPrice(); + /** + * optional string triggerPrice = 19; + * @return The triggerPrice. + */ + String getTriggerPrice(); + /** + * optional string triggerPrice = 19; + * @return The bytes for triggerPrice. + */ + com.google.protobuf.ByteString + getTriggerPriceBytes(); + + /** + * optional int32 state = 20; + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * optional int32 state = 20; + * @return The state. + */ + int getState(); + + /** + * optional string ocoId = 21; + * @return Whether the ocoId field is set. + */ + boolean hasOcoId(); + /** + * optional string ocoId = 21; + * @return The ocoId. + */ + String getOcoId(); + /** + * optional string ocoId = 21; + * @return The bytes for ocoId. + */ + com.google.protobuf.ByteString + getOcoIdBytes(); + + /** + * optional string routeFactor = 22; + * @return Whether the routeFactor field is set. + */ + boolean hasRouteFactor(); + /** + * optional string routeFactor = 22; + * @return The routeFactor. + */ + String getRouteFactor(); + /** + * optional string routeFactor = 22; + * @return The bytes for routeFactor. + */ + com.google.protobuf.ByteString + getRouteFactorBytes(); + + /** + * optional string symbolId = 23; + * @return Whether the symbolId field is set. + */ + boolean hasSymbolId(); + /** + * optional string symbolId = 23; + * @return The symbolId. + */ + String getSymbolId(); + /** + * optional string symbolId = 23; + * @return The bytes for symbolId. + */ + com.google.protobuf.ByteString + getSymbolIdBytes(); + + /** + * optional string marketId = 24; + * @return Whether the marketId field is set. + */ + boolean hasMarketId(); + /** + * optional string marketId = 24; + * @return The marketId. + */ + String getMarketId(); + /** + * optional string marketId = 24; + * @return The bytes for marketId. + */ + com.google.protobuf.ByteString + getMarketIdBytes(); + + /** + * optional string marketCurrencyId = 25; + * @return Whether the marketCurrencyId field is set. + */ + boolean hasMarketCurrencyId(); + /** + * optional string marketCurrencyId = 25; + * @return The marketCurrencyId. + */ + String getMarketCurrencyId(); + /** + * optional string marketCurrencyId = 25; + * @return The bytes for marketCurrencyId. + */ + com.google.protobuf.ByteString + getMarketCurrencyIdBytes(); + + /** + * optional string currencyId = 26; + * @return Whether the currencyId field is set. + */ + boolean hasCurrencyId(); + /** + * optional string currencyId = 26; + * @return The currencyId. + */ + String getCurrencyId(); + /** + * optional string currencyId = 26; + * @return The bytes for currencyId. + */ + com.google.protobuf.ByteString + getCurrencyIdBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3ApiProto.java new file mode 100644 index 00000000..a7ad311b --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PrivateOrdersV3ApiProto.java @@ -0,0 +1,79 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PrivateOrdersV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PrivateOrdersV3ApiProto { + private PrivateOrdersV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PrivateOrdersV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PrivateOrdersV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PrivateOrdersV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\030PrivateOrdersV3Api.proto\"\350\005\n\022PrivateOr" + + "dersV3Api\022\n\n\002id\030\001 \001(\t\022\020\n\010clientId\030\002 \001(\t\022" + + "\r\n\005price\030\003 \001(\t\022\020\n\010quantity\030\004 \001(\t\022\016\n\006amou" + + "nt\030\005 \001(\t\022\020\n\010avgPrice\030\006 \001(\t\022\021\n\torderType\030" + + "\007 \001(\005\022\021\n\ttradeType\030\010 \001(\005\022\017\n\007isMaker\030\t \001(" + + "\010\022\024\n\014remainAmount\030\n \001(\t\022\026\n\016remainQuantit" + + "y\030\013 \001(\t\022\035\n\020lastDealQuantity\030\014 \001(\tH\000\210\001\001\022\032" + + "\n\022cumulativeQuantity\030\r \001(\t\022\030\n\020cumulative" + + "Amount\030\016 \001(\t\022\016\n\006status\030\017 \001(\005\022\022\n\ncreateTi" + + "me\030\020 \001(\003\022\023\n\006market\030\021 \001(\tH\001\210\001\001\022\030\n\013trigger" + + "Type\030\022 \001(\005H\002\210\001\001\022\031\n\014triggerPrice\030\023 \001(\tH\003\210" + + "\001\001\022\022\n\005state\030\024 \001(\005H\004\210\001\001\022\022\n\005ocoId\030\025 \001(\tH\005\210" + + "\001\001\022\030\n\013routeFactor\030\026 \001(\tH\006\210\001\001\022\025\n\010symbolId" + + "\030\027 \001(\tH\007\210\001\001\022\025\n\010marketId\030\030 \001(\tH\010\210\001\001\022\035\n\020ma" + + "rketCurrencyId\030\031 \001(\tH\t\210\001\001\022\027\n\ncurrencyId\030" + + "\032 \001(\tH\n\210\001\001B\023\n\021_lastDealQuantityB\t\n\007_mark" + + "etB\016\n\014_triggerTypeB\017\n\r_triggerPriceB\010\n\006_" + + "stateB\010\n\006_ocoIdB\016\n\014_routeFactorB\013\n\t_symb" + + "olIdB\013\n\t_marketIdB\023\n\021_marketCurrencyIdB\r" + + "\n\013_currencyIdB;\n\034com.mxc.push.common.pro" + + "tobufB\027PrivateOrdersV3ApiProtoH\001P\001b\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PrivateOrdersV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PrivateOrdersV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PrivateOrdersV3Api_descriptor, + new String[] { "Id", "ClientId", "Price", "Quantity", "Amount", "AvgPrice", "OrderType", "TradeType", "IsMaker", "RemainAmount", "RemainQuantity", "LastDealQuantity", "CumulativeQuantity", "CumulativeAmount", "Status", "CreateTime", "Market", "TriggerType", "TriggerPrice", "State", "OcoId", "RouteFactor", "SymbolId", "MarketId", "MarketCurrencyId", "CurrencyId", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3Api.java new file mode 100644 index 00000000..f58d1d66 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3Api.java @@ -0,0 +1,909 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreBookTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicAggreBookTickerV3Api} + */ +public final class PublicAggreBookTickerV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicAggreBookTickerV3Api) + PublicAggreBookTickerV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreBookTickerV3Api.class.getName()); + } + // Use PublicAggreBookTickerV3Api.newBuilder() to construct. + private PublicAggreBookTickerV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicAggreBookTickerV3Api() { + bidPrice_ = ""; + bidQuantity_ = ""; + askPrice_ = ""; + askQuantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreBookTickerV3ApiProto.internal_static_PublicAggreBookTickerV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreBookTickerV3ApiProto.internal_static_PublicAggreBookTickerV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreBookTickerV3Api.class, Builder.class); + } + + public static final int BIDPRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object bidPrice_ = ""; + /** + * string bidPrice = 1; + * @return The bidPrice. + */ + @Override + public String getBidPrice() { + Object ref = bidPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidPrice_ = s; + return s; + } + } + /** + * string bidPrice = 1; + * @return The bytes for bidPrice. + */ + @Override + public com.google.protobuf.ByteString + getBidPriceBytes() { + Object ref = bidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIDQUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object bidQuantity_ = ""; + /** + * string bidQuantity = 2; + * @return The bidQuantity. + */ + @Override + public String getBidQuantity() { + Object ref = bidQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidQuantity_ = s; + return s; + } + } + /** + * string bidQuantity = 2; + * @return The bytes for bidQuantity. + */ + @Override + public com.google.protobuf.ByteString + getBidQuantityBytes() { + Object ref = bidQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASKPRICE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object askPrice_ = ""; + /** + * string askPrice = 3; + * @return The askPrice. + */ + @Override + public String getAskPrice() { + Object ref = askPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askPrice_ = s; + return s; + } + } + /** + * string askPrice = 3; + * @return The bytes for askPrice. + */ + @Override + public com.google.protobuf.ByteString + getAskPriceBytes() { + Object ref = askPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASKQUANTITY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object askQuantity_ = ""; + /** + * string askQuantity = 4; + * @return The askQuantity. + */ + @Override + public String getAskQuantity() { + Object ref = askQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askQuantity_ = s; + return s; + } + } + /** + * string askQuantity = 4; + * @return The bytes for askQuantity. + */ + @Override + public com.google.protobuf.ByteString + getAskQuantityBytes() { + Object ref = askQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bidPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidQuantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, bidQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, askPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askQuantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, askQuantity_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, bidPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidQuantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, bidQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, askPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askQuantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, askQuantity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicAggreBookTickerV3Api)) { + return super.equals(obj); + } + PublicAggreBookTickerV3Api other = (PublicAggreBookTickerV3Api) obj; + + if (!getBidPrice() + .equals(other.getBidPrice())) return false; + if (!getBidQuantity() + .equals(other.getBidQuantity())) return false; + if (!getAskPrice() + .equals(other.getAskPrice())) return false; + if (!getAskQuantity() + .equals(other.getAskQuantity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BIDPRICE_FIELD_NUMBER; + hash = (53 * hash) + getBidPrice().hashCode(); + hash = (37 * hash) + BIDQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getBidQuantity().hashCode(); + hash = (37 * hash) + ASKPRICE_FIELD_NUMBER; + hash = (53 * hash) + getAskPrice().hashCode(); + hash = (37 * hash) + ASKQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getAskQuantity().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicAggreBookTickerV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreBookTickerV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreBookTickerV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreBookTickerV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreBookTickerV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreBookTickerV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreBookTickerV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreBookTickerV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicAggreBookTickerV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicAggreBookTickerV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicAggreBookTickerV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreBookTickerV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicAggreBookTickerV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicAggreBookTickerV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicAggreBookTickerV3Api) + PublicAggreBookTickerV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreBookTickerV3ApiProto.internal_static_PublicAggreBookTickerV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreBookTickerV3ApiProto.internal_static_PublicAggreBookTickerV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreBookTickerV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicAggreBookTickerV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bidPrice_ = ""; + bidQuantity_ = ""; + askPrice_ = ""; + askQuantity_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicAggreBookTickerV3ApiProto.internal_static_PublicAggreBookTickerV3Api_descriptor; + } + + @Override + public PublicAggreBookTickerV3Api getDefaultInstanceForType() { + return PublicAggreBookTickerV3Api.getDefaultInstance(); + } + + @Override + public PublicAggreBookTickerV3Api build() { + PublicAggreBookTickerV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicAggreBookTickerV3Api buildPartial() { + PublicAggreBookTickerV3Api result = new PublicAggreBookTickerV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicAggreBookTickerV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bidPrice_ = bidPrice_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bidQuantity_ = bidQuantity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.askPrice_ = askPrice_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.askQuantity_ = askQuantity_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicAggreBookTickerV3Api) { + return mergeFrom((PublicAggreBookTickerV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicAggreBookTickerV3Api other) { + if (other == PublicAggreBookTickerV3Api.getDefaultInstance()) return this; + if (!other.getBidPrice().isEmpty()) { + bidPrice_ = other.bidPrice_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBidQuantity().isEmpty()) { + bidQuantity_ = other.bidQuantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAskPrice().isEmpty()) { + askPrice_ = other.askPrice_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAskQuantity().isEmpty()) { + askQuantity_ = other.askQuantity_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + bidPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bidQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + askPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + askQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 Object bidPrice_ = ""; + /** + * string bidPrice = 1; + * @return The bidPrice. + */ + public String getBidPrice() { + Object ref = bidPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string bidPrice = 1; + * @return The bytes for bidPrice. + */ + public com.google.protobuf.ByteString + getBidPriceBytes() { + Object ref = bidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string bidPrice = 1; + * @param value The bidPrice to set. + * @return This builder for chaining. + */ + public Builder setBidPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + bidPrice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string bidPrice = 1; + * @return This builder for chaining. + */ + public Builder clearBidPrice() { + bidPrice_ = getDefaultInstance().getBidPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string bidPrice = 1; + * @param value The bytes for bidPrice to set. + * @return This builder for chaining. + */ + public Builder setBidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bidPrice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object bidQuantity_ = ""; + /** + * string bidQuantity = 2; + * @return The bidQuantity. + */ + public String getBidQuantity() { + Object ref = bidQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string bidQuantity = 2; + * @return The bytes for bidQuantity. + */ + public com.google.protobuf.ByteString + getBidQuantityBytes() { + Object ref = bidQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string bidQuantity = 2; + * @param value The bidQuantity to set. + * @return This builder for chaining. + */ + public Builder setBidQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + bidQuantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string bidQuantity = 2; + * @return This builder for chaining. + */ + public Builder clearBidQuantity() { + bidQuantity_ = getDefaultInstance().getBidQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string bidQuantity = 2; + * @param value The bytes for bidQuantity to set. + * @return This builder for chaining. + */ + public Builder setBidQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bidQuantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private Object askPrice_ = ""; + /** + * string askPrice = 3; + * @return The askPrice. + */ + public String getAskPrice() { + Object ref = askPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string askPrice = 3; + * @return The bytes for askPrice. + */ + public com.google.protobuf.ByteString + getAskPriceBytes() { + Object ref = askPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string askPrice = 3; + * @param value The askPrice to set. + * @return This builder for chaining. + */ + public Builder setAskPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + askPrice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string askPrice = 3; + * @return This builder for chaining. + */ + public Builder clearAskPrice() { + askPrice_ = getDefaultInstance().getAskPrice(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string askPrice = 3; + * @param value The bytes for askPrice to set. + * @return This builder for chaining. + */ + public Builder setAskPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + askPrice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object askQuantity_ = ""; + /** + * string askQuantity = 4; + * @return The askQuantity. + */ + public String getAskQuantity() { + Object ref = askQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string askQuantity = 4; + * @return The bytes for askQuantity. + */ + public com.google.protobuf.ByteString + getAskQuantityBytes() { + Object ref = askQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string askQuantity = 4; + * @param value The askQuantity to set. + * @return This builder for chaining. + */ + public Builder setAskQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + askQuantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string askQuantity = 4; + * @return This builder for chaining. + */ + public Builder clearAskQuantity() { + askQuantity_ = getDefaultInstance().getAskQuantity(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string askQuantity = 4; + * @param value The bytes for askQuantity to set. + * @return This builder for chaining. + */ + public Builder setAskQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + askQuantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicAggreBookTickerV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicAggreBookTickerV3Api) + private static final PublicAggreBookTickerV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicAggreBookTickerV3Api(); + } + + public static PublicAggreBookTickerV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicAggreBookTickerV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicAggreBookTickerV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3ApiOrBuilder.java new file mode 100644 index 00000000..6693c719 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3ApiOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreBookTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicAggreBookTickerV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicAggreBookTickerV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * string bidPrice = 1; + * @return The bidPrice. + */ + String getBidPrice(); + /** + * string bidPrice = 1; + * @return The bytes for bidPrice. + */ + com.google.protobuf.ByteString + getBidPriceBytes(); + + /** + * string bidQuantity = 2; + * @return The bidQuantity. + */ + String getBidQuantity(); + /** + * string bidQuantity = 2; + * @return The bytes for bidQuantity. + */ + com.google.protobuf.ByteString + getBidQuantityBytes(); + + /** + * string askPrice = 3; + * @return The askPrice. + */ + String getAskPrice(); + /** + * string askPrice = 3; + * @return The bytes for askPrice. + */ + com.google.protobuf.ByteString + getAskPriceBytes(); + + /** + * string askQuantity = 4; + * @return The askQuantity. + */ + String getAskQuantity(); + /** + * string askQuantity = 4; + * @return The bytes for askQuantity. + */ + com.google.protobuf.ByteString + getAskQuantityBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3ApiProto.java new file mode 100644 index 00000000..4f4490ff --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreBookTickerV3ApiProto.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreBookTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicAggreBookTickerV3ApiProto { + private PublicAggreBookTickerV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreBookTickerV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicAggreBookTickerV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicAggreBookTickerV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n PublicAggreBookTickerV3Api.proto\"j\n\032Pu" + + "blicAggreBookTickerV3Api\022\020\n\010bidPrice\030\001 \001" + + "(\t\022\023\n\013bidQuantity\030\002 \001(\t\022\020\n\010askPrice\030\003 \001(" + + "\t\022\023\n\013askQuantity\030\004 \001(\tBC\n\034com.mxc.push.c" + + "ommon.protobufB\037PublicAggreBookTickerV3A" + + "piProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicAggreBookTickerV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicAggreBookTickerV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicAggreBookTickerV3Api_descriptor, + new String[] { "BidPrice", "BidQuantity", "AskPrice", "AskQuantity", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3Api.java new file mode 100644 index 00000000..ce26e640 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3Api.java @@ -0,0 +1,855 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicAggreDealsV3Api} + */ +public final class PublicAggreDealsV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicAggreDealsV3Api) + PublicAggreDealsV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreDealsV3Api.class.getName()); + } + // Use PublicAggreDealsV3Api.newBuilder() to construct. + private PublicAggreDealsV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicAggreDealsV3Api() { + deals_ = java.util.Collections.emptyList(); + eventType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDealsV3Api.class, Builder.class); + } + + public static final int DEALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List deals_; + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + @Override + public java.util.List getDealsList() { + return deals_; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + @Override + public java.util.List + getDealsOrBuilderList() { + return deals_; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + @Override + public int getDealsCount() { + return deals_.size(); + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + @Override + public PublicAggreDealsV3ApiItem getDeals(int index) { + return deals_.get(index); + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + @Override + public PublicAggreDealsV3ApiItemOrBuilder getDealsOrBuilder( + int index) { + return deals_.get(index); + } + + public static final int EVENTTYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object eventType_ = ""; + /** + * string eventType = 2; + * @return The eventType. + */ + @Override + public String getEventType() { + Object ref = eventType_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + @Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < deals_.size(); i++) { + output.writeMessage(1, deals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, eventType_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, deals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, eventType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicAggreDealsV3Api)) { + return super.equals(obj); + } + PublicAggreDealsV3Api other = (PublicAggreDealsV3Api) obj; + + if (!getDealsList() + .equals(other.getDealsList())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDealsCount() > 0) { + hash = (37 * hash) + DEALS_FIELD_NUMBER; + hash = (53 * hash) + getDealsList().hashCode(); + } + hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicAggreDealsV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDealsV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDealsV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDealsV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDealsV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDealsV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDealsV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDealsV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicAggreDealsV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicAggreDealsV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicAggreDealsV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDealsV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicAggreDealsV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicAggreDealsV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicAggreDealsV3Api) + PublicAggreDealsV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDealsV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicAggreDealsV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dealsBuilder_ == null) { + deals_ = java.util.Collections.emptyList(); + } else { + deals_ = null; + dealsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + eventType_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3Api_descriptor; + } + + @Override + public PublicAggreDealsV3Api getDefaultInstanceForType() { + return PublicAggreDealsV3Api.getDefaultInstance(); + } + + @Override + public PublicAggreDealsV3Api build() { + PublicAggreDealsV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicAggreDealsV3Api buildPartial() { + PublicAggreDealsV3Api result = new PublicAggreDealsV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicAggreDealsV3Api result) { + if (dealsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deals_ = java.util.Collections.unmodifiableList(deals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deals_ = deals_; + } else { + result.deals_ = dealsBuilder_.build(); + } + } + + private void buildPartial0(PublicAggreDealsV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventType_ = eventType_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicAggreDealsV3Api) { + return mergeFrom((PublicAggreDealsV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicAggreDealsV3Api other) { + if (other == PublicAggreDealsV3Api.getDefaultInstance()) return this; + if (dealsBuilder_ == null) { + if (!other.deals_.isEmpty()) { + if (deals_.isEmpty()) { + deals_ = other.deals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDealsIsMutable(); + deals_.addAll(other.deals_); + } + onChanged(); + } + } else { + if (!other.deals_.isEmpty()) { + if (dealsBuilder_.isEmpty()) { + dealsBuilder_.dispose(); + dealsBuilder_ = null; + deals_ = other.deals_; + bitField0_ = (bitField0_ & ~0x00000001); + dealsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDealsFieldBuilder() : null; + } else { + dealsBuilder_.addAllMessages(other.deals_); + } + } + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicAggreDealsV3ApiItem m = + input.readMessage( + PublicAggreDealsV3ApiItem.parser(), + extensionRegistry); + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.add(m); + } else { + dealsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 java.util.List deals_ = + java.util.Collections.emptyList(); + private void ensureDealsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deals_ = new java.util.ArrayList(deals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDealsV3ApiItem, PublicAggreDealsV3ApiItem.Builder, PublicAggreDealsV3ApiItemOrBuilder> dealsBuilder_; + + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public java.util.List getDealsList() { + if (dealsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deals_); + } else { + return dealsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public int getDealsCount() { + if (dealsBuilder_ == null) { + return deals_.size(); + } else { + return dealsBuilder_.getCount(); + } + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public PublicAggreDealsV3ApiItem getDeals(int index) { + if (dealsBuilder_ == null) { + return deals_.get(index); + } else { + return dealsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder setDeals( + int index, PublicAggreDealsV3ApiItem value) { + if (dealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDealsIsMutable(); + deals_.set(index, value); + onChanged(); + } else { + dealsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder setDeals( + int index, PublicAggreDealsV3ApiItem.Builder builderForValue) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.set(index, builderForValue.build()); + onChanged(); + } else { + dealsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder addDeals(PublicAggreDealsV3ApiItem value) { + if (dealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDealsIsMutable(); + deals_.add(value); + onChanged(); + } else { + dealsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder addDeals( + int index, PublicAggreDealsV3ApiItem value) { + if (dealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDealsIsMutable(); + deals_.add(index, value); + onChanged(); + } else { + dealsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder addDeals( + PublicAggreDealsV3ApiItem.Builder builderForValue) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.add(builderForValue.build()); + onChanged(); + } else { + dealsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder addDeals( + int index, PublicAggreDealsV3ApiItem.Builder builderForValue) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.add(index, builderForValue.build()); + onChanged(); + } else { + dealsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder addAllDeals( + Iterable values) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deals_); + onChanged(); + } else { + dealsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder clearDeals() { + if (dealsBuilder_ == null) { + deals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dealsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public Builder removeDeals(int index) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.remove(index); + onChanged(); + } else { + dealsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public PublicAggreDealsV3ApiItem.Builder getDealsBuilder( + int index) { + return getDealsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public PublicAggreDealsV3ApiItemOrBuilder getDealsOrBuilder( + int index) { + if (dealsBuilder_ == null) { + return deals_.get(index); } else { + return dealsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public java.util.List + getDealsOrBuilderList() { + if (dealsBuilder_ != null) { + return dealsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deals_); + } + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public PublicAggreDealsV3ApiItem.Builder addDealsBuilder() { + return getDealsFieldBuilder().addBuilder( + PublicAggreDealsV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public PublicAggreDealsV3ApiItem.Builder addDealsBuilder( + int index) { + return getDealsFieldBuilder().addBuilder( + index, PublicAggreDealsV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + public java.util.List + getDealsBuilderList() { + return getDealsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDealsV3ApiItem, PublicAggreDealsV3ApiItem.Builder, PublicAggreDealsV3ApiItemOrBuilder> + getDealsFieldBuilder() { + if (dealsBuilder_ == null) { + dealsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDealsV3ApiItem, PublicAggreDealsV3ApiItem.Builder, PublicAggreDealsV3ApiItemOrBuilder>( + deals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deals_ = null; + } + return dealsBuilder_; + } + + private Object eventType_ = ""; + /** + * string eventType = 2; + * @return The eventType. + */ + public String getEventType() { + Object ref = eventType_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventType = 2; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + String value) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string eventType = 2; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string eventType = 2; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicAggreDealsV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicAggreDealsV3Api) + private static final PublicAggreDealsV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicAggreDealsV3Api(); + } + + public static PublicAggreDealsV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicAggreDealsV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicAggreDealsV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiItem.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiItem.java new file mode 100644 index 00000000..b2f1874b --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiItem.java @@ -0,0 +1,770 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicAggreDealsV3ApiItem} + */ +public final class PublicAggreDealsV3ApiItem extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicAggreDealsV3ApiItem) + PublicAggreDealsV3ApiItemOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreDealsV3ApiItem.class.getName()); + } + // Use PublicAggreDealsV3ApiItem.newBuilder() to construct. + private PublicAggreDealsV3ApiItem(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicAggreDealsV3ApiItem() { + price_ = ""; + quantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDealsV3ApiItem.class, Builder.class); + } + + public static final int PRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRADETYPE_FIELD_NUMBER = 3; + private int tradeType_ = 0; + /** + * int32 tradeType = 3; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + + public static final int TIME_FIELD_NUMBER = 4; + private long time_ = 0L; + /** + * int64 time = 4; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, quantity_); + } + if (tradeType_ != 0) { + output.writeInt32(3, tradeType_); + } + if (time_ != 0L) { + output.writeInt64(4, time_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, quantity_); + } + if (tradeType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, tradeType_); + } + if (time_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, time_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicAggreDealsV3ApiItem)) { + return super.equals(obj); + } + PublicAggreDealsV3ApiItem other = (PublicAggreDealsV3ApiItem) obj; + + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (getTradeType() + != other.getTradeType()) return false; + if (getTime() + != other.getTime()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (37 * hash) + TRADETYPE_FIELD_NUMBER; + hash = (53 * hash) + getTradeType(); + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTime()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicAggreDealsV3ApiItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDealsV3ApiItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDealsV3ApiItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDealsV3ApiItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDealsV3ApiItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDealsV3ApiItem parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDealsV3ApiItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDealsV3ApiItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicAggreDealsV3ApiItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicAggreDealsV3ApiItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicAggreDealsV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDealsV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicAggreDealsV3ApiItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicAggreDealsV3ApiItem} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicAggreDealsV3ApiItem) + PublicAggreDealsV3ApiItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDealsV3ApiItem.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicAggreDealsV3ApiItem.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + price_ = ""; + quantity_ = ""; + tradeType_ = 0; + time_ = 0L; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicAggreDealsV3ApiProto.internal_static_PublicAggreDealsV3ApiItem_descriptor; + } + + @Override + public PublicAggreDealsV3ApiItem getDefaultInstanceForType() { + return PublicAggreDealsV3ApiItem.getDefaultInstance(); + } + + @Override + public PublicAggreDealsV3ApiItem build() { + PublicAggreDealsV3ApiItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicAggreDealsV3ApiItem buildPartial() { + PublicAggreDealsV3ApiItem result = new PublicAggreDealsV3ApiItem(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicAggreDealsV3ApiItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tradeType_ = tradeType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.time_ = time_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicAggreDealsV3ApiItem) { + return mergeFrom((PublicAggreDealsV3ApiItem)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicAggreDealsV3ApiItem other) { + if (other == PublicAggreDealsV3ApiItem.getDefaultInstance()) return this; + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTradeType() != 0) { + setTradeType(other.getTradeType()); + } + if (other.getTime() != 0L) { + setTime(other.getTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + tradeType_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + time_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 1; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string price = 1; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string price = 1; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 2; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string quantity = 2; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string quantity = 2; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int tradeType_ ; + /** + * int32 tradeType = 3; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + /** + * int32 tradeType = 3; + * @param value The tradeType to set. + * @return This builder for chaining. + */ + public Builder setTradeType(int value) { + + tradeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int32 tradeType = 3; + * @return This builder for chaining. + */ + public Builder clearTradeType() { + bitField0_ = (bitField0_ & ~0x00000004); + tradeType_ = 0; + onChanged(); + return this; + } + + private long time_ ; + /** + * int64 time = 4; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + /** + * int64 time = 4; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(long value) { + + time_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 time = 4; + * @return This builder for chaining. + */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000008); + time_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicAggreDealsV3ApiItem) + } + + // @@protoc_insertion_point(class_scope:PublicAggreDealsV3ApiItem) + private static final PublicAggreDealsV3ApiItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicAggreDealsV3ApiItem(); + } + + public static PublicAggreDealsV3ApiItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicAggreDealsV3ApiItem 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicAggreDealsV3ApiItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiItemOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiItemOrBuilder.java new file mode 100644 index 00000000..f09c758e --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiItemOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicAggreDealsV3ApiItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicAggreDealsV3ApiItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string price = 1; + * @return The price. + */ + String getPrice(); + /** + * string price = 1; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 2; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); + + /** + * int32 tradeType = 3; + * @return The tradeType. + */ + int getTradeType(); + + /** + * int64 time = 4; + * @return The time. + */ + long getTime(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiOrBuilder.java new file mode 100644 index 00000000..873e49c2 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicAggreDealsV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicAggreDealsV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + java.util.List + getDealsList(); + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + PublicAggreDealsV3ApiItem getDeals(int index); + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + int getDealsCount(); + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + java.util.List + getDealsOrBuilderList(); + /** + * repeated .PublicAggreDealsV3ApiItem deals = 1; + */ + PublicAggreDealsV3ApiItemOrBuilder getDealsOrBuilder( + int index); + + /** + * string eventType = 2; + * @return The eventType. + */ + String getEventType(); + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiProto.java new file mode 100644 index 00000000..dd49e428 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDealsV3ApiProto.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicAggreDealsV3ApiProto { + private PublicAggreDealsV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreDealsV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicAggreDealsV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicAggreDealsV3Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicAggreDealsV3ApiItem_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicAggreDealsV3ApiItem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\033PublicAggreDealsV3Api.proto\"U\n\025PublicA" + + "ggreDealsV3Api\022)\n\005deals\030\001 \003(\0132\032.PublicAg" + + "greDealsV3ApiItem\022\021\n\teventType\030\002 \001(\t\"]\n\031" + + "PublicAggreDealsV3ApiItem\022\r\n\005price\030\001 \001(\t" + + "\022\020\n\010quantity\030\002 \001(\t\022\021\n\ttradeType\030\003 \001(\005\022\014\n" + + "\004time\030\004 \001(\003B>\n\034com.mxc.push.common.proto" + + "bufB\032PublicAggreDealsV3ApiProtoH\001P\001b\006pro" + + "to3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicAggreDealsV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicAggreDealsV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicAggreDealsV3Api_descriptor, + new String[] { "Deals", "EventType", }); + internal_static_PublicAggreDealsV3ApiItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_PublicAggreDealsV3ApiItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicAggreDealsV3ApiItem_descriptor, + new String[] { "Price", "Quantity", "TradeType", "Time", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthV3ApiItem.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthV3ApiItem.java new file mode 100644 index 00000000..f8f72c0c --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthV3ApiItem.java @@ -0,0 +1,637 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicAggreDepthV3ApiItem} + */ +public final class PublicAggreDepthV3ApiItem extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicAggreDepthV3ApiItem) + PublicAggreDepthV3ApiItemOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreDepthV3ApiItem.class.getName()); + } + // Use PublicAggreDepthV3ApiItem.newBuilder() to construct. + private PublicAggreDepthV3ApiItem(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicAggreDepthV3ApiItem() { + price_ = ""; + quantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDepthV3ApiItem.class, Builder.class); + } + + public static final int PRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, quantity_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, quantity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicAggreDepthV3ApiItem)) { + return super.equals(obj); + } + PublicAggreDepthV3ApiItem other = (PublicAggreDepthV3ApiItem) obj; + + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicAggreDepthV3ApiItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDepthV3ApiItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDepthV3ApiItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDepthV3ApiItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDepthV3ApiItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDepthV3ApiItem parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDepthV3ApiItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDepthV3ApiItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicAggreDepthV3ApiItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicAggreDepthV3ApiItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicAggreDepthV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDepthV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicAggreDepthV3ApiItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicAggreDepthV3ApiItem} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicAggreDepthV3ApiItem) + PublicAggreDepthV3ApiItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDepthV3ApiItem.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicAggreDepthV3ApiItem.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + price_ = ""; + quantity_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthV3ApiItem_descriptor; + } + + @Override + public PublicAggreDepthV3ApiItem getDefaultInstanceForType() { + return PublicAggreDepthV3ApiItem.getDefaultInstance(); + } + + @Override + public PublicAggreDepthV3ApiItem build() { + PublicAggreDepthV3ApiItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicAggreDepthV3ApiItem buildPartial() { + PublicAggreDepthV3ApiItem result = new PublicAggreDepthV3ApiItem(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicAggreDepthV3ApiItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicAggreDepthV3ApiItem) { + return mergeFrom((PublicAggreDepthV3ApiItem)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicAggreDepthV3ApiItem other) { + if (other == PublicAggreDepthV3ApiItem.getDefaultInstance()) return this; + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 1; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string price = 1; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string price = 1; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 2; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string quantity = 2; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string quantity = 2; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicAggreDepthV3ApiItem) + } + + // @@protoc_insertion_point(class_scope:PublicAggreDepthV3ApiItem) + private static final PublicAggreDepthV3ApiItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicAggreDepthV3ApiItem(); + } + + public static PublicAggreDepthV3ApiItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicAggreDepthV3ApiItem 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicAggreDepthV3ApiItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthV3ApiItemOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthV3ApiItemOrBuilder.java new file mode 100644 index 00000000..cdaa88e7 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthV3ApiItemOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicAggreDepthV3ApiItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicAggreDepthV3ApiItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string price = 1; + * @return The price. + */ + String getPrice(); + /** + * string price = 1; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 2; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3Api.java new file mode 100644 index 00000000..998bc222 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3Api.java @@ -0,0 +1,1477 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicAggreDepthsV3Api} + */ +public final class PublicAggreDepthsV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicAggreDepthsV3Api) + PublicAggreDepthsV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreDepthsV3Api.class.getName()); + } + // Use PublicAggreDepthsV3Api.newBuilder() to construct. + private PublicAggreDepthsV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicAggreDepthsV3Api() { + asks_ = java.util.Collections.emptyList(); + bids_ = java.util.Collections.emptyList(); + eventType_ = ""; + fromVersion_ = ""; + toVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDepthsV3Api.class, Builder.class); + } + + public static final int ASKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List asks_; + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + @Override + public java.util.List getAsksList() { + return asks_; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + @Override + public java.util.List + getAsksOrBuilderList() { + return asks_; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + @Override + public int getAsksCount() { + return asks_.size(); + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + @Override + public PublicAggreDepthV3ApiItem getAsks(int index) { + return asks_.get(index); + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + @Override + public PublicAggreDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index) { + return asks_.get(index); + } + + public static final int BIDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List bids_; + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + @Override + public java.util.List getBidsList() { + return bids_; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + @Override + public java.util.List + getBidsOrBuilderList() { + return bids_; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + @Override + public int getBidsCount() { + return bids_.size(); + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + @Override + public PublicAggreDepthV3ApiItem getBids(int index) { + return bids_.get(index); + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + @Override + public PublicAggreDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index) { + return bids_.get(index); + } + + public static final int EVENTTYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object eventType_ = ""; + /** + * string eventType = 3; + * @return The eventType. + */ + @Override + public String getEventType() { + Object ref = eventType_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + @Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FROMVERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object fromVersion_ = ""; + /** + * string fromVersion = 4; + * @return The fromVersion. + */ + @Override + public String getFromVersion() { + Object ref = fromVersion_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + fromVersion_ = s; + return s; + } + } + /** + * string fromVersion = 4; + * @return The bytes for fromVersion. + */ + @Override + public com.google.protobuf.ByteString + getFromVersionBytes() { + Object ref = fromVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + fromVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOVERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile Object toVersion_ = ""; + /** + * string toVersion = 5; + * @return The toVersion. + */ + @Override + public String getToVersion() { + Object ref = toVersion_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + toVersion_ = s; + return s; + } + } + /** + * string toVersion = 5; + * @return The bytes for toVersion. + */ + @Override + public com.google.protobuf.ByteString + getToVersionBytes() { + Object ref = toVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + toVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < asks_.size(); i++) { + output.writeMessage(1, asks_.get(i)); + } + for (int i = 0; i < bids_.size(); i++) { + output.writeMessage(2, bids_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, eventType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fromVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, fromVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, toVersion_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < asks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, asks_.get(i)); + } + for (int i = 0; i < bids_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, bids_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, eventType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fromVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, fromVersion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, toVersion_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicAggreDepthsV3Api)) { + return super.equals(obj); + } + PublicAggreDepthsV3Api other = (PublicAggreDepthsV3Api) obj; + + if (!getAsksList() + .equals(other.getAsksList())) return false; + if (!getBidsList() + .equals(other.getBidsList())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getFromVersion() + .equals(other.getFromVersion())) return false; + if (!getToVersion() + .equals(other.getToVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAsksCount() > 0) { + hash = (37 * hash) + ASKS_FIELD_NUMBER; + hash = (53 * hash) + getAsksList().hashCode(); + } + if (getBidsCount() > 0) { + hash = (37 * hash) + BIDS_FIELD_NUMBER; + hash = (53 * hash) + getBidsList().hashCode(); + } + hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (37 * hash) + FROMVERSION_FIELD_NUMBER; + hash = (53 * hash) + getFromVersion().hashCode(); + hash = (37 * hash) + TOVERSION_FIELD_NUMBER; + hash = (53 * hash) + getToVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicAggreDepthsV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDepthsV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDepthsV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDepthsV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDepthsV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicAggreDepthsV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicAggreDepthsV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDepthsV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicAggreDepthsV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicAggreDepthsV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicAggreDepthsV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicAggreDepthsV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicAggreDepthsV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicAggreDepthsV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicAggreDepthsV3Api) + PublicAggreDepthsV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicAggreDepthsV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicAggreDepthsV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (asksBuilder_ == null) { + asks_ = java.util.Collections.emptyList(); + } else { + asks_ = null; + asksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (bidsBuilder_ == null) { + bids_ = java.util.Collections.emptyList(); + } else { + bids_ = null; + bidsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + eventType_ = ""; + fromVersion_ = ""; + toVersion_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicAggreDepthsV3ApiProto.internal_static_PublicAggreDepthsV3Api_descriptor; + } + + @Override + public PublicAggreDepthsV3Api getDefaultInstanceForType() { + return PublicAggreDepthsV3Api.getDefaultInstance(); + } + + @Override + public PublicAggreDepthsV3Api build() { + PublicAggreDepthsV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicAggreDepthsV3Api buildPartial() { + PublicAggreDepthsV3Api result = new PublicAggreDepthsV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicAggreDepthsV3Api result) { + if (asksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + asks_ = java.util.Collections.unmodifiableList(asks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.asks_ = asks_; + } else { + result.asks_ = asksBuilder_.build(); + } + if (bidsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + bids_ = java.util.Collections.unmodifiableList(bids_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bids_ = bids_; + } else { + result.bids_ = bidsBuilder_.build(); + } + } + + private void buildPartial0(PublicAggreDepthsV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventType_ = eventType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.fromVersion_ = fromVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toVersion_ = toVersion_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicAggreDepthsV3Api) { + return mergeFrom((PublicAggreDepthsV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicAggreDepthsV3Api other) { + if (other == PublicAggreDepthsV3Api.getDefaultInstance()) return this; + if (asksBuilder_ == null) { + if (!other.asks_.isEmpty()) { + if (asks_.isEmpty()) { + asks_ = other.asks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAsksIsMutable(); + asks_.addAll(other.asks_); + } + onChanged(); + } + } else { + if (!other.asks_.isEmpty()) { + if (asksBuilder_.isEmpty()) { + asksBuilder_.dispose(); + asksBuilder_ = null; + asks_ = other.asks_; + bitField0_ = (bitField0_ & ~0x00000001); + asksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAsksFieldBuilder() : null; + } else { + asksBuilder_.addAllMessages(other.asks_); + } + } + } + if (bidsBuilder_ == null) { + if (!other.bids_.isEmpty()) { + if (bids_.isEmpty()) { + bids_ = other.bids_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBidsIsMutable(); + bids_.addAll(other.bids_); + } + onChanged(); + } + } else { + if (!other.bids_.isEmpty()) { + if (bidsBuilder_.isEmpty()) { + bidsBuilder_.dispose(); + bidsBuilder_ = null; + bids_ = other.bids_; + bitField0_ = (bitField0_ & ~0x00000002); + bidsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBidsFieldBuilder() : null; + } else { + bidsBuilder_.addAllMessages(other.bids_); + } + } + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFromVersion().isEmpty()) { + fromVersion_ = other.fromVersion_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getToVersion().isEmpty()) { + toVersion_ = other.toVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicAggreDepthV3ApiItem m = + input.readMessage( + PublicAggreDepthV3ApiItem.parser(), + extensionRegistry); + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(m); + } else { + asksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + PublicAggreDepthV3ApiItem m = + input.readMessage( + PublicAggreDepthV3ApiItem.parser(), + extensionRegistry); + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(m); + } else { + bidsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + fromVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + toVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 java.util.List asks_ = + java.util.Collections.emptyList(); + private void ensureAsksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + asks_ = new java.util.ArrayList(asks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDepthV3ApiItem, PublicAggreDepthV3ApiItem.Builder, PublicAggreDepthV3ApiItemOrBuilder> asksBuilder_; + + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public java.util.List getAsksList() { + if (asksBuilder_ == null) { + return java.util.Collections.unmodifiableList(asks_); + } else { + return asksBuilder_.getMessageList(); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public int getAsksCount() { + if (asksBuilder_ == null) { + return asks_.size(); + } else { + return asksBuilder_.getCount(); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public PublicAggreDepthV3ApiItem getAsks(int index) { + if (asksBuilder_ == null) { + return asks_.get(index); + } else { + return asksBuilder_.getMessage(index); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder setAsks( + int index, PublicAggreDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.set(index, value); + onChanged(); + } else { + asksBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder setAsks( + int index, PublicAggreDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.set(index, builderForValue.build()); + onChanged(); + } else { + asksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder addAsks(PublicAggreDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.add(value); + onChanged(); + } else { + asksBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + int index, PublicAggreDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.add(index, value); + onChanged(); + } else { + asksBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + PublicAggreDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(builderForValue.build()); + onChanged(); + } else { + asksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + int index, PublicAggreDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(index, builderForValue.build()); + onChanged(); + } else { + asksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder addAllAsks( + Iterable values) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, asks_); + onChanged(); + } else { + asksBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder clearAsks() { + if (asksBuilder_ == null) { + asks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + asksBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public Builder removeAsks(int index) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.remove(index); + onChanged(); + } else { + asksBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public PublicAggreDepthV3ApiItem.Builder getAsksBuilder( + int index) { + return getAsksFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public PublicAggreDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index) { + if (asksBuilder_ == null) { + return asks_.get(index); } else { + return asksBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public java.util.List + getAsksOrBuilderList() { + if (asksBuilder_ != null) { + return asksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(asks_); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public PublicAggreDepthV3ApiItem.Builder addAsksBuilder() { + return getAsksFieldBuilder().addBuilder( + PublicAggreDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public PublicAggreDepthV3ApiItem.Builder addAsksBuilder( + int index) { + return getAsksFieldBuilder().addBuilder( + index, PublicAggreDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + public java.util.List + getAsksBuilderList() { + return getAsksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDepthV3ApiItem, PublicAggreDepthV3ApiItem.Builder, PublicAggreDepthV3ApiItemOrBuilder> + getAsksFieldBuilder() { + if (asksBuilder_ == null) { + asksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDepthV3ApiItem, PublicAggreDepthV3ApiItem.Builder, PublicAggreDepthV3ApiItemOrBuilder>( + asks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + asks_ = null; + } + return asksBuilder_; + } + + private java.util.List bids_ = + java.util.Collections.emptyList(); + private void ensureBidsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bids_ = new java.util.ArrayList(bids_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDepthV3ApiItem, PublicAggreDepthV3ApiItem.Builder, PublicAggreDepthV3ApiItemOrBuilder> bidsBuilder_; + + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public java.util.List getBidsList() { + if (bidsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bids_); + } else { + return bidsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public int getBidsCount() { + if (bidsBuilder_ == null) { + return bids_.size(); + } else { + return bidsBuilder_.getCount(); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public PublicAggreDepthV3ApiItem getBids(int index) { + if (bidsBuilder_ == null) { + return bids_.get(index); + } else { + return bidsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder setBids( + int index, PublicAggreDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.set(index, value); + onChanged(); + } else { + bidsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder setBids( + int index, PublicAggreDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.set(index, builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder addBids(PublicAggreDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.add(value); + onChanged(); + } else { + bidsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder addBids( + int index, PublicAggreDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.add(index, value); + onChanged(); + } else { + bidsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder addBids( + PublicAggreDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder addBids( + int index, PublicAggreDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(index, builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder addAllBids( + Iterable values) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bids_); + onChanged(); + } else { + bidsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder clearBids() { + if (bidsBuilder_ == null) { + bids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bidsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public Builder removeBids(int index) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.remove(index); + onChanged(); + } else { + bidsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public PublicAggreDepthV3ApiItem.Builder getBidsBuilder( + int index) { + return getBidsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public PublicAggreDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index) { + if (bidsBuilder_ == null) { + return bids_.get(index); } else { + return bidsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public java.util.List + getBidsOrBuilderList() { + if (bidsBuilder_ != null) { + return bidsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bids_); + } + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public PublicAggreDepthV3ApiItem.Builder addBidsBuilder() { + return getBidsFieldBuilder().addBuilder( + PublicAggreDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public PublicAggreDepthV3ApiItem.Builder addBidsBuilder( + int index) { + return getBidsFieldBuilder().addBuilder( + index, PublicAggreDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + public java.util.List + getBidsBuilderList() { + return getBidsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDepthV3ApiItem, PublicAggreDepthV3ApiItem.Builder, PublicAggreDepthV3ApiItemOrBuilder> + getBidsFieldBuilder() { + if (bidsBuilder_ == null) { + bidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicAggreDepthV3ApiItem, PublicAggreDepthV3ApiItem.Builder, PublicAggreDepthV3ApiItemOrBuilder>( + bids_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + bids_ = null; + } + return bidsBuilder_; + } + + private Object eventType_ = ""; + /** + * string eventType = 3; + * @return The eventType. + */ + public String getEventType() { + Object ref = eventType_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventType = 3; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + String value) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string eventType = 3; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string eventType = 3; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object fromVersion_ = ""; + /** + * string fromVersion = 4; + * @return The fromVersion. + */ + public String getFromVersion() { + Object ref = fromVersion_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + fromVersion_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string fromVersion = 4; + * @return The bytes for fromVersion. + */ + public com.google.protobuf.ByteString + getFromVersionBytes() { + Object ref = fromVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + fromVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string fromVersion = 4; + * @param value The fromVersion to set. + * @return This builder for chaining. + */ + public Builder setFromVersion( + String value) { + if (value == null) { throw new NullPointerException(); } + fromVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string fromVersion = 4; + * @return This builder for chaining. + */ + public Builder clearFromVersion() { + fromVersion_ = getDefaultInstance().getFromVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string fromVersion = 4; + * @param value The bytes for fromVersion to set. + * @return This builder for chaining. + */ + public Builder setFromVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fromVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private Object toVersion_ = ""; + /** + * string toVersion = 5; + * @return The toVersion. + */ + public String getToVersion() { + Object ref = toVersion_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + toVersion_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string toVersion = 5; + * @return The bytes for toVersion. + */ + public com.google.protobuf.ByteString + getToVersionBytes() { + Object ref = toVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + toVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string toVersion = 5; + * @param value The toVersion to set. + * @return This builder for chaining. + */ + public Builder setToVersion( + String value) { + if (value == null) { throw new NullPointerException(); } + toVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string toVersion = 5; + * @return This builder for chaining. + */ + public Builder clearToVersion() { + toVersion_ = getDefaultInstance().getToVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string toVersion = 5; + * @param value The bytes for toVersion to set. + * @return This builder for chaining. + */ + public Builder setToVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + toVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicAggreDepthsV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicAggreDepthsV3Api) + private static final PublicAggreDepthsV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicAggreDepthsV3Api(); + } + + public static PublicAggreDepthsV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicAggreDepthsV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicAggreDepthsV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3ApiOrBuilder.java new file mode 100644 index 00000000..48f2ebee --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3ApiOrBuilder.java @@ -0,0 +1,95 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicAggreDepthsV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicAggreDepthsV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + java.util.List + getAsksList(); + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + PublicAggreDepthV3ApiItem getAsks(int index); + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + int getAsksCount(); + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + java.util.List + getAsksOrBuilderList(); + /** + * repeated .PublicAggreDepthV3ApiItem asks = 1; + */ + PublicAggreDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index); + + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + java.util.List + getBidsList(); + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + PublicAggreDepthV3ApiItem getBids(int index); + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + int getBidsCount(); + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + java.util.List + getBidsOrBuilderList(); + /** + * repeated .PublicAggreDepthV3ApiItem bids = 2; + */ + PublicAggreDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index); + + /** + * string eventType = 3; + * @return The eventType. + */ + String getEventType(); + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); + + /** + * string fromVersion = 4; + * @return The fromVersion. + */ + String getFromVersion(); + /** + * string fromVersion = 4; + * @return The bytes for fromVersion. + */ + com.google.protobuf.ByteString + getFromVersionBytes(); + + /** + * string toVersion = 5; + * @return The toVersion. + */ + String getToVersion(); + /** + * string toVersion = 5; + * @return The bytes for toVersion. + */ + com.google.protobuf.ByteString + getToVersionBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3ApiProto.java new file mode 100644 index 00000000..16a5181c --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicAggreDepthsV3ApiProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicAggreDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicAggreDepthsV3ApiProto { + private PublicAggreDepthsV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicAggreDepthsV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicAggreDepthsV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicAggreDepthsV3Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicAggreDepthV3ApiItem_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicAggreDepthV3ApiItem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\034PublicAggreDepthsV3Api.proto\"\247\001\n\026Publi" + + "cAggreDepthsV3Api\022(\n\004asks\030\001 \003(\0132\032.Public" + + "AggreDepthV3ApiItem\022(\n\004bids\030\002 \003(\0132\032.Publ" + + "icAggreDepthV3ApiItem\022\021\n\teventType\030\003 \001(\t" + + "\022\023\n\013fromVersion\030\004 \001(\t\022\021\n\ttoVersion\030\005 \001(\t" + + "\"<\n\031PublicAggreDepthV3ApiItem\022\r\n\005price\030\001" + + " \001(\t\022\020\n\010quantity\030\002 \001(\tB?\n\034com.mxc.push.c" + + "ommon.protobufB\033PublicAggreDepthsV3ApiPr" + + "otoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicAggreDepthsV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicAggreDepthsV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicAggreDepthsV3Api_descriptor, + new String[] { "Asks", "Bids", "EventType", "FromVersion", "ToVersion", }); + internal_static_PublicAggreDepthV3ApiItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_PublicAggreDepthV3ApiItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicAggreDepthV3ApiItem_descriptor, + new String[] { "Price", "Quantity", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3Api.java new file mode 100644 index 00000000..4055e8d4 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3Api.java @@ -0,0 +1,719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicBookTickerBatchV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicBookTickerBatchV3Api} + */ +public final class PublicBookTickerBatchV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicBookTickerBatchV3Api) + PublicBookTickerBatchV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicBookTickerBatchV3Api.class.getName()); + } + // Use PublicBookTickerBatchV3Api.newBuilder() to construct. + private PublicBookTickerBatchV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicBookTickerBatchV3Api() { + items_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicBookTickerBatchV3ApiProto.internal_static_PublicBookTickerBatchV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicBookTickerBatchV3ApiProto.internal_static_PublicBookTickerBatchV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicBookTickerBatchV3Api.class, Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List items_; + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + @Override + public java.util.List getItemsList() { + return items_; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + @Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + @Override + public int getItemsCount() { + return items_.size(); + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + @Override + public PublicBookTickerV3Api getItems(int index) { + return items_.get(index); + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + @Override + public PublicBookTickerV3ApiOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, items_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicBookTickerBatchV3Api)) { + return super.equals(obj); + } + PublicBookTickerBatchV3Api other = (PublicBookTickerBatchV3Api) obj; + + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicBookTickerBatchV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicBookTickerBatchV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicBookTickerBatchV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicBookTickerBatchV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicBookTickerBatchV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicBookTickerBatchV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicBookTickerBatchV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicBookTickerBatchV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicBookTickerBatchV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicBookTickerBatchV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicBookTickerBatchV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicBookTickerBatchV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicBookTickerBatchV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicBookTickerBatchV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicBookTickerBatchV3Api) + PublicBookTickerBatchV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicBookTickerBatchV3ApiProto.internal_static_PublicBookTickerBatchV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicBookTickerBatchV3ApiProto.internal_static_PublicBookTickerBatchV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicBookTickerBatchV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicBookTickerBatchV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicBookTickerBatchV3ApiProto.internal_static_PublicBookTickerBatchV3Api_descriptor; + } + + @Override + public PublicBookTickerBatchV3Api getDefaultInstanceForType() { + return PublicBookTickerBatchV3Api.getDefaultInstance(); + } + + @Override + public PublicBookTickerBatchV3Api build() { + PublicBookTickerBatchV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicBookTickerBatchV3Api buildPartial() { + PublicBookTickerBatchV3Api result = new PublicBookTickerBatchV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicBookTickerBatchV3Api result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(PublicBookTickerBatchV3Api result) { + int from_bitField0_ = bitField0_; + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicBookTickerBatchV3Api) { + return mergeFrom((PublicBookTickerBatchV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicBookTickerBatchV3Api other) { + if (other == PublicBookTickerBatchV3Api.getDefaultInstance()) return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicBookTickerV3Api m = + input.readMessage( + PublicBookTickerV3Api.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 10 + 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 java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicBookTickerV3Api, PublicBookTickerV3Api.Builder, PublicBookTickerV3ApiOrBuilder> itemsBuilder_; + + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public PublicBookTickerV3Api getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder setItems( + int index, PublicBookTickerV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder setItems( + int index, PublicBookTickerV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder addItems(PublicBookTickerV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder addItems( + int index, PublicBookTickerV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder addItems( + PublicBookTickerV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder addItems( + int index, PublicBookTickerV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder addAllItems( + Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public PublicBookTickerV3Api.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public PublicBookTickerV3ApiOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public PublicBookTickerV3Api.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + PublicBookTickerV3Api.getDefaultInstance()); + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public PublicBookTickerV3Api.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, PublicBookTickerV3Api.getDefaultInstance()); + } + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicBookTickerV3Api, PublicBookTickerV3Api.Builder, PublicBookTickerV3ApiOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicBookTickerV3Api, PublicBookTickerV3Api.Builder, PublicBookTickerV3ApiOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:PublicBookTickerBatchV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicBookTickerBatchV3Api) + private static final PublicBookTickerBatchV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicBookTickerBatchV3Api(); + } + + public static PublicBookTickerBatchV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicBookTickerBatchV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicBookTickerBatchV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3ApiOrBuilder.java new file mode 100644 index 00000000..b8be07f3 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3ApiOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicBookTickerBatchV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicBookTickerBatchV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicBookTickerBatchV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + java.util.List + getItemsList(); + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + PublicBookTickerV3Api getItems(int index); + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + int getItemsCount(); + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .PublicBookTickerV3Api items = 1; + */ + PublicBookTickerV3ApiOrBuilder getItemsOrBuilder( + int index); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3ApiProto.java new file mode 100644 index 00000000..3c214956 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerBatchV3ApiProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicBookTickerBatchV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicBookTickerBatchV3ApiProto { + private PublicBookTickerBatchV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicBookTickerBatchV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicBookTickerBatchV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicBookTickerBatchV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n PublicBookTickerBatchV3Api.proto\032\033Publ" + + "icBookTickerV3Api.proto\"C\n\032PublicBookTic" + + "kerBatchV3Api\022%\n\005items\030\001 \003(\0132\026.PublicBoo" + + "kTickerV3ApiBC\n\034com.mxc.push.common.prot" + + "obufB\037PublicBookTickerBatchV3ApiProtoH\001P" + + "\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + PublicBookTickerV3ApiProto.getDescriptor(), + }); + internal_static_PublicBookTickerBatchV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicBookTickerBatchV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicBookTickerBatchV3Api_descriptor, + new String[] { "Items", }); + descriptor.resolveAllFeaturesImmutable(); + PublicBookTickerV3ApiProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3Api.java new file mode 100644 index 00000000..7fb1df7f --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3Api.java @@ -0,0 +1,909 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicBookTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicBookTickerV3Api} + */ +public final class PublicBookTickerV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicBookTickerV3Api) + PublicBookTickerV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicBookTickerV3Api.class.getName()); + } + // Use PublicBookTickerV3Api.newBuilder() to construct. + private PublicBookTickerV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicBookTickerV3Api() { + bidPrice_ = ""; + bidQuantity_ = ""; + askPrice_ = ""; + askQuantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicBookTickerV3ApiProto.internal_static_PublicBookTickerV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicBookTickerV3ApiProto.internal_static_PublicBookTickerV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicBookTickerV3Api.class, Builder.class); + } + + public static final int BIDPRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object bidPrice_ = ""; + /** + * string bidPrice = 1; + * @return The bidPrice. + */ + @Override + public String getBidPrice() { + Object ref = bidPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidPrice_ = s; + return s; + } + } + /** + * string bidPrice = 1; + * @return The bytes for bidPrice. + */ + @Override + public com.google.protobuf.ByteString + getBidPriceBytes() { + Object ref = bidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BIDQUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object bidQuantity_ = ""; + /** + * string bidQuantity = 2; + * @return The bidQuantity. + */ + @Override + public String getBidQuantity() { + Object ref = bidQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidQuantity_ = s; + return s; + } + } + /** + * string bidQuantity = 2; + * @return The bytes for bidQuantity. + */ + @Override + public com.google.protobuf.ByteString + getBidQuantityBytes() { + Object ref = bidQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASKPRICE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object askPrice_ = ""; + /** + * string askPrice = 3; + * @return The askPrice. + */ + @Override + public String getAskPrice() { + Object ref = askPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askPrice_ = s; + return s; + } + } + /** + * string askPrice = 3; + * @return The bytes for askPrice. + */ + @Override + public com.google.protobuf.ByteString + getAskPriceBytes() { + Object ref = askPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASKQUANTITY_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object askQuantity_ = ""; + /** + * string askQuantity = 4; + * @return The askQuantity. + */ + @Override + public String getAskQuantity() { + Object ref = askQuantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askQuantity_ = s; + return s; + } + } + /** + * string askQuantity = 4; + * @return The bytes for askQuantity. + */ + @Override + public com.google.protobuf.ByteString + getAskQuantityBytes() { + Object ref = askQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bidPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidQuantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, bidQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, askPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askQuantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, askQuantity_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, bidPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bidQuantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, bidQuantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, askPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(askQuantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, askQuantity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicBookTickerV3Api)) { + return super.equals(obj); + } + PublicBookTickerV3Api other = (PublicBookTickerV3Api) obj; + + if (!getBidPrice() + .equals(other.getBidPrice())) return false; + if (!getBidQuantity() + .equals(other.getBidQuantity())) return false; + if (!getAskPrice() + .equals(other.getAskPrice())) return false; + if (!getAskQuantity() + .equals(other.getAskQuantity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BIDPRICE_FIELD_NUMBER; + hash = (53 * hash) + getBidPrice().hashCode(); + hash = (37 * hash) + BIDQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getBidQuantity().hashCode(); + hash = (37 * hash) + ASKPRICE_FIELD_NUMBER; + hash = (53 * hash) + getAskPrice().hashCode(); + hash = (37 * hash) + ASKQUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getAskQuantity().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicBookTickerV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicBookTickerV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicBookTickerV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicBookTickerV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicBookTickerV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicBookTickerV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicBookTickerV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicBookTickerV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicBookTickerV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicBookTickerV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicBookTickerV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicBookTickerV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicBookTickerV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicBookTickerV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicBookTickerV3Api) + PublicBookTickerV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicBookTickerV3ApiProto.internal_static_PublicBookTickerV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicBookTickerV3ApiProto.internal_static_PublicBookTickerV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicBookTickerV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicBookTickerV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bidPrice_ = ""; + bidQuantity_ = ""; + askPrice_ = ""; + askQuantity_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicBookTickerV3ApiProto.internal_static_PublicBookTickerV3Api_descriptor; + } + + @Override + public PublicBookTickerV3Api getDefaultInstanceForType() { + return PublicBookTickerV3Api.getDefaultInstance(); + } + + @Override + public PublicBookTickerV3Api build() { + PublicBookTickerV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicBookTickerV3Api buildPartial() { + PublicBookTickerV3Api result = new PublicBookTickerV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicBookTickerV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bidPrice_ = bidPrice_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bidQuantity_ = bidQuantity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.askPrice_ = askPrice_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.askQuantity_ = askQuantity_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicBookTickerV3Api) { + return mergeFrom((PublicBookTickerV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicBookTickerV3Api other) { + if (other == PublicBookTickerV3Api.getDefaultInstance()) return this; + if (!other.getBidPrice().isEmpty()) { + bidPrice_ = other.bidPrice_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBidQuantity().isEmpty()) { + bidQuantity_ = other.bidQuantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAskPrice().isEmpty()) { + askPrice_ = other.askPrice_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAskQuantity().isEmpty()) { + askQuantity_ = other.askQuantity_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + bidPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + bidQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + askPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + askQuantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 Object bidPrice_ = ""; + /** + * string bidPrice = 1; + * @return The bidPrice. + */ + public String getBidPrice() { + Object ref = bidPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string bidPrice = 1; + * @return The bytes for bidPrice. + */ + public com.google.protobuf.ByteString + getBidPriceBytes() { + Object ref = bidPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string bidPrice = 1; + * @param value The bidPrice to set. + * @return This builder for chaining. + */ + public Builder setBidPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + bidPrice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string bidPrice = 1; + * @return This builder for chaining. + */ + public Builder clearBidPrice() { + bidPrice_ = getDefaultInstance().getBidPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string bidPrice = 1; + * @param value The bytes for bidPrice to set. + * @return This builder for chaining. + */ + public Builder setBidPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bidPrice_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object bidQuantity_ = ""; + /** + * string bidQuantity = 2; + * @return The bidQuantity. + */ + public String getBidQuantity() { + Object ref = bidQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + bidQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string bidQuantity = 2; + * @return The bytes for bidQuantity. + */ + public com.google.protobuf.ByteString + getBidQuantityBytes() { + Object ref = bidQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + bidQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string bidQuantity = 2; + * @param value The bidQuantity to set. + * @return This builder for chaining. + */ + public Builder setBidQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + bidQuantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string bidQuantity = 2; + * @return This builder for chaining. + */ + public Builder clearBidQuantity() { + bidQuantity_ = getDefaultInstance().getBidQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string bidQuantity = 2; + * @param value The bytes for bidQuantity to set. + * @return This builder for chaining. + */ + public Builder setBidQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + bidQuantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private Object askPrice_ = ""; + /** + * string askPrice = 3; + * @return The askPrice. + */ + public String getAskPrice() { + Object ref = askPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string askPrice = 3; + * @return The bytes for askPrice. + */ + public com.google.protobuf.ByteString + getAskPriceBytes() { + Object ref = askPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string askPrice = 3; + * @param value The askPrice to set. + * @return This builder for chaining. + */ + public Builder setAskPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + askPrice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string askPrice = 3; + * @return This builder for chaining. + */ + public Builder clearAskPrice() { + askPrice_ = getDefaultInstance().getAskPrice(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string askPrice = 3; + * @param value The bytes for askPrice to set. + * @return This builder for chaining. + */ + public Builder setAskPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + askPrice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object askQuantity_ = ""; + /** + * string askQuantity = 4; + * @return The askQuantity. + */ + public String getAskQuantity() { + Object ref = askQuantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + askQuantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string askQuantity = 4; + * @return The bytes for askQuantity. + */ + public com.google.protobuf.ByteString + getAskQuantityBytes() { + Object ref = askQuantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + askQuantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string askQuantity = 4; + * @param value The askQuantity to set. + * @return This builder for chaining. + */ + public Builder setAskQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + askQuantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string askQuantity = 4; + * @return This builder for chaining. + */ + public Builder clearAskQuantity() { + askQuantity_ = getDefaultInstance().getAskQuantity(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string askQuantity = 4; + * @param value The bytes for askQuantity to set. + * @return This builder for chaining. + */ + public Builder setAskQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + askQuantity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicBookTickerV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicBookTickerV3Api) + private static final PublicBookTickerV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicBookTickerV3Api(); + } + + public static PublicBookTickerV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicBookTickerV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicBookTickerV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3ApiOrBuilder.java new file mode 100644 index 00000000..434cf186 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3ApiOrBuilder.java @@ -0,0 +1,59 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicBookTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicBookTickerV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicBookTickerV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * string bidPrice = 1; + * @return The bidPrice. + */ + String getBidPrice(); + /** + * string bidPrice = 1; + * @return The bytes for bidPrice. + */ + com.google.protobuf.ByteString + getBidPriceBytes(); + + /** + * string bidQuantity = 2; + * @return The bidQuantity. + */ + String getBidQuantity(); + /** + * string bidQuantity = 2; + * @return The bytes for bidQuantity. + */ + com.google.protobuf.ByteString + getBidQuantityBytes(); + + /** + * string askPrice = 3; + * @return The askPrice. + */ + String getAskPrice(); + /** + * string askPrice = 3; + * @return The bytes for askPrice. + */ + com.google.protobuf.ByteString + getAskPriceBytes(); + + /** + * string askQuantity = 4; + * @return The askQuantity. + */ + String getAskQuantity(); + /** + * string askQuantity = 4; + * @return The bytes for askQuantity. + */ + com.google.protobuf.ByteString + getAskQuantityBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3ApiProto.java new file mode 100644 index 00000000..8d51e349 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicBookTickerV3ApiProto.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicBookTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicBookTickerV3ApiProto { + private PublicBookTickerV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicBookTickerV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicBookTickerV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicBookTickerV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\033PublicBookTickerV3Api.proto\"e\n\025PublicB" + + "ookTickerV3Api\022\020\n\010bidPrice\030\001 \001(\t\022\023\n\013bidQ" + + "uantity\030\002 \001(\t\022\020\n\010askPrice\030\003 \001(\t\022\023\n\013askQu" + + "antity\030\004 \001(\tB>\n\034com.mxc.push.common.prot" + + "obufB\032PublicBookTickerV3ApiProtoH\001P\001b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicBookTickerV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicBookTickerV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicBookTickerV3Api_descriptor, + new String[] { "BidPrice", "BidQuantity", "AskPrice", "AskQuantity", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3Api.java new file mode 100644 index 00000000..3b313d43 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3Api.java @@ -0,0 +1,855 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicDealsV3Api} + */ +public final class PublicDealsV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicDealsV3Api) + PublicDealsV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicDealsV3Api.class.getName()); + } + // Use PublicDealsV3Api.newBuilder() to construct. + private PublicDealsV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicDealsV3Api() { + deals_ = java.util.Collections.emptyList(); + eventType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicDealsV3Api.class, Builder.class); + } + + public static final int DEALS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List deals_; + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + @Override + public java.util.List getDealsList() { + return deals_; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + @Override + public java.util.List + getDealsOrBuilderList() { + return deals_; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + @Override + public int getDealsCount() { + return deals_.size(); + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + @Override + public PublicDealsV3ApiItem getDeals(int index) { + return deals_.get(index); + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + @Override + public PublicDealsV3ApiItemOrBuilder getDealsOrBuilder( + int index) { + return deals_.get(index); + } + + public static final int EVENTTYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object eventType_ = ""; + /** + * string eventType = 2; + * @return The eventType. + */ + @Override + public String getEventType() { + Object ref = eventType_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + @Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < deals_.size(); i++) { + output.writeMessage(1, deals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, eventType_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, deals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, eventType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicDealsV3Api)) { + return super.equals(obj); + } + PublicDealsV3Api other = (PublicDealsV3Api) obj; + + if (!getDealsList() + .equals(other.getDealsList())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDealsCount() > 0) { + hash = (37 * hash) + DEALS_FIELD_NUMBER; + hash = (53 * hash) + getDealsList().hashCode(); + } + hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicDealsV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicDealsV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicDealsV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicDealsV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicDealsV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicDealsV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicDealsV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicDealsV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicDealsV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicDealsV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicDealsV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicDealsV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicDealsV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicDealsV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicDealsV3Api) + PublicDealsV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicDealsV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicDealsV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dealsBuilder_ == null) { + deals_ = java.util.Collections.emptyList(); + } else { + deals_ = null; + dealsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + eventType_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3Api_descriptor; + } + + @Override + public PublicDealsV3Api getDefaultInstanceForType() { + return PublicDealsV3Api.getDefaultInstance(); + } + + @Override + public PublicDealsV3Api build() { + PublicDealsV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicDealsV3Api buildPartial() { + PublicDealsV3Api result = new PublicDealsV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicDealsV3Api result) { + if (dealsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deals_ = java.util.Collections.unmodifiableList(deals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deals_ = deals_; + } else { + result.deals_ = dealsBuilder_.build(); + } + } + + private void buildPartial0(PublicDealsV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventType_ = eventType_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicDealsV3Api) { + return mergeFrom((PublicDealsV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicDealsV3Api other) { + if (other == PublicDealsV3Api.getDefaultInstance()) return this; + if (dealsBuilder_ == null) { + if (!other.deals_.isEmpty()) { + if (deals_.isEmpty()) { + deals_ = other.deals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDealsIsMutable(); + deals_.addAll(other.deals_); + } + onChanged(); + } + } else { + if (!other.deals_.isEmpty()) { + if (dealsBuilder_.isEmpty()) { + dealsBuilder_.dispose(); + dealsBuilder_ = null; + deals_ = other.deals_; + bitField0_ = (bitField0_ & ~0x00000001); + dealsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDealsFieldBuilder() : null; + } else { + dealsBuilder_.addAllMessages(other.deals_); + } + } + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicDealsV3ApiItem m = + input.readMessage( + PublicDealsV3ApiItem.parser(), + extensionRegistry); + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.add(m); + } else { + dealsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 java.util.List deals_ = + java.util.Collections.emptyList(); + private void ensureDealsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deals_ = new java.util.ArrayList(deals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicDealsV3ApiItem, PublicDealsV3ApiItem.Builder, PublicDealsV3ApiItemOrBuilder> dealsBuilder_; + + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public java.util.List getDealsList() { + if (dealsBuilder_ == null) { + return java.util.Collections.unmodifiableList(deals_); + } else { + return dealsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public int getDealsCount() { + if (dealsBuilder_ == null) { + return deals_.size(); + } else { + return dealsBuilder_.getCount(); + } + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public PublicDealsV3ApiItem getDeals(int index) { + if (dealsBuilder_ == null) { + return deals_.get(index); + } else { + return dealsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder setDeals( + int index, PublicDealsV3ApiItem value) { + if (dealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDealsIsMutable(); + deals_.set(index, value); + onChanged(); + } else { + dealsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder setDeals( + int index, PublicDealsV3ApiItem.Builder builderForValue) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.set(index, builderForValue.build()); + onChanged(); + } else { + dealsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder addDeals(PublicDealsV3ApiItem value) { + if (dealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDealsIsMutable(); + deals_.add(value); + onChanged(); + } else { + dealsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder addDeals( + int index, PublicDealsV3ApiItem value) { + if (dealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDealsIsMutable(); + deals_.add(index, value); + onChanged(); + } else { + dealsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder addDeals( + PublicDealsV3ApiItem.Builder builderForValue) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.add(builderForValue.build()); + onChanged(); + } else { + dealsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder addDeals( + int index, PublicDealsV3ApiItem.Builder builderForValue) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.add(index, builderForValue.build()); + onChanged(); + } else { + dealsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder addAllDeals( + Iterable values) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deals_); + onChanged(); + } else { + dealsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder clearDeals() { + if (dealsBuilder_ == null) { + deals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dealsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public Builder removeDeals(int index) { + if (dealsBuilder_ == null) { + ensureDealsIsMutable(); + deals_.remove(index); + onChanged(); + } else { + dealsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public PublicDealsV3ApiItem.Builder getDealsBuilder( + int index) { + return getDealsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public PublicDealsV3ApiItemOrBuilder getDealsOrBuilder( + int index) { + if (dealsBuilder_ == null) { + return deals_.get(index); } else { + return dealsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public java.util.List + getDealsOrBuilderList() { + if (dealsBuilder_ != null) { + return dealsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deals_); + } + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public PublicDealsV3ApiItem.Builder addDealsBuilder() { + return getDealsFieldBuilder().addBuilder( + PublicDealsV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public PublicDealsV3ApiItem.Builder addDealsBuilder( + int index) { + return getDealsFieldBuilder().addBuilder( + index, PublicDealsV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + public java.util.List + getDealsBuilderList() { + return getDealsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicDealsV3ApiItem, PublicDealsV3ApiItem.Builder, PublicDealsV3ApiItemOrBuilder> + getDealsFieldBuilder() { + if (dealsBuilder_ == null) { + dealsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicDealsV3ApiItem, PublicDealsV3ApiItem.Builder, PublicDealsV3ApiItemOrBuilder>( + deals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deals_ = null; + } + return dealsBuilder_; + } + + private Object eventType_ = ""; + /** + * string eventType = 2; + * @return The eventType. + */ + public String getEventType() { + Object ref = eventType_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventType = 2; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + String value) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string eventType = 2; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string eventType = 2; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicDealsV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicDealsV3Api) + private static final PublicDealsV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicDealsV3Api(); + } + + public static PublicDealsV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicDealsV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicDealsV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiItem.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiItem.java new file mode 100644 index 00000000..1107ea61 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiItem.java @@ -0,0 +1,770 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicDealsV3ApiItem} + */ +public final class PublicDealsV3ApiItem extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicDealsV3ApiItem) + PublicDealsV3ApiItemOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicDealsV3ApiItem.class.getName()); + } + // Use PublicDealsV3ApiItem.newBuilder() to construct. + private PublicDealsV3ApiItem(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicDealsV3ApiItem() { + price_ = ""; + quantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicDealsV3ApiItem.class, Builder.class); + } + + public static final int PRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRADETYPE_FIELD_NUMBER = 3; + private int tradeType_ = 0; + /** + * int32 tradeType = 3; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + + public static final int TIME_FIELD_NUMBER = 4; + private long time_ = 0L; + /** + * int64 time = 4; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, quantity_); + } + if (tradeType_ != 0) { + output.writeInt32(3, tradeType_); + } + if (time_ != 0L) { + output.writeInt64(4, time_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, quantity_); + } + if (tradeType_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, tradeType_); + } + if (time_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, time_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicDealsV3ApiItem)) { + return super.equals(obj); + } + PublicDealsV3ApiItem other = (PublicDealsV3ApiItem) obj; + + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (getTradeType() + != other.getTradeType()) return false; + if (getTime() + != other.getTime()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (37 * hash) + TRADETYPE_FIELD_NUMBER; + hash = (53 * hash) + getTradeType(); + hash = (37 * hash) + TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTime()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicDealsV3ApiItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicDealsV3ApiItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicDealsV3ApiItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicDealsV3ApiItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicDealsV3ApiItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicDealsV3ApiItem parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicDealsV3ApiItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicDealsV3ApiItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicDealsV3ApiItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicDealsV3ApiItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicDealsV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicDealsV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicDealsV3ApiItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicDealsV3ApiItem} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicDealsV3ApiItem) + PublicDealsV3ApiItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicDealsV3ApiItem.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicDealsV3ApiItem.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + price_ = ""; + quantity_ = ""; + tradeType_ = 0; + time_ = 0L; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicDealsV3ApiProto.internal_static_PublicDealsV3ApiItem_descriptor; + } + + @Override + public PublicDealsV3ApiItem getDefaultInstanceForType() { + return PublicDealsV3ApiItem.getDefaultInstance(); + } + + @Override + public PublicDealsV3ApiItem build() { + PublicDealsV3ApiItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicDealsV3ApiItem buildPartial() { + PublicDealsV3ApiItem result = new PublicDealsV3ApiItem(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicDealsV3ApiItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tradeType_ = tradeType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.time_ = time_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicDealsV3ApiItem) { + return mergeFrom((PublicDealsV3ApiItem)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicDealsV3ApiItem other) { + if (other == PublicDealsV3ApiItem.getDefaultInstance()) return this; + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTradeType() != 0) { + setTradeType(other.getTradeType()); + } + if (other.getTime() != 0L) { + setTime(other.getTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + tradeType_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + time_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 1; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string price = 1; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string price = 1; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 2; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string quantity = 2; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string quantity = 2; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int tradeType_ ; + /** + * int32 tradeType = 3; + * @return The tradeType. + */ + @Override + public int getTradeType() { + return tradeType_; + } + /** + * int32 tradeType = 3; + * @param value The tradeType to set. + * @return This builder for chaining. + */ + public Builder setTradeType(int value) { + + tradeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int32 tradeType = 3; + * @return This builder for chaining. + */ + public Builder clearTradeType() { + bitField0_ = (bitField0_ & ~0x00000004); + tradeType_ = 0; + onChanged(); + return this; + } + + private long time_ ; + /** + * int64 time = 4; + * @return The time. + */ + @Override + public long getTime() { + return time_; + } + /** + * int64 time = 4; + * @param value The time to set. + * @return This builder for chaining. + */ + public Builder setTime(long value) { + + time_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 time = 4; + * @return This builder for chaining. + */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000008); + time_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicDealsV3ApiItem) + } + + // @@protoc_insertion_point(class_scope:PublicDealsV3ApiItem) + private static final PublicDealsV3ApiItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicDealsV3ApiItem(); + } + + public static PublicDealsV3ApiItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicDealsV3ApiItem 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicDealsV3ApiItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiItemOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiItemOrBuilder.java new file mode 100644 index 00000000..2119bba7 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiItemOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicDealsV3ApiItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicDealsV3ApiItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string price = 1; + * @return The price. + */ + String getPrice(); + /** + * string price = 1; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 2; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); + + /** + * int32 tradeType = 3; + * @return The tradeType. + */ + int getTradeType(); + + /** + * int64 time = 4; + * @return The time. + */ + long getTime(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiOrBuilder.java new file mode 100644 index 00000000..12732fa9 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicDealsV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicDealsV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + java.util.List + getDealsList(); + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + PublicDealsV3ApiItem getDeals(int index); + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + int getDealsCount(); + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + java.util.List + getDealsOrBuilderList(); + /** + * repeated .PublicDealsV3ApiItem deals = 1; + */ + PublicDealsV3ApiItemOrBuilder getDealsOrBuilder( + int index); + + /** + * string eventType = 2; + * @return The eventType. + */ + String getEventType(); + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiProto.java new file mode 100644 index 00000000..dc230e8b --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicDealsV3ApiProto.java @@ -0,0 +1,75 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicDealsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicDealsV3ApiProto { + private PublicDealsV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicDealsV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicDealsV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicDealsV3Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicDealsV3ApiItem_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicDealsV3ApiItem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\026PublicDealsV3Api.proto\"K\n\020PublicDealsV" + + "3Api\022$\n\005deals\030\001 \003(\0132\025.PublicDealsV3ApiIt" + + "em\022\021\n\teventType\030\002 \001(\t\"X\n\024PublicDealsV3Ap" + + "iItem\022\r\n\005price\030\001 \001(\t\022\020\n\010quantity\030\002 \001(\t\022\021" + + "\n\ttradeType\030\003 \001(\005\022\014\n\004time\030\004 \001(\003B9\n\034com.m" + + "xc.push.common.protobufB\025PublicDealsV3Ap" + + "iProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicDealsV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicDealsV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicDealsV3Api_descriptor, + new String[] { "Deals", "EventType", }); + internal_static_PublicDealsV3ApiItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_PublicDealsV3ApiItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicDealsV3ApiItem_descriptor, + new String[] { "Price", "Quantity", "TradeType", "Time", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthV3ApiItem.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthV3ApiItem.java new file mode 100644 index 00000000..72058fe6 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthV3ApiItem.java @@ -0,0 +1,637 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicIncreaseDepthV3ApiItem} + */ +public final class PublicIncreaseDepthV3ApiItem extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicIncreaseDepthV3ApiItem) + PublicIncreaseDepthV3ApiItemOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicIncreaseDepthV3ApiItem.class.getName()); + } + // Use PublicIncreaseDepthV3ApiItem.newBuilder() to construct. + private PublicIncreaseDepthV3ApiItem(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicIncreaseDepthV3ApiItem() { + price_ = ""; + quantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicIncreaseDepthV3ApiItem.class, Builder.class); + } + + public static final int PRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, quantity_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, quantity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicIncreaseDepthV3ApiItem)) { + return super.equals(obj); + } + PublicIncreaseDepthV3ApiItem other = (PublicIncreaseDepthV3ApiItem) obj; + + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicIncreaseDepthV3ApiItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthV3ApiItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthV3ApiItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicIncreaseDepthV3ApiItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicIncreaseDepthV3ApiItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicIncreaseDepthV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicIncreaseDepthV3ApiItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicIncreaseDepthV3ApiItem} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicIncreaseDepthV3ApiItem) + PublicIncreaseDepthV3ApiItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicIncreaseDepthV3ApiItem.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicIncreaseDepthV3ApiItem.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + price_ = ""; + quantity_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthV3ApiItem_descriptor; + } + + @Override + public PublicIncreaseDepthV3ApiItem getDefaultInstanceForType() { + return PublicIncreaseDepthV3ApiItem.getDefaultInstance(); + } + + @Override + public PublicIncreaseDepthV3ApiItem build() { + PublicIncreaseDepthV3ApiItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicIncreaseDepthV3ApiItem buildPartial() { + PublicIncreaseDepthV3ApiItem result = new PublicIncreaseDepthV3ApiItem(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicIncreaseDepthV3ApiItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicIncreaseDepthV3ApiItem) { + return mergeFrom((PublicIncreaseDepthV3ApiItem)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicIncreaseDepthV3ApiItem other) { + if (other == PublicIncreaseDepthV3ApiItem.getDefaultInstance()) return this; + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 1; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string price = 1; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string price = 1; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 2; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string quantity = 2; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string quantity = 2; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicIncreaseDepthV3ApiItem) + } + + // @@protoc_insertion_point(class_scope:PublicIncreaseDepthV3ApiItem) + private static final PublicIncreaseDepthV3ApiItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicIncreaseDepthV3ApiItem(); + } + + public static PublicIncreaseDepthV3ApiItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicIncreaseDepthV3ApiItem 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicIncreaseDepthV3ApiItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthV3ApiItemOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthV3ApiItemOrBuilder.java new file mode 100644 index 00000000..b9a11cef --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthV3ApiItemOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicIncreaseDepthV3ApiItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicIncreaseDepthV3ApiItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string price = 1; + * @return The price. + */ + String getPrice(); + /** + * string price = 1; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 2; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3Api.java new file mode 100644 index 00000000..ea783d24 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3Api.java @@ -0,0 +1,855 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsBatchV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicIncreaseDepthsBatchV3Api} + */ +public final class PublicIncreaseDepthsBatchV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicIncreaseDepthsBatchV3Api) + PublicIncreaseDepthsBatchV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicIncreaseDepthsBatchV3Api.class.getName()); + } + // Use PublicIncreaseDepthsBatchV3Api.newBuilder() to construct. + private PublicIncreaseDepthsBatchV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicIncreaseDepthsBatchV3Api() { + items_ = java.util.Collections.emptyList(); + eventType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicIncreaseDepthsBatchV3ApiProto.internal_static_PublicIncreaseDepthsBatchV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicIncreaseDepthsBatchV3ApiProto.internal_static_PublicIncreaseDepthsBatchV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicIncreaseDepthsBatchV3Api.class, Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List items_; + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + @Override + public java.util.List getItemsList() { + return items_; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + @Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + @Override + public int getItemsCount() { + return items_.size(); + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + @Override + public PublicIncreaseDepthsV3Api getItems(int index) { + return items_.get(index); + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + @Override + public PublicIncreaseDepthsV3ApiOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + public static final int EVENTTYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object eventType_ = ""; + /** + * string eventType = 2; + * @return The eventType. + */ + @Override + public String getEventType() { + Object ref = eventType_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + @Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, eventType_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, items_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, eventType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicIncreaseDepthsBatchV3Api)) { + return super.equals(obj); + } + PublicIncreaseDepthsBatchV3Api other = (PublicIncreaseDepthsBatchV3Api) obj; + + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicIncreaseDepthsBatchV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicIncreaseDepthsBatchV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicIncreaseDepthsBatchV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicIncreaseDepthsBatchV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicIncreaseDepthsBatchV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicIncreaseDepthsBatchV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicIncreaseDepthsBatchV3Api) + PublicIncreaseDepthsBatchV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicIncreaseDepthsBatchV3ApiProto.internal_static_PublicIncreaseDepthsBatchV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicIncreaseDepthsBatchV3ApiProto.internal_static_PublicIncreaseDepthsBatchV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicIncreaseDepthsBatchV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicIncreaseDepthsBatchV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + eventType_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicIncreaseDepthsBatchV3ApiProto.internal_static_PublicIncreaseDepthsBatchV3Api_descriptor; + } + + @Override + public PublicIncreaseDepthsBatchV3Api getDefaultInstanceForType() { + return PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } + + @Override + public PublicIncreaseDepthsBatchV3Api build() { + PublicIncreaseDepthsBatchV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicIncreaseDepthsBatchV3Api buildPartial() { + PublicIncreaseDepthsBatchV3Api result = new PublicIncreaseDepthsBatchV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicIncreaseDepthsBatchV3Api result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(PublicIncreaseDepthsBatchV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventType_ = eventType_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicIncreaseDepthsBatchV3Api) { + return mergeFrom((PublicIncreaseDepthsBatchV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicIncreaseDepthsBatchV3Api other) { + if (other == PublicIncreaseDepthsBatchV3Api.getDefaultInstance()) return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicIncreaseDepthsV3Api m = + input.readMessage( + PublicIncreaseDepthsV3Api.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthsV3Api, PublicIncreaseDepthsV3Api.Builder, PublicIncreaseDepthsV3ApiOrBuilder> itemsBuilder_; + + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public PublicIncreaseDepthsV3Api getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder setItems( + int index, PublicIncreaseDepthsV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder setItems( + int index, PublicIncreaseDepthsV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder addItems(PublicIncreaseDepthsV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder addItems( + int index, PublicIncreaseDepthsV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder addItems( + PublicIncreaseDepthsV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder addItems( + int index, PublicIncreaseDepthsV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder addAllItems( + Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public PublicIncreaseDepthsV3Api.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public PublicIncreaseDepthsV3ApiOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public PublicIncreaseDepthsV3Api.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + PublicIncreaseDepthsV3Api.getDefaultInstance()); + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public PublicIncreaseDepthsV3Api.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, PublicIncreaseDepthsV3Api.getDefaultInstance()); + } + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthsV3Api, PublicIncreaseDepthsV3Api.Builder, PublicIncreaseDepthsV3ApiOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthsV3Api, PublicIncreaseDepthsV3Api.Builder, PublicIncreaseDepthsV3ApiOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + + private Object eventType_ = ""; + /** + * string eventType = 2; + * @return The eventType. + */ + public String getEventType() { + Object ref = eventType_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventType = 2; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + String value) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string eventType = 2; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string eventType = 2; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicIncreaseDepthsBatchV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicIncreaseDepthsBatchV3Api) + private static final PublicIncreaseDepthsBatchV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicIncreaseDepthsBatchV3Api(); + } + + public static PublicIncreaseDepthsBatchV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicIncreaseDepthsBatchV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicIncreaseDepthsBatchV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3ApiOrBuilder.java new file mode 100644 index 00000000..1b7a6b69 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3ApiOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsBatchV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicIncreaseDepthsBatchV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicIncreaseDepthsBatchV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + java.util.List + getItemsList(); + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + PublicIncreaseDepthsV3Api getItems(int index); + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + int getItemsCount(); + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .PublicIncreaseDepthsV3Api items = 1; + */ + PublicIncreaseDepthsV3ApiOrBuilder getItemsOrBuilder( + int index); + + /** + * string eventType = 2; + * @return The eventType. + */ + String getEventType(); + /** + * string eventType = 2; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3ApiProto.java new file mode 100644 index 00000000..2a4c494c --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsBatchV3ApiProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsBatchV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicIncreaseDepthsBatchV3ApiProto { + private PublicIncreaseDepthsBatchV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicIncreaseDepthsBatchV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicIncreaseDepthsBatchV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicIncreaseDepthsBatchV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n$PublicIncreaseDepthsBatchV3Api.proto\032\037" + + "PublicIncreaseDepthsV3Api.proto\"^\n\036Publi" + + "cIncreaseDepthsBatchV3Api\022)\n\005items\030\001 \003(\013" + + "2\032.PublicIncreaseDepthsV3Api\022\021\n\teventTyp" + + "e\030\002 \001(\tBG\n\034com.mxc.push.common.protobufB" + + "#PublicIncreaseDepthsBatchV3ApiProtoH\001P\001" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + PublicIncreaseDepthsV3ApiProto.getDescriptor(), + }); + internal_static_PublicIncreaseDepthsBatchV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicIncreaseDepthsBatchV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicIncreaseDepthsBatchV3Api_descriptor, + new String[] { "Items", "EventType", }); + descriptor.resolveAllFeaturesImmutable(); + PublicIncreaseDepthsV3ApiProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3Api.java new file mode 100644 index 00000000..ca277561 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3Api.java @@ -0,0 +1,1341 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicIncreaseDepthsV3Api} + */ +public final class PublicIncreaseDepthsV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicIncreaseDepthsV3Api) + PublicIncreaseDepthsV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicIncreaseDepthsV3Api.class.getName()); + } + // Use PublicIncreaseDepthsV3Api.newBuilder() to construct. + private PublicIncreaseDepthsV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicIncreaseDepthsV3Api() { + asks_ = java.util.Collections.emptyList(); + bids_ = java.util.Collections.emptyList(); + eventType_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicIncreaseDepthsV3Api.class, Builder.class); + } + + public static final int ASKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List asks_; + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + @Override + public java.util.List getAsksList() { + return asks_; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + @Override + public java.util.List + getAsksOrBuilderList() { + return asks_; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + @Override + public int getAsksCount() { + return asks_.size(); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + @Override + public PublicIncreaseDepthV3ApiItem getAsks(int index) { + return asks_.get(index); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + @Override + public PublicIncreaseDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index) { + return asks_.get(index); + } + + public static final int BIDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List bids_; + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + @Override + public java.util.List getBidsList() { + return bids_; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + @Override + public java.util.List + getBidsOrBuilderList() { + return bids_; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + @Override + public int getBidsCount() { + return bids_.size(); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + @Override + public PublicIncreaseDepthV3ApiItem getBids(int index) { + return bids_.get(index); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + @Override + public PublicIncreaseDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index) { + return bids_.get(index); + } + + public static final int EVENTTYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object eventType_ = ""; + /** + * string eventType = 3; + * @return The eventType. + */ + @Override + public String getEventType() { + Object ref = eventType_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + @Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object version_ = ""; + /** + * string version = 4; + * @return The version. + */ + @Override + public String getVersion() { + Object ref = version_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 4; + * @return The bytes for version. + */ + @Override + public com.google.protobuf.ByteString + getVersionBytes() { + Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < asks_.size(); i++) { + output.writeMessage(1, asks_.get(i)); + } + for (int i = 0; i < bids_.size(); i++) { + output.writeMessage(2, bids_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, eventType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, version_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < asks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, asks_.get(i)); + } + for (int i = 0; i < bids_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, bids_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, eventType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicIncreaseDepthsV3Api)) { + return super.equals(obj); + } + PublicIncreaseDepthsV3Api other = (PublicIncreaseDepthsV3Api) obj; + + if (!getAsksList() + .equals(other.getAsksList())) return false; + if (!getBidsList() + .equals(other.getBidsList())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAsksCount() > 0) { + hash = (37 * hash) + ASKS_FIELD_NUMBER; + hash = (53 * hash) + getAsksList().hashCode(); + } + if (getBidsCount() > 0) { + hash = (37 * hash) + BIDS_FIELD_NUMBER; + hash = (53 * hash) + getBidsList().hashCode(); + } + hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicIncreaseDepthsV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthsV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthsV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthsV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthsV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicIncreaseDepthsV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicIncreaseDepthsV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicIncreaseDepthsV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicIncreaseDepthsV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicIncreaseDepthsV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicIncreaseDepthsV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicIncreaseDepthsV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicIncreaseDepthsV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicIncreaseDepthsV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicIncreaseDepthsV3Api) + PublicIncreaseDepthsV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicIncreaseDepthsV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicIncreaseDepthsV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (asksBuilder_ == null) { + asks_ = java.util.Collections.emptyList(); + } else { + asks_ = null; + asksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (bidsBuilder_ == null) { + bids_ = java.util.Collections.emptyList(); + } else { + bids_ = null; + bidsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + eventType_ = ""; + version_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicIncreaseDepthsV3ApiProto.internal_static_PublicIncreaseDepthsV3Api_descriptor; + } + + @Override + public PublicIncreaseDepthsV3Api getDefaultInstanceForType() { + return PublicIncreaseDepthsV3Api.getDefaultInstance(); + } + + @Override + public PublicIncreaseDepthsV3Api build() { + PublicIncreaseDepthsV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicIncreaseDepthsV3Api buildPartial() { + PublicIncreaseDepthsV3Api result = new PublicIncreaseDepthsV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicIncreaseDepthsV3Api result) { + if (asksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + asks_ = java.util.Collections.unmodifiableList(asks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.asks_ = asks_; + } else { + result.asks_ = asksBuilder_.build(); + } + if (bidsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + bids_ = java.util.Collections.unmodifiableList(bids_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bids_ = bids_; + } else { + result.bids_ = bidsBuilder_.build(); + } + } + + private void buildPartial0(PublicIncreaseDepthsV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventType_ = eventType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicIncreaseDepthsV3Api) { + return mergeFrom((PublicIncreaseDepthsV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicIncreaseDepthsV3Api other) { + if (other == PublicIncreaseDepthsV3Api.getDefaultInstance()) return this; + if (asksBuilder_ == null) { + if (!other.asks_.isEmpty()) { + if (asks_.isEmpty()) { + asks_ = other.asks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAsksIsMutable(); + asks_.addAll(other.asks_); + } + onChanged(); + } + } else { + if (!other.asks_.isEmpty()) { + if (asksBuilder_.isEmpty()) { + asksBuilder_.dispose(); + asksBuilder_ = null; + asks_ = other.asks_; + bitField0_ = (bitField0_ & ~0x00000001); + asksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAsksFieldBuilder() : null; + } else { + asksBuilder_.addAllMessages(other.asks_); + } + } + } + if (bidsBuilder_ == null) { + if (!other.bids_.isEmpty()) { + if (bids_.isEmpty()) { + bids_ = other.bids_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBidsIsMutable(); + bids_.addAll(other.bids_); + } + onChanged(); + } + } else { + if (!other.bids_.isEmpty()) { + if (bidsBuilder_.isEmpty()) { + bidsBuilder_.dispose(); + bidsBuilder_ = null; + bids_ = other.bids_; + bitField0_ = (bitField0_ & ~0x00000002); + bidsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBidsFieldBuilder() : null; + } else { + bidsBuilder_.addAllMessages(other.bids_); + } + } + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicIncreaseDepthV3ApiItem m = + input.readMessage( + PublicIncreaseDepthV3ApiItem.parser(), + extensionRegistry); + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(m); + } else { + asksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + PublicIncreaseDepthV3ApiItem m = + input.readMessage( + PublicIncreaseDepthV3ApiItem.parser(), + extensionRegistry); + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(m); + } else { + bidsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 java.util.List asks_ = + java.util.Collections.emptyList(); + private void ensureAsksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + asks_ = new java.util.ArrayList(asks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthV3ApiItem, PublicIncreaseDepthV3ApiItem.Builder, PublicIncreaseDepthV3ApiItemOrBuilder> asksBuilder_; + + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public java.util.List getAsksList() { + if (asksBuilder_ == null) { + return java.util.Collections.unmodifiableList(asks_); + } else { + return asksBuilder_.getMessageList(); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public int getAsksCount() { + if (asksBuilder_ == null) { + return asks_.size(); + } else { + return asksBuilder_.getCount(); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public PublicIncreaseDepthV3ApiItem getAsks(int index) { + if (asksBuilder_ == null) { + return asks_.get(index); + } else { + return asksBuilder_.getMessage(index); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder setAsks( + int index, PublicIncreaseDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.set(index, value); + onChanged(); + } else { + asksBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder setAsks( + int index, PublicIncreaseDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.set(index, builderForValue.build()); + onChanged(); + } else { + asksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder addAsks(PublicIncreaseDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.add(value); + onChanged(); + } else { + asksBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + int index, PublicIncreaseDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.add(index, value); + onChanged(); + } else { + asksBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + PublicIncreaseDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(builderForValue.build()); + onChanged(); + } else { + asksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + int index, PublicIncreaseDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(index, builderForValue.build()); + onChanged(); + } else { + asksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder addAllAsks( + Iterable values) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, asks_); + onChanged(); + } else { + asksBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder clearAsks() { + if (asksBuilder_ == null) { + asks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + asksBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public Builder removeAsks(int index) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.remove(index); + onChanged(); + } else { + asksBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public PublicIncreaseDepthV3ApiItem.Builder getAsksBuilder( + int index) { + return getAsksFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public PublicIncreaseDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index) { + if (asksBuilder_ == null) { + return asks_.get(index); } else { + return asksBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public java.util.List + getAsksOrBuilderList() { + if (asksBuilder_ != null) { + return asksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(asks_); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public PublicIncreaseDepthV3ApiItem.Builder addAsksBuilder() { + return getAsksFieldBuilder().addBuilder( + PublicIncreaseDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public PublicIncreaseDepthV3ApiItem.Builder addAsksBuilder( + int index) { + return getAsksFieldBuilder().addBuilder( + index, PublicIncreaseDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + public java.util.List + getAsksBuilderList() { + return getAsksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthV3ApiItem, PublicIncreaseDepthV3ApiItem.Builder, PublicIncreaseDepthV3ApiItemOrBuilder> + getAsksFieldBuilder() { + if (asksBuilder_ == null) { + asksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthV3ApiItem, PublicIncreaseDepthV3ApiItem.Builder, PublicIncreaseDepthV3ApiItemOrBuilder>( + asks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + asks_ = null; + } + return asksBuilder_; + } + + private java.util.List bids_ = + java.util.Collections.emptyList(); + private void ensureBidsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bids_ = new java.util.ArrayList(bids_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthV3ApiItem, PublicIncreaseDepthV3ApiItem.Builder, PublicIncreaseDepthV3ApiItemOrBuilder> bidsBuilder_; + + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public java.util.List getBidsList() { + if (bidsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bids_); + } else { + return bidsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public int getBidsCount() { + if (bidsBuilder_ == null) { + return bids_.size(); + } else { + return bidsBuilder_.getCount(); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public PublicIncreaseDepthV3ApiItem getBids(int index) { + if (bidsBuilder_ == null) { + return bids_.get(index); + } else { + return bidsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder setBids( + int index, PublicIncreaseDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.set(index, value); + onChanged(); + } else { + bidsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder setBids( + int index, PublicIncreaseDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.set(index, builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder addBids(PublicIncreaseDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.add(value); + onChanged(); + } else { + bidsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder addBids( + int index, PublicIncreaseDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.add(index, value); + onChanged(); + } else { + bidsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder addBids( + PublicIncreaseDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder addBids( + int index, PublicIncreaseDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(index, builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder addAllBids( + Iterable values) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bids_); + onChanged(); + } else { + bidsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder clearBids() { + if (bidsBuilder_ == null) { + bids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bidsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public Builder removeBids(int index) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.remove(index); + onChanged(); + } else { + bidsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public PublicIncreaseDepthV3ApiItem.Builder getBidsBuilder( + int index) { + return getBidsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public PublicIncreaseDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index) { + if (bidsBuilder_ == null) { + return bids_.get(index); } else { + return bidsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public java.util.List + getBidsOrBuilderList() { + if (bidsBuilder_ != null) { + return bidsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bids_); + } + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public PublicIncreaseDepthV3ApiItem.Builder addBidsBuilder() { + return getBidsFieldBuilder().addBuilder( + PublicIncreaseDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public PublicIncreaseDepthV3ApiItem.Builder addBidsBuilder( + int index) { + return getBidsFieldBuilder().addBuilder( + index, PublicIncreaseDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + public java.util.List + getBidsBuilderList() { + return getBidsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthV3ApiItem, PublicIncreaseDepthV3ApiItem.Builder, PublicIncreaseDepthV3ApiItemOrBuilder> + getBidsFieldBuilder() { + if (bidsBuilder_ == null) { + bidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicIncreaseDepthV3ApiItem, PublicIncreaseDepthV3ApiItem.Builder, PublicIncreaseDepthV3ApiItemOrBuilder>( + bids_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + bids_ = null; + } + return bidsBuilder_; + } + + private Object eventType_ = ""; + /** + * string eventType = 3; + * @return The eventType. + */ + public String getEventType() { + Object ref = eventType_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventType = 3; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + String value) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string eventType = 3; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string eventType = 3; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object version_ = ""; + /** + * string version = 4; + * @return The version. + */ + public String getVersion() { + Object ref = version_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string version = 4; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 4; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string version = 4; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string version = 4; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicIncreaseDepthsV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicIncreaseDepthsV3Api) + private static final PublicIncreaseDepthsV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicIncreaseDepthsV3Api(); + } + + public static PublicIncreaseDepthsV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicIncreaseDepthsV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicIncreaseDepthsV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3ApiOrBuilder.java new file mode 100644 index 00000000..a2343f4f --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3ApiOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicIncreaseDepthsV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicIncreaseDepthsV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + java.util.List + getAsksList(); + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + PublicIncreaseDepthV3ApiItem getAsks(int index); + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + int getAsksCount(); + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + java.util.List + getAsksOrBuilderList(); + /** + * repeated .PublicIncreaseDepthV3ApiItem asks = 1; + */ + PublicIncreaseDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index); + + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + java.util.List + getBidsList(); + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + PublicIncreaseDepthV3ApiItem getBids(int index); + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + int getBidsCount(); + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + java.util.List + getBidsOrBuilderList(); + /** + * repeated .PublicIncreaseDepthV3ApiItem bids = 2; + */ + PublicIncreaseDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index); + + /** + * string eventType = 3; + * @return The eventType. + */ + String getEventType(); + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); + + /** + * string version = 4; + * @return The version. + */ + String getVersion(); + /** + * string version = 4; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3ApiProto.java new file mode 100644 index 00000000..642075ea --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicIncreaseDepthsV3ApiProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicIncreaseDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicIncreaseDepthsV3ApiProto { + private PublicIncreaseDepthsV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicIncreaseDepthsV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicIncreaseDepthsV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicIncreaseDepthsV3Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicIncreaseDepthV3ApiItem_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicIncreaseDepthV3ApiItem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\037PublicIncreaseDepthsV3Api.proto\"\231\001\n\031Pu" + + "blicIncreaseDepthsV3Api\022+\n\004asks\030\001 \003(\0132\035." + + "PublicIncreaseDepthV3ApiItem\022+\n\004bids\030\002 \003" + + "(\0132\035.PublicIncreaseDepthV3ApiItem\022\021\n\teve" + + "ntType\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\"?\n\034PublicI" + + "ncreaseDepthV3ApiItem\022\r\n\005price\030\001 \001(\t\022\020\n\010" + + "quantity\030\002 \001(\tBB\n\034com.mxc.push.common.pr" + + "otobufB\036PublicIncreaseDepthsV3ApiProtoH\001" + + "P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicIncreaseDepthsV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicIncreaseDepthsV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicIncreaseDepthsV3Api_descriptor, + new String[] { "Asks", "Bids", "EventType", "Version", }); + internal_static_PublicIncreaseDepthV3ApiItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_PublicIncreaseDepthV3ApiItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicIncreaseDepthV3ApiItem_descriptor, + new String[] { "Price", "Quantity", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthV3ApiItem.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthV3ApiItem.java new file mode 100644 index 00000000..6ff34a17 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthV3ApiItem.java @@ -0,0 +1,637 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicLimitDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicLimitDepthV3ApiItem} + */ +public final class PublicLimitDepthV3ApiItem extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicLimitDepthV3ApiItem) + PublicLimitDepthV3ApiItemOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicLimitDepthV3ApiItem.class.getName()); + } + // Use PublicLimitDepthV3ApiItem.newBuilder() to construct. + private PublicLimitDepthV3ApiItem(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicLimitDepthV3ApiItem() { + price_ = ""; + quantity_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicLimitDepthV3ApiItem.class, Builder.class); + } + + public static final int PRICE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, quantity_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, quantity_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicLimitDepthV3ApiItem)) { + return super.equals(obj); + } + PublicLimitDepthV3ApiItem other = (PublicLimitDepthV3ApiItem) obj; + + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicLimitDepthV3ApiItem parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicLimitDepthV3ApiItem parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicLimitDepthV3ApiItem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicLimitDepthV3ApiItem parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicLimitDepthV3ApiItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicLimitDepthV3ApiItem parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicLimitDepthV3ApiItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicLimitDepthV3ApiItem parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicLimitDepthV3ApiItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicLimitDepthV3ApiItem parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicLimitDepthV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicLimitDepthV3ApiItem parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicLimitDepthV3ApiItem prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicLimitDepthV3ApiItem} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicLimitDepthV3ApiItem) + PublicLimitDepthV3ApiItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthV3ApiItem_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthV3ApiItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicLimitDepthV3ApiItem.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicLimitDepthV3ApiItem.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + price_ = ""; + quantity_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthV3ApiItem_descriptor; + } + + @Override + public PublicLimitDepthV3ApiItem getDefaultInstanceForType() { + return PublicLimitDepthV3ApiItem.getDefaultInstance(); + } + + @Override + public PublicLimitDepthV3ApiItem build() { + PublicLimitDepthV3ApiItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicLimitDepthV3ApiItem buildPartial() { + PublicLimitDepthV3ApiItem result = new PublicLimitDepthV3ApiItem(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicLimitDepthV3ApiItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.quantity_ = quantity_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicLimitDepthV3ApiItem) { + return mergeFrom((PublicLimitDepthV3ApiItem)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicLimitDepthV3ApiItem other) { + if (other == PublicLimitDepthV3ApiItem.getDefaultInstance()) return this; + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + 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 Object price_ = ""; + /** + * string price = 1; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string price = 1; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string price = 1; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string price = 1; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string price = 1; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + * string quantity = 2; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string quantity = 2; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string quantity = 2; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string quantity = 2; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicLimitDepthV3ApiItem) + } + + // @@protoc_insertion_point(class_scope:PublicLimitDepthV3ApiItem) + private static final PublicLimitDepthV3ApiItem DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicLimitDepthV3ApiItem(); + } + + public static PublicLimitDepthV3ApiItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicLimitDepthV3ApiItem 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicLimitDepthV3ApiItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthV3ApiItemOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthV3ApiItemOrBuilder.java new file mode 100644 index 00000000..1b80f636 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthV3ApiItemOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicLimitDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicLimitDepthV3ApiItemOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicLimitDepthV3ApiItem) + com.google.protobuf.MessageOrBuilder { + + /** + * string price = 1; + * @return The price. + */ + String getPrice(); + /** + * string price = 1; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + * string quantity = 2; + * @return The quantity. + */ + String getQuantity(); + /** + * string quantity = 2; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3Api.java new file mode 100644 index 00000000..4b9bef23 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3Api.java @@ -0,0 +1,1341 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicLimitDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicLimitDepthsV3Api} + */ +public final class PublicLimitDepthsV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicLimitDepthsV3Api) + PublicLimitDepthsV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicLimitDepthsV3Api.class.getName()); + } + // Use PublicLimitDepthsV3Api.newBuilder() to construct. + private PublicLimitDepthsV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicLimitDepthsV3Api() { + asks_ = java.util.Collections.emptyList(); + bids_ = java.util.Collections.emptyList(); + eventType_ = ""; + version_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicLimitDepthsV3Api.class, Builder.class); + } + + public static final int ASKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List asks_; + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + @Override + public java.util.List getAsksList() { + return asks_; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + @Override + public java.util.List + getAsksOrBuilderList() { + return asks_; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + @Override + public int getAsksCount() { + return asks_.size(); + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + @Override + public PublicLimitDepthV3ApiItem getAsks(int index) { + return asks_.get(index); + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + @Override + public PublicLimitDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index) { + return asks_.get(index); + } + + public static final int BIDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List bids_; + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + @Override + public java.util.List getBidsList() { + return bids_; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + @Override + public java.util.List + getBidsOrBuilderList() { + return bids_; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + @Override + public int getBidsCount() { + return bids_.size(); + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + @Override + public PublicLimitDepthV3ApiItem getBids(int index) { + return bids_.get(index); + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + @Override + public PublicLimitDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index) { + return bids_.get(index); + } + + public static final int EVENTTYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object eventType_ = ""; + /** + * string eventType = 3; + * @return The eventType. + */ + @Override + public String getEventType() { + Object ref = eventType_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } + } + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + @Override + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object version_ = ""; + /** + * string version = 4; + * @return The version. + */ + @Override + public String getVersion() { + Object ref = version_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + version_ = s; + return s; + } + } + /** + * string version = 4; + * @return The bytes for version. + */ + @Override + public com.google.protobuf.ByteString + getVersionBytes() { + Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < asks_.size(); i++) { + output.writeMessage(1, asks_.get(i)); + } + for (int i = 0; i < bids_.size(); i++) { + output.writeMessage(2, bids_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, eventType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, version_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < asks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, asks_.get(i)); + } + for (int i = 0; i < bids_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, bids_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, eventType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicLimitDepthsV3Api)) { + return super.equals(obj); + } + PublicLimitDepthsV3Api other = (PublicLimitDepthsV3Api) obj; + + if (!getAsksList() + .equals(other.getAsksList())) return false; + if (!getBidsList() + .equals(other.getBidsList())) return false; + if (!getEventType() + .equals(other.getEventType())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAsksCount() > 0) { + hash = (37 * hash) + ASKS_FIELD_NUMBER; + hash = (53 * hash) + getAsksList().hashCode(); + } + if (getBidsCount() > 0) { + hash = (37 * hash) + BIDS_FIELD_NUMBER; + hash = (53 * hash) + getBidsList().hashCode(); + } + hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventType().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicLimitDepthsV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicLimitDepthsV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicLimitDepthsV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicLimitDepthsV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicLimitDepthsV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicLimitDepthsV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicLimitDepthsV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicLimitDepthsV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicLimitDepthsV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicLimitDepthsV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicLimitDepthsV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicLimitDepthsV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicLimitDepthsV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicLimitDepthsV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicLimitDepthsV3Api) + PublicLimitDepthsV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthsV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthsV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicLimitDepthsV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicLimitDepthsV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (asksBuilder_ == null) { + asks_ = java.util.Collections.emptyList(); + } else { + asks_ = null; + asksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (bidsBuilder_ == null) { + bids_ = java.util.Collections.emptyList(); + } else { + bids_ = null; + bidsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + eventType_ = ""; + version_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicLimitDepthsV3ApiProto.internal_static_PublicLimitDepthsV3Api_descriptor; + } + + @Override + public PublicLimitDepthsV3Api getDefaultInstanceForType() { + return PublicLimitDepthsV3Api.getDefaultInstance(); + } + + @Override + public PublicLimitDepthsV3Api build() { + PublicLimitDepthsV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicLimitDepthsV3Api buildPartial() { + PublicLimitDepthsV3Api result = new PublicLimitDepthsV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicLimitDepthsV3Api result) { + if (asksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + asks_ = java.util.Collections.unmodifiableList(asks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.asks_ = asks_; + } else { + result.asks_ = asksBuilder_.build(); + } + if (bidsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + bids_ = java.util.Collections.unmodifiableList(bids_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.bids_ = bids_; + } else { + result.bids_ = bidsBuilder_.build(); + } + } + + private void buildPartial0(PublicLimitDepthsV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventType_ = eventType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicLimitDepthsV3Api) { + return mergeFrom((PublicLimitDepthsV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicLimitDepthsV3Api other) { + if (other == PublicLimitDepthsV3Api.getDefaultInstance()) return this; + if (asksBuilder_ == null) { + if (!other.asks_.isEmpty()) { + if (asks_.isEmpty()) { + asks_ = other.asks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAsksIsMutable(); + asks_.addAll(other.asks_); + } + onChanged(); + } + } else { + if (!other.asks_.isEmpty()) { + if (asksBuilder_.isEmpty()) { + asksBuilder_.dispose(); + asksBuilder_ = null; + asks_ = other.asks_; + bitField0_ = (bitField0_ & ~0x00000001); + asksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getAsksFieldBuilder() : null; + } else { + asksBuilder_.addAllMessages(other.asks_); + } + } + } + if (bidsBuilder_ == null) { + if (!other.bids_.isEmpty()) { + if (bids_.isEmpty()) { + bids_ = other.bids_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureBidsIsMutable(); + bids_.addAll(other.bids_); + } + onChanged(); + } + } else { + if (!other.bids_.isEmpty()) { + if (bidsBuilder_.isEmpty()) { + bidsBuilder_.dispose(); + bidsBuilder_ = null; + bids_ = other.bids_; + bitField0_ = (bitField0_ & ~0x00000002); + bidsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getBidsFieldBuilder() : null; + } else { + bidsBuilder_.addAllMessages(other.bids_); + } + } + } + if (!other.getEventType().isEmpty()) { + eventType_ = other.eventType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicLimitDepthV3ApiItem m = + input.readMessage( + PublicLimitDepthV3ApiItem.parser(), + extensionRegistry); + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(m); + } else { + asksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + PublicLimitDepthV3ApiItem m = + input.readMessage( + PublicLimitDepthV3ApiItem.parser(), + extensionRegistry); + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(m); + } else { + bidsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + eventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 java.util.List asks_ = + java.util.Collections.emptyList(); + private void ensureAsksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + asks_ = new java.util.ArrayList(asks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicLimitDepthV3ApiItem, PublicLimitDepthV3ApiItem.Builder, PublicLimitDepthV3ApiItemOrBuilder> asksBuilder_; + + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public java.util.List getAsksList() { + if (asksBuilder_ == null) { + return java.util.Collections.unmodifiableList(asks_); + } else { + return asksBuilder_.getMessageList(); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public int getAsksCount() { + if (asksBuilder_ == null) { + return asks_.size(); + } else { + return asksBuilder_.getCount(); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public PublicLimitDepthV3ApiItem getAsks(int index) { + if (asksBuilder_ == null) { + return asks_.get(index); + } else { + return asksBuilder_.getMessage(index); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder setAsks( + int index, PublicLimitDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.set(index, value); + onChanged(); + } else { + asksBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder setAsks( + int index, PublicLimitDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.set(index, builderForValue.build()); + onChanged(); + } else { + asksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder addAsks(PublicLimitDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.add(value); + onChanged(); + } else { + asksBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + int index, PublicLimitDepthV3ApiItem value) { + if (asksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAsksIsMutable(); + asks_.add(index, value); + onChanged(); + } else { + asksBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + PublicLimitDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(builderForValue.build()); + onChanged(); + } else { + asksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder addAsks( + int index, PublicLimitDepthV3ApiItem.Builder builderForValue) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.add(index, builderForValue.build()); + onChanged(); + } else { + asksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder addAllAsks( + Iterable values) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, asks_); + onChanged(); + } else { + asksBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder clearAsks() { + if (asksBuilder_ == null) { + asks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + asksBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public Builder removeAsks(int index) { + if (asksBuilder_ == null) { + ensureAsksIsMutable(); + asks_.remove(index); + onChanged(); + } else { + asksBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public PublicLimitDepthV3ApiItem.Builder getAsksBuilder( + int index) { + return getAsksFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public PublicLimitDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index) { + if (asksBuilder_ == null) { + return asks_.get(index); } else { + return asksBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public java.util.List + getAsksOrBuilderList() { + if (asksBuilder_ != null) { + return asksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(asks_); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public PublicLimitDepthV3ApiItem.Builder addAsksBuilder() { + return getAsksFieldBuilder().addBuilder( + PublicLimitDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public PublicLimitDepthV3ApiItem.Builder addAsksBuilder( + int index) { + return getAsksFieldBuilder().addBuilder( + index, PublicLimitDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + public java.util.List + getAsksBuilderList() { + return getAsksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicLimitDepthV3ApiItem, PublicLimitDepthV3ApiItem.Builder, PublicLimitDepthV3ApiItemOrBuilder> + getAsksFieldBuilder() { + if (asksBuilder_ == null) { + asksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicLimitDepthV3ApiItem, PublicLimitDepthV3ApiItem.Builder, PublicLimitDepthV3ApiItemOrBuilder>( + asks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + asks_ = null; + } + return asksBuilder_; + } + + private java.util.List bids_ = + java.util.Collections.emptyList(); + private void ensureBidsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + bids_ = new java.util.ArrayList(bids_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicLimitDepthV3ApiItem, PublicLimitDepthV3ApiItem.Builder, PublicLimitDepthV3ApiItemOrBuilder> bidsBuilder_; + + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public java.util.List getBidsList() { + if (bidsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bids_); + } else { + return bidsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public int getBidsCount() { + if (bidsBuilder_ == null) { + return bids_.size(); + } else { + return bidsBuilder_.getCount(); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public PublicLimitDepthV3ApiItem getBids(int index) { + if (bidsBuilder_ == null) { + return bids_.get(index); + } else { + return bidsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder setBids( + int index, PublicLimitDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.set(index, value); + onChanged(); + } else { + bidsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder setBids( + int index, PublicLimitDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.set(index, builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder addBids(PublicLimitDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.add(value); + onChanged(); + } else { + bidsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder addBids( + int index, PublicLimitDepthV3ApiItem value) { + if (bidsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBidsIsMutable(); + bids_.add(index, value); + onChanged(); + } else { + bidsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder addBids( + PublicLimitDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder addBids( + int index, PublicLimitDepthV3ApiItem.Builder builderForValue) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.add(index, builderForValue.build()); + onChanged(); + } else { + bidsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder addAllBids( + Iterable values) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bids_); + onChanged(); + } else { + bidsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder clearBids() { + if (bidsBuilder_ == null) { + bids_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + bidsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public Builder removeBids(int index) { + if (bidsBuilder_ == null) { + ensureBidsIsMutable(); + bids_.remove(index); + onChanged(); + } else { + bidsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public PublicLimitDepthV3ApiItem.Builder getBidsBuilder( + int index) { + return getBidsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public PublicLimitDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index) { + if (bidsBuilder_ == null) { + return bids_.get(index); } else { + return bidsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public java.util.List + getBidsOrBuilderList() { + if (bidsBuilder_ != null) { + return bidsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bids_); + } + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public PublicLimitDepthV3ApiItem.Builder addBidsBuilder() { + return getBidsFieldBuilder().addBuilder( + PublicLimitDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public PublicLimitDepthV3ApiItem.Builder addBidsBuilder( + int index) { + return getBidsFieldBuilder().addBuilder( + index, PublicLimitDepthV3ApiItem.getDefaultInstance()); + } + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + public java.util.List + getBidsBuilderList() { + return getBidsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicLimitDepthV3ApiItem, PublicLimitDepthV3ApiItem.Builder, PublicLimitDepthV3ApiItemOrBuilder> + getBidsFieldBuilder() { + if (bidsBuilder_ == null) { + bidsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicLimitDepthV3ApiItem, PublicLimitDepthV3ApiItem.Builder, PublicLimitDepthV3ApiItemOrBuilder>( + bids_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + bids_ = null; + } + return bidsBuilder_; + } + + private Object eventType_ = ""; + /** + * string eventType = 3; + * @return The eventType. + */ + public String getEventType() { + Object ref = eventType_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + eventType_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + public com.google.protobuf.ByteString + getEventTypeBytes() { + Object ref = eventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + eventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string eventType = 3; + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType( + String value) { + if (value == null) { throw new NullPointerException(); } + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string eventType = 3; + * @return This builder for chaining. + */ + public Builder clearEventType() { + eventType_ = getDefaultInstance().getEventType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string eventType = 3; + * @param value The bytes for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + eventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object version_ = ""; + /** + * string version = 4; + * @return The version. + */ + public String getVersion() { + Object ref = version_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (String) ref; + } + } + /** + * string version = 4; + * @return The bytes for version. + */ + public com.google.protobuf.ByteString + getVersionBytes() { + Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string version = 4; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion( + String value) { + if (value == null) { throw new NullPointerException(); } + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string version = 4; + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string version = 4; + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicLimitDepthsV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicLimitDepthsV3Api) + private static final PublicLimitDepthsV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicLimitDepthsV3Api(); + } + + public static PublicLimitDepthsV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicLimitDepthsV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicLimitDepthsV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3ApiOrBuilder.java new file mode 100644 index 00000000..d4affbcb --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3ApiOrBuilder.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicLimitDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicLimitDepthsV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicLimitDepthsV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + java.util.List + getAsksList(); + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + PublicLimitDepthV3ApiItem getAsks(int index); + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + int getAsksCount(); + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + java.util.List + getAsksOrBuilderList(); + /** + * repeated .PublicLimitDepthV3ApiItem asks = 1; + */ + PublicLimitDepthV3ApiItemOrBuilder getAsksOrBuilder( + int index); + + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + java.util.List + getBidsList(); + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + PublicLimitDepthV3ApiItem getBids(int index); + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + int getBidsCount(); + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + java.util.List + getBidsOrBuilderList(); + /** + * repeated .PublicLimitDepthV3ApiItem bids = 2; + */ + PublicLimitDepthV3ApiItemOrBuilder getBidsOrBuilder( + int index); + + /** + * string eventType = 3; + * @return The eventType. + */ + String getEventType(); + /** + * string eventType = 3; + * @return The bytes for eventType. + */ + com.google.protobuf.ByteString + getEventTypeBytes(); + + /** + * string version = 4; + * @return The version. + */ + String getVersion(); + /** + * string version = 4; + * @return The bytes for version. + */ + com.google.protobuf.ByteString + getVersionBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3ApiProto.java new file mode 100644 index 00000000..10a1ecbc --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicLimitDepthsV3ApiProto.java @@ -0,0 +1,76 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicLimitDepthsV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicLimitDepthsV3ApiProto { + private PublicLimitDepthsV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicLimitDepthsV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicLimitDepthsV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicLimitDepthsV3Api_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicLimitDepthV3ApiItem_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicLimitDepthV3ApiItem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\034PublicLimitDepthsV3Api.proto\"\220\001\n\026Publi" + + "cLimitDepthsV3Api\022(\n\004asks\030\001 \003(\0132\032.Public" + + "LimitDepthV3ApiItem\022(\n\004bids\030\002 \003(\0132\032.Publ" + + "icLimitDepthV3ApiItem\022\021\n\teventType\030\003 \001(\t" + + "\022\017\n\007version\030\004 \001(\t\"<\n\031PublicLimitDepthV3A" + + "piItem\022\r\n\005price\030\001 \001(\t\022\020\n\010quantity\030\002 \001(\tB" + + "?\n\034com.mxc.push.common.protobufB\033PublicL" + + "imitDepthsV3ApiProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicLimitDepthsV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicLimitDepthsV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicLimitDepthsV3Api_descriptor, + new String[] { "Asks", "Bids", "EventType", "Version", }); + internal_static_PublicLimitDepthV3ApiItem_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_PublicLimitDepthV3ApiItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicLimitDepthV3ApiItem_descriptor, + new String[] { "Price", "Quantity", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3Api.java new file mode 100644 index 00000000..15ba376e --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3Api.java @@ -0,0 +1,2333 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicMiniTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicMiniTickerV3Api} + */ +public final class PublicMiniTickerV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicMiniTickerV3Api) + PublicMiniTickerV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicMiniTickerV3Api.class.getName()); + } + // Use PublicMiniTickerV3Api.newBuilder() to construct. + private PublicMiniTickerV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicMiniTickerV3Api() { + symbol_ = ""; + price_ = ""; + rate_ = ""; + zonedRate_ = ""; + high_ = ""; + low_ = ""; + volume_ = ""; + quantity_ = ""; + lastCloseRate_ = ""; + lastCloseZonedRate_ = ""; + lastCloseHigh_ = ""; + lastCloseLow_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicMiniTickerV3ApiProto.internal_static_PublicMiniTickerV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicMiniTickerV3ApiProto.internal_static_PublicMiniTickerV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicMiniTickerV3Api.class, Builder.class); + } + + public static final int SYMBOL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object symbol_ = ""; + /** + *
+   * 交易对名
+   * 
+ * + * string symbol = 1; + * @return The symbol. + */ + @Override + public String getSymbol() { + Object ref = symbol_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + /** + *
+   * 交易对名
+   * 
+ * + * string symbol = 1; + * @return The bytes for symbol. + */ + @Override + public com.google.protobuf.ByteString + getSymbolBytes() { + Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRICE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile Object price_ = ""; + /** + *
+   * 最新价格
+   * 
+ * + * string price = 2; + * @return The price. + */ + @Override + public String getPrice() { + Object ref = price_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } + } + /** + *
+   * 最新价格
+   * 
+ * + * string price = 2; + * @return The bytes for price. + */ + @Override + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object rate_ = ""; + /** + *
+   * utc+8时区涨跌幅
+   * 
+ * + * string rate = 3; + * @return The rate. + */ + @Override + public String getRate() { + Object ref = rate_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + rate_ = s; + return s; + } + } + /** + *
+   * utc+8时区涨跌幅
+   * 
+ * + * string rate = 3; + * @return The bytes for rate. + */ + @Override + public com.google.protobuf.ByteString + getRateBytes() { + Object ref = rate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + rate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONEDRATE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object zonedRate_ = ""; + /** + *
+   * 时区涨跌幅
+   * 
+ * + * string zonedRate = 4; + * @return The zonedRate. + */ + @Override + public String getZonedRate() { + Object ref = zonedRate_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + zonedRate_ = s; + return s; + } + } + /** + *
+   * 时区涨跌幅
+   * 
+ * + * string zonedRate = 4; + * @return The bytes for zonedRate. + */ + @Override + public com.google.protobuf.ByteString + getZonedRateBytes() { + Object ref = zonedRate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + zonedRate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIGH_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile Object high_ = ""; + /** + *
+   * 滚动最高价
+   * 
+ * + * string high = 5; + * @return The high. + */ + @Override + public String getHigh() { + Object ref = high_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + high_ = s; + return s; + } + } + /** + *
+   * 滚动最高价
+   * 
+ * + * string high = 5; + * @return The bytes for high. + */ + @Override + public com.google.protobuf.ByteString + getHighBytes() { + Object ref = high_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOW_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile Object low_ = ""; + /** + *
+   * 滚动最低价
+   * 
+ * + * string low = 6; + * @return The low. + */ + @Override + public String getLow() { + Object ref = low_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + low_ = s; + return s; + } + } + /** + *
+   * 滚动最低价
+   * 
+ * + * string low = 6; + * @return The bytes for low. + */ + @Override + public com.google.protobuf.ByteString + getLowBytes() { + Object ref = low_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile Object volume_ = ""; + /** + *
+   * 滚动成交额
+   * 
+ * + * string volume = 7; + * @return The volume. + */ + @Override + public String getVolume() { + Object ref = volume_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + volume_ = s; + return s; + } + } + /** + *
+   * 滚动成交额
+   * 
+ * + * string volume = 7; + * @return The bytes for volume. + */ + @Override + public com.google.protobuf.ByteString + getVolumeBytes() { + Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUANTITY_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile Object quantity_ = ""; + /** + *
+   * 滚动成交量
+   * 
+ * + * string quantity = 8; + * @return The quantity. + */ + @Override + public String getQuantity() { + Object ref = quantity_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } + } + /** + *
+   * 滚动成交量
+   * 
+ * + * string quantity = 8; + * @return The bytes for quantity. + */ + @Override + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTCLOSERATE_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile Object lastCloseRate_ = ""; + /** + *
+   * utc+8时区上期收盘价模式涨跌幅
+   * 
+ * + * string lastCloseRate = 9; + * @return The lastCloseRate. + */ + @Override + public String getLastCloseRate() { + Object ref = lastCloseRate_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseRate_ = s; + return s; + } + } + /** + *
+   * utc+8时区上期收盘价模式涨跌幅
+   * 
+ * + * string lastCloseRate = 9; + * @return The bytes for lastCloseRate. + */ + @Override + public com.google.protobuf.ByteString + getLastCloseRateBytes() { + Object ref = lastCloseRate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseRate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTCLOSEZONEDRATE_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile Object lastCloseZonedRate_ = ""; + /** + *
+   * 上期收盘价模式时区涨跌幅
+   * 
+ * + * string lastCloseZonedRate = 10; + * @return The lastCloseZonedRate. + */ + @Override + public String getLastCloseZonedRate() { + Object ref = lastCloseZonedRate_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseZonedRate_ = s; + return s; + } + } + /** + *
+   * 上期收盘价模式时区涨跌幅
+   * 
+ * + * string lastCloseZonedRate = 10; + * @return The bytes for lastCloseZonedRate. + */ + @Override + public com.google.protobuf.ByteString + getLastCloseZonedRateBytes() { + Object ref = lastCloseZonedRate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseZonedRate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTCLOSEHIGH_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile Object lastCloseHigh_ = ""; + /** + *
+   * 上期收盘价模式滚动最高价
+   * 
+ * + * string lastCloseHigh = 11; + * @return The lastCloseHigh. + */ + @Override + public String getLastCloseHigh() { + Object ref = lastCloseHigh_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseHigh_ = s; + return s; + } + } + /** + *
+   * 上期收盘价模式滚动最高价
+   * 
+ * + * string lastCloseHigh = 11; + * @return The bytes for lastCloseHigh. + */ + @Override + public com.google.protobuf.ByteString + getLastCloseHighBytes() { + Object ref = lastCloseHigh_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseHigh_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTCLOSELOW_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile Object lastCloseLow_ = ""; + /** + *
+   * 上期收盘价模式滚动最低价
+   * 
+ * + * string lastCloseLow = 12; + * @return The lastCloseLow. + */ + @Override + public String getLastCloseLow() { + Object ref = lastCloseLow_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseLow_ = s; + return s; + } + } + /** + *
+   * 上期收盘价模式滚动最低价
+   * 
+ * + * string lastCloseLow = 12; + * @return The bytes for lastCloseLow. + */ + @Override + public com.google.protobuf.ByteString + getLastCloseLowBytes() { + Object ref = lastCloseLow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseLow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, symbol_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zonedRate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, zonedRate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(high_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, high_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(low_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, low_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volume_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, volume_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, quantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseRate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, lastCloseRate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseZonedRate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, lastCloseZonedRate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseHigh_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, lastCloseHigh_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseLow_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, lastCloseLow_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(symbol_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, symbol_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(price_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, price_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(zonedRate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, zonedRate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(high_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, high_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(low_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, low_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volume_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, volume_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(quantity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, quantity_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseRate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, lastCloseRate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseZonedRate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, lastCloseZonedRate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseHigh_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, lastCloseHigh_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lastCloseLow_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, lastCloseLow_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicMiniTickerV3Api)) { + return super.equals(obj); + } + PublicMiniTickerV3Api other = (PublicMiniTickerV3Api) obj; + + if (!getSymbol() + .equals(other.getSymbol())) return false; + if (!getPrice() + .equals(other.getPrice())) return false; + if (!getRate() + .equals(other.getRate())) return false; + if (!getZonedRate() + .equals(other.getZonedRate())) return false; + if (!getHigh() + .equals(other.getHigh())) return false; + if (!getLow() + .equals(other.getLow())) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (!getQuantity() + .equals(other.getQuantity())) return false; + if (!getLastCloseRate() + .equals(other.getLastCloseRate())) return false; + if (!getLastCloseZonedRate() + .equals(other.getLastCloseZonedRate())) return false; + if (!getLastCloseHigh() + .equals(other.getLastCloseHigh())) return false; + if (!getLastCloseLow() + .equals(other.getLastCloseLow())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + hash = (37 * hash) + PRICE_FIELD_NUMBER; + hash = (53 * hash) + getPrice().hashCode(); + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate().hashCode(); + hash = (37 * hash) + ZONEDRATE_FIELD_NUMBER; + hash = (53 * hash) + getZonedRate().hashCode(); + hash = (37 * hash) + HIGH_FIELD_NUMBER; + hash = (53 * hash) + getHigh().hashCode(); + hash = (37 * hash) + LOW_FIELD_NUMBER; + hash = (53 * hash) + getLow().hashCode(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + hash = (37 * hash) + QUANTITY_FIELD_NUMBER; + hash = (53 * hash) + getQuantity().hashCode(); + hash = (37 * hash) + LASTCLOSERATE_FIELD_NUMBER; + hash = (53 * hash) + getLastCloseRate().hashCode(); + hash = (37 * hash) + LASTCLOSEZONEDRATE_FIELD_NUMBER; + hash = (53 * hash) + getLastCloseZonedRate().hashCode(); + hash = (37 * hash) + LASTCLOSEHIGH_FIELD_NUMBER; + hash = (53 * hash) + getLastCloseHigh().hashCode(); + hash = (37 * hash) + LASTCLOSELOW_FIELD_NUMBER; + hash = (53 * hash) + getLastCloseLow().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicMiniTickerV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicMiniTickerV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicMiniTickerV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicMiniTickerV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicMiniTickerV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicMiniTickerV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicMiniTickerV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicMiniTickerV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicMiniTickerV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicMiniTickerV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicMiniTickerV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicMiniTickerV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicMiniTickerV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicMiniTickerV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicMiniTickerV3Api) + PublicMiniTickerV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicMiniTickerV3ApiProto.internal_static_PublicMiniTickerV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicMiniTickerV3ApiProto.internal_static_PublicMiniTickerV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicMiniTickerV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicMiniTickerV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + symbol_ = ""; + price_ = ""; + rate_ = ""; + zonedRate_ = ""; + high_ = ""; + low_ = ""; + volume_ = ""; + quantity_ = ""; + lastCloseRate_ = ""; + lastCloseZonedRate_ = ""; + lastCloseHigh_ = ""; + lastCloseLow_ = ""; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicMiniTickerV3ApiProto.internal_static_PublicMiniTickerV3Api_descriptor; + } + + @Override + public PublicMiniTickerV3Api getDefaultInstanceForType() { + return PublicMiniTickerV3Api.getDefaultInstance(); + } + + @Override + public PublicMiniTickerV3Api build() { + PublicMiniTickerV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicMiniTickerV3Api buildPartial() { + PublicMiniTickerV3Api result = new PublicMiniTickerV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicMiniTickerV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.symbol_ = symbol_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.price_ = price_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rate_ = rate_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zonedRate_ = zonedRate_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.high_ = high_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.low_ = low_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.volume_ = volume_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.quantity_ = quantity_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.lastCloseRate_ = lastCloseRate_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.lastCloseZonedRate_ = lastCloseZonedRate_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.lastCloseHigh_ = lastCloseHigh_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.lastCloseLow_ = lastCloseLow_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicMiniTickerV3Api) { + return mergeFrom((PublicMiniTickerV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicMiniTickerV3Api other) { + if (other == PublicMiniTickerV3Api.getDefaultInstance()) return this; + if (!other.getSymbol().isEmpty()) { + symbol_ = other.symbol_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrice().isEmpty()) { + price_ = other.price_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRate().isEmpty()) { + rate_ = other.rate_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getZonedRate().isEmpty()) { + zonedRate_ = other.zonedRate_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getHigh().isEmpty()) { + high_ = other.high_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getLow().isEmpty()) { + low_ = other.low_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getQuantity().isEmpty()) { + quantity_ = other.quantity_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getLastCloseRate().isEmpty()) { + lastCloseRate_ = other.lastCloseRate_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getLastCloseZonedRate().isEmpty()) { + lastCloseZonedRate_ = other.lastCloseZonedRate_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getLastCloseHigh().isEmpty()) { + lastCloseHigh_ = other.lastCloseHigh_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getLastCloseLow().isEmpty()) { + lastCloseLow_ = other.lastCloseLow_; + bitField0_ |= 0x00000800; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + symbol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + price_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + rate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + zonedRate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + high_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + low_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + volume_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + quantity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + lastCloseRate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + lastCloseZonedRate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + lastCloseHigh_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + lastCloseLow_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + 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 Object symbol_ = ""; + /** + *
+     * 交易对名
+     * 
+ * + * string symbol = 1; + * @return The symbol. + */ + public String getSymbol() { + Object ref = symbol_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 交易对名
+     * 
+ * + * string symbol = 1; + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString + getSymbolBytes() { + Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 交易对名
+     * 
+ * + * string symbol = 1; + * @param value The symbol to set. + * @return This builder for chaining. + */ + public Builder setSymbol( + String value) { + if (value == null) { throw new NullPointerException(); } + symbol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * 交易对名
+     * 
+ * + * string symbol = 1; + * @return This builder for chaining. + */ + public Builder clearSymbol() { + symbol_ = getDefaultInstance().getSymbol(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * 交易对名
+     * 
+ * + * string symbol = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private Object price_ = ""; + /** + *
+     * 最新价格
+     * 
+ * + * string price = 2; + * @return The price. + */ + public String getPrice() { + Object ref = price_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + price_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 最新价格
+     * 
+ * + * string price = 2; + * @return The bytes for price. + */ + public com.google.protobuf.ByteString + getPriceBytes() { + Object ref = price_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + price_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 最新价格
+     * 
+ * + * string price = 2; + * @param value The price to set. + * @return This builder for chaining. + */ + public Builder setPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + price_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 最新价格
+     * 
+ * + * string price = 2; + * @return This builder for chaining. + */ + public Builder clearPrice() { + price_ = getDefaultInstance().getPrice(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * 最新价格
+     * 
+ * + * string price = 2; + * @param value The bytes for price to set. + * @return This builder for chaining. + */ + public Builder setPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + price_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private Object rate_ = ""; + /** + *
+     * utc+8时区涨跌幅
+     * 
+ * + * string rate = 3; + * @return The rate. + */ + public String getRate() { + Object ref = rate_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + rate_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * utc+8时区涨跌幅
+     * 
+ * + * string rate = 3; + * @return The bytes for rate. + */ + public com.google.protobuf.ByteString + getRateBytes() { + Object ref = rate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + rate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * utc+8时区涨跌幅
+     * 
+ * + * string rate = 3; + * @param value The rate to set. + * @return This builder for chaining. + */ + public Builder setRate( + String value) { + if (value == null) { throw new NullPointerException(); } + rate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * utc+8时区涨跌幅
+     * 
+ * + * string rate = 3; + * @return This builder for chaining. + */ + public Builder clearRate() { + rate_ = getDefaultInstance().getRate(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * utc+8时区涨跌幅
+     * 
+ * + * string rate = 3; + * @param value The bytes for rate to set. + * @return This builder for chaining. + */ + public Builder setRateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + rate_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object zonedRate_ = ""; + /** + *
+     * 时区涨跌幅
+     * 
+ * + * string zonedRate = 4; + * @return The zonedRate. + */ + public String getZonedRate() { + Object ref = zonedRate_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + zonedRate_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 时区涨跌幅
+     * 
+ * + * string zonedRate = 4; + * @return The bytes for zonedRate. + */ + public com.google.protobuf.ByteString + getZonedRateBytes() { + Object ref = zonedRate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + zonedRate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 时区涨跌幅
+     * 
+ * + * string zonedRate = 4; + * @param value The zonedRate to set. + * @return This builder for chaining. + */ + public Builder setZonedRate( + String value) { + if (value == null) { throw new NullPointerException(); } + zonedRate_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * 时区涨跌幅
+     * 
+ * + * string zonedRate = 4; + * @return This builder for chaining. + */ + public Builder clearZonedRate() { + zonedRate_ = getDefaultInstance().getZonedRate(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * 时区涨跌幅
+     * 
+ * + * string zonedRate = 4; + * @param value The bytes for zonedRate to set. + * @return This builder for chaining. + */ + public Builder setZonedRateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + zonedRate_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private Object high_ = ""; + /** + *
+     * 滚动最高价
+     * 
+ * + * string high = 5; + * @return The high. + */ + public String getHigh() { + Object ref = high_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + high_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 滚动最高价
+     * 
+ * + * string high = 5; + * @return The bytes for high. + */ + public com.google.protobuf.ByteString + getHighBytes() { + Object ref = high_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + high_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 滚动最高价
+     * 
+ * + * string high = 5; + * @param value The high to set. + * @return This builder for chaining. + */ + public Builder setHigh( + String value) { + if (value == null) { throw new NullPointerException(); } + high_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * 滚动最高价
+     * 
+ * + * string high = 5; + * @return This builder for chaining. + */ + public Builder clearHigh() { + high_ = getDefaultInstance().getHigh(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * 滚动最高价
+     * 
+ * + * string high = 5; + * @param value The bytes for high to set. + * @return This builder for chaining. + */ + public Builder setHighBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + high_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private Object low_ = ""; + /** + *
+     * 滚动最低价
+     * 
+ * + * string low = 6; + * @return The low. + */ + public String getLow() { + Object ref = low_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + low_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 滚动最低价
+     * 
+ * + * string low = 6; + * @return The bytes for low. + */ + public com.google.protobuf.ByteString + getLowBytes() { + Object ref = low_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + low_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 滚动最低价
+     * 
+ * + * string low = 6; + * @param value The low to set. + * @return This builder for chaining. + */ + public Builder setLow( + String value) { + if (value == null) { throw new NullPointerException(); } + low_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * 滚动最低价
+     * 
+ * + * string low = 6; + * @return This builder for chaining. + */ + public Builder clearLow() { + low_ = getDefaultInstance().getLow(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * 滚动最低价
+     * 
+ * + * string low = 6; + * @param value The bytes for low to set. + * @return This builder for chaining. + */ + public Builder setLowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + low_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private Object volume_ = ""; + /** + *
+     * 滚动成交额
+     * 
+ * + * string volume = 7; + * @return The volume. + */ + public String getVolume() { + Object ref = volume_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 滚动成交额
+     * 
+ * + * string volume = 7; + * @return The bytes for volume. + */ + public com.google.protobuf.ByteString + getVolumeBytes() { + Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 滚动成交额
+     * 
+ * + * string volume = 7; + * @param value The volume to set. + * @return This builder for chaining. + */ + public Builder setVolume( + String value) { + if (value == null) { throw new NullPointerException(); } + volume_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * 滚动成交额
+     * 
+ * + * string volume = 7; + * @return This builder for chaining. + */ + public Builder clearVolume() { + volume_ = getDefaultInstance().getVolume(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * 滚动成交额
+     * 
+ * + * string volume = 7; + * @param value The bytes for volume to set. + * @return This builder for chaining. + */ + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + volume_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private Object quantity_ = ""; + /** + *
+     * 滚动成交量
+     * 
+ * + * string quantity = 8; + * @return The quantity. + */ + public String getQuantity() { + Object ref = quantity_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + quantity_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 滚动成交量
+     * 
+ * + * string quantity = 8; + * @return The bytes for quantity. + */ + public com.google.protobuf.ByteString + getQuantityBytes() { + Object ref = quantity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + quantity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 滚动成交量
+     * 
+ * + * string quantity = 8; + * @param value The quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantity( + String value) { + if (value == null) { throw new NullPointerException(); } + quantity_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * 滚动成交量
+     * 
+ * + * string quantity = 8; + * @return This builder for chaining. + */ + public Builder clearQuantity() { + quantity_ = getDefaultInstance().getQuantity(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * 滚动成交量
+     * 
+ * + * string quantity = 8; + * @param value The bytes for quantity to set. + * @return This builder for chaining. + */ + public Builder setQuantityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + quantity_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private Object lastCloseRate_ = ""; + /** + *
+     * utc+8时区上期收盘价模式涨跌幅
+     * 
+ * + * string lastCloseRate = 9; + * @return The lastCloseRate. + */ + public String getLastCloseRate() { + Object ref = lastCloseRate_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseRate_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * utc+8时区上期收盘价模式涨跌幅
+     * 
+ * + * string lastCloseRate = 9; + * @return The bytes for lastCloseRate. + */ + public com.google.protobuf.ByteString + getLastCloseRateBytes() { + Object ref = lastCloseRate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseRate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * utc+8时区上期收盘价模式涨跌幅
+     * 
+ * + * string lastCloseRate = 9; + * @param value The lastCloseRate to set. + * @return This builder for chaining. + */ + public Builder setLastCloseRate( + String value) { + if (value == null) { throw new NullPointerException(); } + lastCloseRate_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * utc+8时区上期收盘价模式涨跌幅
+     * 
+ * + * string lastCloseRate = 9; + * @return This builder for chaining. + */ + public Builder clearLastCloseRate() { + lastCloseRate_ = getDefaultInstance().getLastCloseRate(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + *
+     * utc+8时区上期收盘价模式涨跌幅
+     * 
+ * + * string lastCloseRate = 9; + * @param value The bytes for lastCloseRate to set. + * @return This builder for chaining. + */ + public Builder setLastCloseRateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastCloseRate_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private Object lastCloseZonedRate_ = ""; + /** + *
+     * 上期收盘价模式时区涨跌幅
+     * 
+ * + * string lastCloseZonedRate = 10; + * @return The lastCloseZonedRate. + */ + public String getLastCloseZonedRate() { + Object ref = lastCloseZonedRate_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseZonedRate_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 上期收盘价模式时区涨跌幅
+     * 
+ * + * string lastCloseZonedRate = 10; + * @return The bytes for lastCloseZonedRate. + */ + public com.google.protobuf.ByteString + getLastCloseZonedRateBytes() { + Object ref = lastCloseZonedRate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseZonedRate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 上期收盘价模式时区涨跌幅
+     * 
+ * + * string lastCloseZonedRate = 10; + * @param value The lastCloseZonedRate to set. + * @return This builder for chaining. + */ + public Builder setLastCloseZonedRate( + String value) { + if (value == null) { throw new NullPointerException(); } + lastCloseZonedRate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + *
+     * 上期收盘价模式时区涨跌幅
+     * 
+ * + * string lastCloseZonedRate = 10; + * @return This builder for chaining. + */ + public Builder clearLastCloseZonedRate() { + lastCloseZonedRate_ = getDefaultInstance().getLastCloseZonedRate(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+     * 上期收盘价模式时区涨跌幅
+     * 
+ * + * string lastCloseZonedRate = 10; + * @param value The bytes for lastCloseZonedRate to set. + * @return This builder for chaining. + */ + public Builder setLastCloseZonedRateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastCloseZonedRate_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private Object lastCloseHigh_ = ""; + /** + *
+     * 上期收盘价模式滚动最高价
+     * 
+ * + * string lastCloseHigh = 11; + * @return The lastCloseHigh. + */ + public String getLastCloseHigh() { + Object ref = lastCloseHigh_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseHigh_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 上期收盘价模式滚动最高价
+     * 
+ * + * string lastCloseHigh = 11; + * @return The bytes for lastCloseHigh. + */ + public com.google.protobuf.ByteString + getLastCloseHighBytes() { + Object ref = lastCloseHigh_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseHigh_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 上期收盘价模式滚动最高价
+     * 
+ * + * string lastCloseHigh = 11; + * @param value The lastCloseHigh to set. + * @return This builder for chaining. + */ + public Builder setLastCloseHigh( + String value) { + if (value == null) { throw new NullPointerException(); } + lastCloseHigh_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + *
+     * 上期收盘价模式滚动最高价
+     * 
+ * + * string lastCloseHigh = 11; + * @return This builder for chaining. + */ + public Builder clearLastCloseHigh() { + lastCloseHigh_ = getDefaultInstance().getLastCloseHigh(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + *
+     * 上期收盘价模式滚动最高价
+     * 
+ * + * string lastCloseHigh = 11; + * @param value The bytes for lastCloseHigh to set. + * @return This builder for chaining. + */ + public Builder setLastCloseHighBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastCloseHigh_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private Object lastCloseLow_ = ""; + /** + *
+     * 上期收盘价模式滚动最低价
+     * 
+ * + * string lastCloseLow = 12; + * @return The lastCloseLow. + */ + public String getLastCloseLow() { + Object ref = lastCloseLow_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lastCloseLow_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 上期收盘价模式滚动最低价
+     * 
+ * + * string lastCloseLow = 12; + * @return The bytes for lastCloseLow. + */ + public com.google.protobuf.ByteString + getLastCloseLowBytes() { + Object ref = lastCloseLow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lastCloseLow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 上期收盘价模式滚动最低价
+     * 
+ * + * string lastCloseLow = 12; + * @param value The lastCloseLow to set. + * @return This builder for chaining. + */ + public Builder setLastCloseLow( + String value) { + if (value == null) { throw new NullPointerException(); } + lastCloseLow_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + *
+     * 上期收盘价模式滚动最低价
+     * 
+ * + * string lastCloseLow = 12; + * @return This builder for chaining. + */ + public Builder clearLastCloseLow() { + lastCloseLow_ = getDefaultInstance().getLastCloseLow(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + *
+     * 上期收盘价模式滚动最低价
+     * 
+ * + * string lastCloseLow = 12; + * @param value The bytes for lastCloseLow to set. + * @return This builder for chaining. + */ + public Builder setLastCloseLowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lastCloseLow_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicMiniTickerV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicMiniTickerV3Api) + private static final PublicMiniTickerV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicMiniTickerV3Api(); + } + + public static PublicMiniTickerV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicMiniTickerV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicMiniTickerV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3ApiOrBuilder.java new file mode 100644 index 00000000..54c85928 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3ApiOrBuilder.java @@ -0,0 +1,251 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicMiniTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicMiniTickerV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicMiniTickerV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 交易对名
+   * 
+ * + * string symbol = 1; + * @return The symbol. + */ + String getSymbol(); + /** + *
+   * 交易对名
+   * 
+ * + * string symbol = 1; + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString + getSymbolBytes(); + + /** + *
+   * 最新价格
+   * 
+ * + * string price = 2; + * @return The price. + */ + String getPrice(); + /** + *
+   * 最新价格
+   * 
+ * + * string price = 2; + * @return The bytes for price. + */ + com.google.protobuf.ByteString + getPriceBytes(); + + /** + *
+   * utc+8时区涨跌幅
+   * 
+ * + * string rate = 3; + * @return The rate. + */ + String getRate(); + /** + *
+   * utc+8时区涨跌幅
+   * 
+ * + * string rate = 3; + * @return The bytes for rate. + */ + com.google.protobuf.ByteString + getRateBytes(); + + /** + *
+   * 时区涨跌幅
+   * 
+ * + * string zonedRate = 4; + * @return The zonedRate. + */ + String getZonedRate(); + /** + *
+   * 时区涨跌幅
+   * 
+ * + * string zonedRate = 4; + * @return The bytes for zonedRate. + */ + com.google.protobuf.ByteString + getZonedRateBytes(); + + /** + *
+   * 滚动最高价
+   * 
+ * + * string high = 5; + * @return The high. + */ + String getHigh(); + /** + *
+   * 滚动最高价
+   * 
+ * + * string high = 5; + * @return The bytes for high. + */ + com.google.protobuf.ByteString + getHighBytes(); + + /** + *
+   * 滚动最低价
+   * 
+ * + * string low = 6; + * @return The low. + */ + String getLow(); + /** + *
+   * 滚动最低价
+   * 
+ * + * string low = 6; + * @return The bytes for low. + */ + com.google.protobuf.ByteString + getLowBytes(); + + /** + *
+   * 滚动成交额
+   * 
+ * + * string volume = 7; + * @return The volume. + */ + String getVolume(); + /** + *
+   * 滚动成交额
+   * 
+ * + * string volume = 7; + * @return The bytes for volume. + */ + com.google.protobuf.ByteString + getVolumeBytes(); + + /** + *
+   * 滚动成交量
+   * 
+ * + * string quantity = 8; + * @return The quantity. + */ + String getQuantity(); + /** + *
+   * 滚动成交量
+   * 
+ * + * string quantity = 8; + * @return The bytes for quantity. + */ + com.google.protobuf.ByteString + getQuantityBytes(); + + /** + *
+   * utc+8时区上期收盘价模式涨跌幅
+   * 
+ * + * string lastCloseRate = 9; + * @return The lastCloseRate. + */ + String getLastCloseRate(); + /** + *
+   * utc+8时区上期收盘价模式涨跌幅
+   * 
+ * + * string lastCloseRate = 9; + * @return The bytes for lastCloseRate. + */ + com.google.protobuf.ByteString + getLastCloseRateBytes(); + + /** + *
+   * 上期收盘价模式时区涨跌幅
+   * 
+ * + * string lastCloseZonedRate = 10; + * @return The lastCloseZonedRate. + */ + String getLastCloseZonedRate(); + /** + *
+   * 上期收盘价模式时区涨跌幅
+   * 
+ * + * string lastCloseZonedRate = 10; + * @return The bytes for lastCloseZonedRate. + */ + com.google.protobuf.ByteString + getLastCloseZonedRateBytes(); + + /** + *
+   * 上期收盘价模式滚动最高价
+   * 
+ * + * string lastCloseHigh = 11; + * @return The lastCloseHigh. + */ + String getLastCloseHigh(); + /** + *
+   * 上期收盘价模式滚动最高价
+   * 
+ * + * string lastCloseHigh = 11; + * @return The bytes for lastCloseHigh. + */ + com.google.protobuf.ByteString + getLastCloseHighBytes(); + + /** + *
+   * 上期收盘价模式滚动最低价
+   * 
+ * + * string lastCloseLow = 12; + * @return The lastCloseLow. + */ + String getLastCloseLow(); + /** + *
+   * 上期收盘价模式滚动最低价
+   * 
+ * + * string lastCloseLow = 12; + * @return The bytes for lastCloseLow. + */ + com.google.protobuf.ByteString + getLastCloseLowBytes(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3ApiProto.java new file mode 100644 index 00000000..48651a76 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickerV3ApiProto.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicMiniTickerV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicMiniTickerV3ApiProto { + private PublicMiniTickerV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicMiniTickerV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicMiniTickerV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicMiniTickerV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\033PublicMiniTickerV3Api.proto\"\364\001\n\025Public" + + "MiniTickerV3Api\022\016\n\006symbol\030\001 \001(\t\022\r\n\005price" + + "\030\002 \001(\t\022\014\n\004rate\030\003 \001(\t\022\021\n\tzonedRate\030\004 \001(\t\022" + + "\014\n\004high\030\005 \001(\t\022\013\n\003low\030\006 \001(\t\022\016\n\006volume\030\007 \001" + + "(\t\022\020\n\010quantity\030\010 \001(\t\022\025\n\rlastCloseRate\030\t " + + "\001(\t\022\032\n\022lastCloseZonedRate\030\n \001(\t\022\025\n\rlastC" + + "loseHigh\030\013 \001(\t\022\024\n\014lastCloseLow\030\014 \001(\tB>\n\034" + + "com.mxc.push.common.protobufB\032PublicMini" + + "TickerV3ApiProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicMiniTickerV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicMiniTickerV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicMiniTickerV3Api_descriptor, + new String[] { "Symbol", "Price", "Rate", "ZonedRate", "High", "Low", "Volume", "Quantity", "LastCloseRate", "LastCloseZonedRate", "LastCloseHigh", "LastCloseLow", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3Api.java new file mode 100644 index 00000000..ae2feb76 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3Api.java @@ -0,0 +1,719 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicMiniTickersV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicMiniTickersV3Api} + */ +public final class PublicMiniTickersV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicMiniTickersV3Api) + PublicMiniTickersV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicMiniTickersV3Api.class.getName()); + } + // Use PublicMiniTickersV3Api.newBuilder() to construct. + private PublicMiniTickersV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicMiniTickersV3Api() { + items_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicMiniTickersV3ApiProto.internal_static_PublicMiniTickersV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicMiniTickersV3ApiProto.internal_static_PublicMiniTickersV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicMiniTickersV3Api.class, Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List items_; + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + @Override + public java.util.List getItemsList() { + return items_; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + @Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + @Override + public int getItemsCount() { + return items_.size(); + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + @Override + public PublicMiniTickerV3Api getItems(int index) { + return items_.get(index); + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + @Override + public PublicMiniTickerV3ApiOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, items_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicMiniTickersV3Api)) { + return super.equals(obj); + } + PublicMiniTickersV3Api other = (PublicMiniTickersV3Api) obj; + + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicMiniTickersV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicMiniTickersV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicMiniTickersV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicMiniTickersV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicMiniTickersV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicMiniTickersV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicMiniTickersV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicMiniTickersV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicMiniTickersV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicMiniTickersV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicMiniTickersV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicMiniTickersV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicMiniTickersV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicMiniTickersV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicMiniTickersV3Api) + PublicMiniTickersV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicMiniTickersV3ApiProto.internal_static_PublicMiniTickersV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicMiniTickersV3ApiProto.internal_static_PublicMiniTickersV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicMiniTickersV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicMiniTickersV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + } else { + items_ = null; + itemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicMiniTickersV3ApiProto.internal_static_PublicMiniTickersV3Api_descriptor; + } + + @Override + public PublicMiniTickersV3Api getDefaultInstanceForType() { + return PublicMiniTickersV3Api.getDefaultInstance(); + } + + @Override + public PublicMiniTickersV3Api build() { + PublicMiniTickersV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicMiniTickersV3Api buildPartial() { + PublicMiniTickersV3Api result = new PublicMiniTickersV3Api(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(PublicMiniTickersV3Api result) { + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + } + + private void buildPartial0(PublicMiniTickersV3Api result) { + int from_bitField0_ = bitField0_; + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicMiniTickersV3Api) { + return mergeFrom((PublicMiniTickersV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicMiniTickersV3Api other) { + if (other == PublicMiniTickersV3Api.getDefaultInstance()) return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + PublicMiniTickerV3Api m = + input.readMessage( + PublicMiniTickerV3Api.parser(), + extensionRegistry); + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(m); + } else { + itemsBuilder_.addMessage(m); + } + break; + } // case 10 + 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 java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + PublicMiniTickerV3Api, PublicMiniTickerV3Api.Builder, PublicMiniTickerV3ApiOrBuilder> itemsBuilder_; + + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public PublicMiniTickerV3Api getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder setItems( + int index, PublicMiniTickerV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder setItems( + int index, PublicMiniTickerV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder addItems(PublicMiniTickerV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder addItems( + int index, PublicMiniTickerV3Api value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder addItems( + PublicMiniTickerV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder addItems( + int index, PublicMiniTickerV3Api.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder addAllItems( + Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public PublicMiniTickerV3Api.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public PublicMiniTickerV3ApiOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public PublicMiniTickerV3Api.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + PublicMiniTickerV3Api.getDefaultInstance()); + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public PublicMiniTickerV3Api.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, PublicMiniTickerV3Api.getDefaultInstance()); + } + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + PublicMiniTickerV3Api, PublicMiniTickerV3Api.Builder, PublicMiniTickerV3ApiOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + PublicMiniTickerV3Api, PublicMiniTickerV3Api.Builder, PublicMiniTickerV3ApiOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:PublicMiniTickersV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicMiniTickersV3Api) + private static final PublicMiniTickersV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicMiniTickersV3Api(); + } + + public static PublicMiniTickersV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicMiniTickersV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicMiniTickersV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3ApiOrBuilder.java new file mode 100644 index 00000000..6e2e82dc --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3ApiOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicMiniTickersV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicMiniTickersV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicMiniTickersV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + java.util.List + getItemsList(); + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + PublicMiniTickerV3Api getItems(int index); + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + int getItemsCount(); + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .PublicMiniTickerV3Api items = 1; + */ + PublicMiniTickerV3ApiOrBuilder getItemsOrBuilder( + int index); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3ApiProto.java new file mode 100644 index 00000000..e069293c --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicMiniTickersV3ApiProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicMiniTickersV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicMiniTickersV3ApiProto { + private PublicMiniTickersV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicMiniTickersV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicMiniTickersV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicMiniTickersV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\034PublicMiniTickersV3Api.proto\032\033PublicMi" + + "niTickerV3Api.proto\"?\n\026PublicMiniTickers" + + "V3Api\022%\n\005items\030\001 \003(\0132\026.PublicMiniTickerV" + + "3ApiB?\n\034com.mxc.push.common.protobufB\033Pu" + + "blicMiniTickersV3ApiProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + PublicMiniTickerV3ApiProto.getDescriptor(), + }); + internal_static_PublicMiniTickersV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicMiniTickersV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicMiniTickersV3Api_descriptor, + new String[] { "Items", }); + descriptor.resolveAllFeaturesImmutable(); + PublicMiniTickerV3ApiProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3Api.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3Api.java new file mode 100644 index 00000000..f05d459a --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3Api.java @@ -0,0 +1,1679 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicSpotKlineV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PublicSpotKlineV3Api} + */ +public final class PublicSpotKlineV3Api extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PublicSpotKlineV3Api) + PublicSpotKlineV3ApiOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicSpotKlineV3Api.class.getName()); + } + // Use PublicSpotKlineV3Api.newBuilder() to construct. + private PublicSpotKlineV3Api(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicSpotKlineV3Api() { + interval_ = ""; + openingPrice_ = ""; + closingPrice_ = ""; + highestPrice_ = ""; + lowestPrice_ = ""; + volume_ = ""; + amount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicSpotKlineV3ApiProto.internal_static_PublicSpotKlineV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicSpotKlineV3ApiProto.internal_static_PublicSpotKlineV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicSpotKlineV3Api.class, Builder.class); + } + + public static final int INTERVAL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object interval_ = ""; + /** + *
+   * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+   * 
+ * + * string interval = 1; + * @return The interval. + */ + @Override + public String getInterval() { + Object ref = interval_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + interval_ = s; + return s; + } + } + /** + *
+   * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+   * 
+ * + * string interval = 1; + * @return The bytes for interval. + */ + @Override + public com.google.protobuf.ByteString + getIntervalBytes() { + Object ref = interval_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + interval_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WINDOWSTART_FIELD_NUMBER = 2; + private long windowStart_ = 0L; + /** + *
+   * 窗口开始时间戳(秒时间戳)
+   * 
+ * + * int64 windowStart = 2; + * @return The windowStart. + */ + @Override + public long getWindowStart() { + return windowStart_; + } + + public static final int OPENINGPRICE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object openingPrice_ = ""; + /** + *
+   * 开盘价
+   * 
+ * + * string openingPrice = 3; + * @return The openingPrice. + */ + @Override + public String getOpeningPrice() { + Object ref = openingPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + openingPrice_ = s; + return s; + } + } + /** + *
+   * 开盘价
+   * 
+ * + * string openingPrice = 3; + * @return The bytes for openingPrice. + */ + @Override + public com.google.protobuf.ByteString + getOpeningPriceBytes() { + Object ref = openingPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + openingPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLOSINGPRICE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object closingPrice_ = ""; + /** + *
+   * 收盘价
+   * 
+ * + * string closingPrice = 4; + * @return The closingPrice. + */ + @Override + public String getClosingPrice() { + Object ref = closingPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + closingPrice_ = s; + return s; + } + } + /** + *
+   * 收盘价
+   * 
+ * + * string closingPrice = 4; + * @return The bytes for closingPrice. + */ + @Override + public com.google.protobuf.ByteString + getClosingPriceBytes() { + Object ref = closingPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + closingPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HIGHESTPRICE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile Object highestPrice_ = ""; + /** + *
+   * 最高价
+   * 
+ * + * string highestPrice = 5; + * @return The highestPrice. + */ + @Override + public String getHighestPrice() { + Object ref = highestPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + highestPrice_ = s; + return s; + } + } + /** + *
+   * 最高价
+   * 
+ * + * string highestPrice = 5; + * @return The bytes for highestPrice. + */ + @Override + public com.google.protobuf.ByteString + getHighestPriceBytes() { + Object ref = highestPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + highestPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOWESTPRICE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile Object lowestPrice_ = ""; + /** + *
+   * 最低价
+   * 
+ * + * string lowestPrice = 6; + * @return The lowestPrice. + */ + @Override + public String getLowestPrice() { + Object ref = lowestPrice_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lowestPrice_ = s; + return s; + } + } + /** + *
+   * 最低价
+   * 
+ * + * string lowestPrice = 6; + * @return The bytes for lowestPrice. + */ + @Override + public com.google.protobuf.ByteString + getLowestPriceBytes() { + Object ref = lowestPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lowestPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOLUME_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile Object volume_ = ""; + /** + *
+   * 成交量
+   * 
+ * + * string volume = 7; + * @return The volume. + */ + @Override + public String getVolume() { + Object ref = volume_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + volume_ = s; + return s; + } + } + /** + *
+   * 成交量
+   * 
+ * + * string volume = 7; + * @return The bytes for volume. + */ + @Override + public com.google.protobuf.ByteString + getVolumeBytes() { + Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AMOUNT_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile Object amount_ = ""; + /** + *
+   * 成交额
+   * 
+ * + * string amount = 8; + * @return The amount. + */ + @Override + public String getAmount() { + Object ref = amount_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + amount_ = s; + return s; + } + } + /** + *
+   * 成交额
+   * 
+ * + * string amount = 8; + * @return The bytes for amount. + */ + @Override + public com.google.protobuf.ByteString + getAmountBytes() { + Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WINDOWEND_FIELD_NUMBER = 9; + private long windowEnd_ = 0L; + /** + *
+   * 窗口结束时间戳(秒时间戳)
+   * 
+ * + * int64 windowEnd = 9; + * @return The windowEnd. + */ + @Override + public long getWindowEnd() { + return windowEnd_; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interval_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, interval_); + } + if (windowStart_ != 0L) { + output.writeInt64(2, windowStart_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openingPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, openingPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(closingPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, closingPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(highestPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, highestPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lowestPrice_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, lowestPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volume_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, volume_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(amount_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, amount_); + } + if (windowEnd_ != 0L) { + output.writeInt64(9, windowEnd_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(interval_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, interval_); + } + if (windowStart_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, windowStart_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openingPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, openingPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(closingPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, closingPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(highestPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, highestPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(lowestPrice_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, lowestPrice_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(volume_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, volume_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(amount_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, amount_); + } + if (windowEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, windowEnd_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PublicSpotKlineV3Api)) { + return super.equals(obj); + } + PublicSpotKlineV3Api other = (PublicSpotKlineV3Api) obj; + + if (!getInterval() + .equals(other.getInterval())) return false; + if (getWindowStart() + != other.getWindowStart()) return false; + if (!getOpeningPrice() + .equals(other.getOpeningPrice())) return false; + if (!getClosingPrice() + .equals(other.getClosingPrice())) return false; + if (!getHighestPrice() + .equals(other.getHighestPrice())) return false; + if (!getLowestPrice() + .equals(other.getLowestPrice())) return false; + if (!getVolume() + .equals(other.getVolume())) return false; + if (!getAmount() + .equals(other.getAmount())) return false; + if (getWindowEnd() + != other.getWindowEnd()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getInterval().hashCode(); + hash = (37 * hash) + WINDOWSTART_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWindowStart()); + hash = (37 * hash) + OPENINGPRICE_FIELD_NUMBER; + hash = (53 * hash) + getOpeningPrice().hashCode(); + hash = (37 * hash) + CLOSINGPRICE_FIELD_NUMBER; + hash = (53 * hash) + getClosingPrice().hashCode(); + hash = (37 * hash) + HIGHESTPRICE_FIELD_NUMBER; + hash = (53 * hash) + getHighestPrice().hashCode(); + hash = (37 * hash) + LOWESTPRICE_FIELD_NUMBER; + hash = (53 * hash) + getLowestPrice().hashCode(); + hash = (37 * hash) + VOLUME_FIELD_NUMBER; + hash = (53 * hash) + getVolume().hashCode(); + hash = (37 * hash) + AMOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAmount().hashCode(); + hash = (37 * hash) + WINDOWEND_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getWindowEnd()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PublicSpotKlineV3Api parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicSpotKlineV3Api parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicSpotKlineV3Api parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicSpotKlineV3Api parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicSpotKlineV3Api parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PublicSpotKlineV3Api parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PublicSpotKlineV3Api parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicSpotKlineV3Api parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PublicSpotKlineV3Api parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PublicSpotKlineV3Api parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PublicSpotKlineV3Api parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PublicSpotKlineV3Api parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PublicSpotKlineV3Api prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PublicSpotKlineV3Api} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PublicSpotKlineV3Api) + PublicSpotKlineV3ApiOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PublicSpotKlineV3ApiProto.internal_static_PublicSpotKlineV3Api_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PublicSpotKlineV3ApiProto.internal_static_PublicSpotKlineV3Api_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PublicSpotKlineV3Api.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PublicSpotKlineV3Api.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + interval_ = ""; + windowStart_ = 0L; + openingPrice_ = ""; + closingPrice_ = ""; + highestPrice_ = ""; + lowestPrice_ = ""; + volume_ = ""; + amount_ = ""; + windowEnd_ = 0L; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PublicSpotKlineV3ApiProto.internal_static_PublicSpotKlineV3Api_descriptor; + } + + @Override + public PublicSpotKlineV3Api getDefaultInstanceForType() { + return PublicSpotKlineV3Api.getDefaultInstance(); + } + + @Override + public PublicSpotKlineV3Api build() { + PublicSpotKlineV3Api result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PublicSpotKlineV3Api buildPartial() { + PublicSpotKlineV3Api result = new PublicSpotKlineV3Api(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(PublicSpotKlineV3Api result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.interval_ = interval_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.windowStart_ = windowStart_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.openingPrice_ = openingPrice_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.closingPrice_ = closingPrice_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.highestPrice_ = highestPrice_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lowestPrice_ = lowestPrice_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.volume_ = volume_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.amount_ = amount_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.windowEnd_ = windowEnd_; + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PublicSpotKlineV3Api) { + return mergeFrom((PublicSpotKlineV3Api)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PublicSpotKlineV3Api other) { + if (other == PublicSpotKlineV3Api.getDefaultInstance()) return this; + if (!other.getInterval().isEmpty()) { + interval_ = other.interval_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getWindowStart() != 0L) { + setWindowStart(other.getWindowStart()); + } + if (!other.getOpeningPrice().isEmpty()) { + openingPrice_ = other.openingPrice_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getClosingPrice().isEmpty()) { + closingPrice_ = other.closingPrice_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getHighestPrice().isEmpty()) { + highestPrice_ = other.highestPrice_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getLowestPrice().isEmpty()) { + lowestPrice_ = other.lowestPrice_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getVolume().isEmpty()) { + volume_ = other.volume_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getAmount().isEmpty()) { + amount_ = other.amount_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getWindowEnd() != 0L) { + setWindowEnd(other.getWindowEnd()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + interval_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + windowStart_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + openingPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + closingPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + highestPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + lowestPrice_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + volume_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + amount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + windowEnd_ = input.readInt64(); + bitField0_ |= 0x00000100; + break; + } // case 72 + 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 Object interval_ = ""; + /** + *
+     * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+     * 
+ * + * string interval = 1; + * @return The interval. + */ + public String getInterval() { + Object ref = interval_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + interval_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+     * 
+ * + * string interval = 1; + * @return The bytes for interval. + */ + public com.google.protobuf.ByteString + getIntervalBytes() { + Object ref = interval_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + interval_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+     * 
+ * + * string interval = 1; + * @param value The interval to set. + * @return This builder for chaining. + */ + public Builder setInterval( + String value) { + if (value == null) { throw new NullPointerException(); } + interval_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+     * 
+ * + * string interval = 1; + * @return This builder for chaining. + */ + public Builder clearInterval() { + interval_ = getDefaultInstance().getInterval(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+     * 
+ * + * string interval = 1; + * @param value The bytes for interval to set. + * @return This builder for chaining. + */ + public Builder setIntervalBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + interval_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long windowStart_ ; + /** + *
+     * 窗口开始时间戳(秒时间戳)
+     * 
+ * + * int64 windowStart = 2; + * @return The windowStart. + */ + @Override + public long getWindowStart() { + return windowStart_; + } + /** + *
+     * 窗口开始时间戳(秒时间戳)
+     * 
+ * + * int64 windowStart = 2; + * @param value The windowStart to set. + * @return This builder for chaining. + */ + public Builder setWindowStart(long value) { + + windowStart_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * 窗口开始时间戳(秒时间戳)
+     * 
+ * + * int64 windowStart = 2; + * @return This builder for chaining. + */ + public Builder clearWindowStart() { + bitField0_ = (bitField0_ & ~0x00000002); + windowStart_ = 0L; + onChanged(); + return this; + } + + private Object openingPrice_ = ""; + /** + *
+     * 开盘价
+     * 
+ * + * string openingPrice = 3; + * @return The openingPrice. + */ + public String getOpeningPrice() { + Object ref = openingPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + openingPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 开盘价
+     * 
+ * + * string openingPrice = 3; + * @return The bytes for openingPrice. + */ + public com.google.protobuf.ByteString + getOpeningPriceBytes() { + Object ref = openingPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + openingPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 开盘价
+     * 
+ * + * string openingPrice = 3; + * @param value The openingPrice to set. + * @return This builder for chaining. + */ + public Builder setOpeningPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + openingPrice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * 开盘价
+     * 
+ * + * string openingPrice = 3; + * @return This builder for chaining. + */ + public Builder clearOpeningPrice() { + openingPrice_ = getDefaultInstance().getOpeningPrice(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * 开盘价
+     * 
+ * + * string openingPrice = 3; + * @param value The bytes for openingPrice to set. + * @return This builder for chaining. + */ + public Builder setOpeningPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + openingPrice_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private Object closingPrice_ = ""; + /** + *
+     * 收盘价
+     * 
+ * + * string closingPrice = 4; + * @return The closingPrice. + */ + public String getClosingPrice() { + Object ref = closingPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + closingPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 收盘价
+     * 
+ * + * string closingPrice = 4; + * @return The bytes for closingPrice. + */ + public com.google.protobuf.ByteString + getClosingPriceBytes() { + Object ref = closingPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + closingPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 收盘价
+     * 
+ * + * string closingPrice = 4; + * @param value The closingPrice to set. + * @return This builder for chaining. + */ + public Builder setClosingPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + closingPrice_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * 收盘价
+     * 
+ * + * string closingPrice = 4; + * @return This builder for chaining. + */ + public Builder clearClosingPrice() { + closingPrice_ = getDefaultInstance().getClosingPrice(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * 收盘价
+     * 
+ * + * string closingPrice = 4; + * @param value The bytes for closingPrice to set. + * @return This builder for chaining. + */ + public Builder setClosingPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + closingPrice_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private Object highestPrice_ = ""; + /** + *
+     * 最高价
+     * 
+ * + * string highestPrice = 5; + * @return The highestPrice. + */ + public String getHighestPrice() { + Object ref = highestPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + highestPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 最高价
+     * 
+ * + * string highestPrice = 5; + * @return The bytes for highestPrice. + */ + public com.google.protobuf.ByteString + getHighestPriceBytes() { + Object ref = highestPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + highestPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 最高价
+     * 
+ * + * string highestPrice = 5; + * @param value The highestPrice to set. + * @return This builder for chaining. + */ + public Builder setHighestPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + highestPrice_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * 最高价
+     * 
+ * + * string highestPrice = 5; + * @return This builder for chaining. + */ + public Builder clearHighestPrice() { + highestPrice_ = getDefaultInstance().getHighestPrice(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * 最高价
+     * 
+ * + * string highestPrice = 5; + * @param value The bytes for highestPrice to set. + * @return This builder for chaining. + */ + public Builder setHighestPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + highestPrice_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private Object lowestPrice_ = ""; + /** + *
+     * 最低价
+     * 
+ * + * string lowestPrice = 6; + * @return The lowestPrice. + */ + public String getLowestPrice() { + Object ref = lowestPrice_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + lowestPrice_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 最低价
+     * 
+ * + * string lowestPrice = 6; + * @return The bytes for lowestPrice. + */ + public com.google.protobuf.ByteString + getLowestPriceBytes() { + Object ref = lowestPrice_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + lowestPrice_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 最低价
+     * 
+ * + * string lowestPrice = 6; + * @param value The lowestPrice to set. + * @return This builder for chaining. + */ + public Builder setLowestPrice( + String value) { + if (value == null) { throw new NullPointerException(); } + lowestPrice_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * 最低价
+     * 
+ * + * string lowestPrice = 6; + * @return This builder for chaining. + */ + public Builder clearLowestPrice() { + lowestPrice_ = getDefaultInstance().getLowestPrice(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * 最低价
+     * 
+ * + * string lowestPrice = 6; + * @param value The bytes for lowestPrice to set. + * @return This builder for chaining. + */ + public Builder setLowestPriceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + lowestPrice_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private Object volume_ = ""; + /** + *
+     * 成交量
+     * 
+ * + * string volume = 7; + * @return The volume. + */ + public String getVolume() { + Object ref = volume_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + volume_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 成交量
+     * 
+ * + * string volume = 7; + * @return The bytes for volume. + */ + public com.google.protobuf.ByteString + getVolumeBytes() { + Object ref = volume_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + volume_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 成交量
+     * 
+ * + * string volume = 7; + * @param value The volume to set. + * @return This builder for chaining. + */ + public Builder setVolume( + String value) { + if (value == null) { throw new NullPointerException(); } + volume_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + *
+     * 成交量
+     * 
+ * + * string volume = 7; + * @return This builder for chaining. + */ + public Builder clearVolume() { + volume_ = getDefaultInstance().getVolume(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+     * 成交量
+     * 
+ * + * string volume = 7; + * @param value The bytes for volume to set. + * @return This builder for chaining. + */ + public Builder setVolumeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + volume_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private Object amount_ = ""; + /** + *
+     * 成交额
+     * 
+ * + * string amount = 8; + * @return The amount. + */ + public String getAmount() { + Object ref = amount_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + amount_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * 成交额
+     * 
+ * + * string amount = 8; + * @return The bytes for amount. + */ + public com.google.protobuf.ByteString + getAmountBytes() { + Object ref = amount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + amount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 成交额
+     * 
+ * + * string amount = 8; + * @param value The amount to set. + * @return This builder for chaining. + */ + public Builder setAmount( + String value) { + if (value == null) { throw new NullPointerException(); } + amount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + *
+     * 成交额
+     * 
+ * + * string amount = 8; + * @return This builder for chaining. + */ + public Builder clearAmount() { + amount_ = getDefaultInstance().getAmount(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+     * 成交额
+     * 
+ * + * string amount = 8; + * @param value The bytes for amount to set. + * @return This builder for chaining. + */ + public Builder setAmountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + amount_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private long windowEnd_ ; + /** + *
+     * 窗口结束时间戳(秒时间戳)
+     * 
+ * + * int64 windowEnd = 9; + * @return The windowEnd. + */ + @Override + public long getWindowEnd() { + return windowEnd_; + } + /** + *
+     * 窗口结束时间戳(秒时间戳)
+     * 
+ * + * int64 windowEnd = 9; + * @param value The windowEnd to set. + * @return This builder for chaining. + */ + public Builder setWindowEnd(long value) { + + windowEnd_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + *
+     * 窗口结束时间戳(秒时间戳)
+     * 
+ * + * int64 windowEnd = 9; + * @return This builder for chaining. + */ + public Builder clearWindowEnd() { + bitField0_ = (bitField0_ & ~0x00000100); + windowEnd_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PublicSpotKlineV3Api) + } + + // @@protoc_insertion_point(class_scope:PublicSpotKlineV3Api) + private static final PublicSpotKlineV3Api DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PublicSpotKlineV3Api(); + } + + public static PublicSpotKlineV3Api getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PublicSpotKlineV3Api 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PublicSpotKlineV3Api getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3ApiOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3ApiOrBuilder.java new file mode 100644 index 00000000..701350c5 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3ApiOrBuilder.java @@ -0,0 +1,171 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicSpotKlineV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PublicSpotKlineV3ApiOrBuilder extends + // @@protoc_insertion_point(interface_extends:PublicSpotKlineV3Api) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+   * 
+ * + * string interval = 1; + * @return The interval. + */ + String getInterval(); + /** + *
+   * K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
+   * 
+ * + * string interval = 1; + * @return The bytes for interval. + */ + com.google.protobuf.ByteString + getIntervalBytes(); + + /** + *
+   * 窗口开始时间戳(秒时间戳)
+   * 
+ * + * int64 windowStart = 2; + * @return The windowStart. + */ + long getWindowStart(); + + /** + *
+   * 开盘价
+   * 
+ * + * string openingPrice = 3; + * @return The openingPrice. + */ + String getOpeningPrice(); + /** + *
+   * 开盘价
+   * 
+ * + * string openingPrice = 3; + * @return The bytes for openingPrice. + */ + com.google.protobuf.ByteString + getOpeningPriceBytes(); + + /** + *
+   * 收盘价
+   * 
+ * + * string closingPrice = 4; + * @return The closingPrice. + */ + String getClosingPrice(); + /** + *
+   * 收盘价
+   * 
+ * + * string closingPrice = 4; + * @return The bytes for closingPrice. + */ + com.google.protobuf.ByteString + getClosingPriceBytes(); + + /** + *
+   * 最高价
+   * 
+ * + * string highestPrice = 5; + * @return The highestPrice. + */ + String getHighestPrice(); + /** + *
+   * 最高价
+   * 
+ * + * string highestPrice = 5; + * @return The bytes for highestPrice. + */ + com.google.protobuf.ByteString + getHighestPriceBytes(); + + /** + *
+   * 最低价
+   * 
+ * + * string lowestPrice = 6; + * @return The lowestPrice. + */ + String getLowestPrice(); + /** + *
+   * 最低价
+   * 
+ * + * string lowestPrice = 6; + * @return The bytes for lowestPrice. + */ + com.google.protobuf.ByteString + getLowestPriceBytes(); + + /** + *
+   * 成交量
+   * 
+ * + * string volume = 7; + * @return The volume. + */ + String getVolume(); + /** + *
+   * 成交量
+   * 
+ * + * string volume = 7; + * @return The bytes for volume. + */ + com.google.protobuf.ByteString + getVolumeBytes(); + + /** + *
+   * 成交额
+   * 
+ * + * string amount = 8; + * @return The amount. + */ + String getAmount(); + /** + *
+   * 成交额
+   * 
+ * + * string amount = 8; + * @return The bytes for amount. + */ + com.google.protobuf.ByteString + getAmountBytes(); + + /** + *
+   * 窗口结束时间戳(秒时间戳)
+   * 
+ * + * int64 windowEnd = 9; + * @return The windowEnd. + */ + long getWindowEnd(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3ApiProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3ApiProto.java new file mode 100644 index 00000000..1702ad73 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PublicSpotKlineV3ApiProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PublicSpotKlineV3Api.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PublicSpotKlineV3ApiProto { + private PublicSpotKlineV3ApiProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PublicSpotKlineV3ApiProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PublicSpotKlineV3Api_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PublicSpotKlineV3Api_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\032PublicSpotKlineV3Api.proto\"\307\001\n\024PublicS" + + "potKlineV3Api\022\020\n\010interval\030\001 \001(\t\022\023\n\013windo" + + "wStart\030\002 \001(\003\022\024\n\014openingPrice\030\003 \001(\t\022\024\n\014cl" + + "osingPrice\030\004 \001(\t\022\024\n\014highestPrice\030\005 \001(\t\022\023" + + "\n\013lowestPrice\030\006 \001(\t\022\016\n\006volume\030\007 \001(\t\022\016\n\006a" + + "mount\030\010 \001(\t\022\021\n\twindowEnd\030\t \001(\003B=\n\034com.mx" + + "c.push.common.protobufB\031PublicSpotKlineV" + + "3ApiProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_PublicSpotKlineV3Api_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PublicSpotKlineV3Api_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PublicSpotKlineV3Api_descriptor, + new String[] { "Interval", "WindowStart", "OpeningPrice", "ClosingPrice", "HighestPrice", "LowestPrice", "Volume", "Amount", "WindowEnd", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapper.java b/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapper.java new file mode 100644 index 00000000..dd245d75 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapper.java @@ -0,0 +1,4376 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PushDataV3ApiWrapper.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +/** + * Protobuf type {@code PushDataV3ApiWrapper} + */ +public final class PushDataV3ApiWrapper extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:PushDataV3ApiWrapper) + PushDataV3ApiWrapperOrBuilder { +private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PushDataV3ApiWrapper.class.getName()); + } + // Use PushDataV3ApiWrapper.newBuilder() to construct. + private PushDataV3ApiWrapper(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PushDataV3ApiWrapper() { + channel_ = ""; + symbol_ = ""; + symbolId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PushDataV3ApiWrapperProto.internal_static_PushDataV3ApiWrapper_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PushDataV3ApiWrapperProto.internal_static_PushDataV3ApiWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PushDataV3ApiWrapper.class, Builder.class); + } + + private int bitField0_; + private int bodyCase_ = 0; + @SuppressWarnings("serial") + private Object body_; + public enum BodyCase + implements com.google.protobuf.Internal.EnumLite, + InternalOneOfEnum { + PUBLICDEALS(301), + PUBLICINCREASEDEPTHS(302), + PUBLICLIMITDEPTHS(303), + PRIVATEORDERS(304), + PUBLICBOOKTICKER(305), + PRIVATEDEALS(306), + PRIVATEACCOUNT(307), + PUBLICSPOTKLINE(308), + PUBLICMINITICKER(309), + PUBLICMINITICKERS(310), + PUBLICBOOKTICKERBATCH(311), + PUBLICINCREASEDEPTHSBATCH(312), + PUBLICAGGREDEPTHS(313), + PUBLICAGGREDEALS(314), + PUBLICAGGREBOOKTICKER(315), + BODY_NOT_SET(0); + private final int value; + private BodyCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @Deprecated + public static BodyCase valueOf(int value) { + return forNumber(value); + } + + public static BodyCase forNumber(int value) { + switch (value) { + case 301: return PUBLICDEALS; + case 302: return PUBLICINCREASEDEPTHS; + case 303: return PUBLICLIMITDEPTHS; + case 304: return PRIVATEORDERS; + case 305: return PUBLICBOOKTICKER; + case 306: return PRIVATEDEALS; + case 307: return PRIVATEACCOUNT; + case 308: return PUBLICSPOTKLINE; + case 309: return PUBLICMINITICKER; + case 310: return PUBLICMINITICKERS; + case 311: return PUBLICBOOKTICKERBATCH; + case 312: return PUBLICINCREASEDEPTHSBATCH; + case 313: return PUBLICAGGREDEPTHS; + case 314: return PUBLICAGGREDEALS; + case 315: return PUBLICAGGREBOOKTICKER; + case 0: return BODY_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public BodyCase + getBodyCase() { + return BodyCase.forNumber( + bodyCase_); + } + + public static final int CHANNEL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile Object channel_ = ""; + /** + *
+   * *
+   * 频道
+   * 
+ * + * string channel = 1; + * @return The channel. + */ + @Override + public String getChannel() { + Object ref = channel_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + channel_ = s; + return s; + } + } + /** + *
+   * *
+   * 频道
+   * 
+ * + * string channel = 1; + * @return The bytes for channel. + */ + @Override + public com.google.protobuf.ByteString + getChannelBytes() { + Object ref = channel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICDEALS_FIELD_NUMBER = 301; + /** + * .PublicDealsV3Api publicDeals = 301; + * @return Whether the publicDeals field is set. + */ + @Override + public boolean hasPublicDeals() { + return bodyCase_ == 301; + } + /** + * .PublicDealsV3Api publicDeals = 301; + * @return The publicDeals. + */ + @Override + public PublicDealsV3Api getPublicDeals() { + if (bodyCase_ == 301) { + return (PublicDealsV3Api) body_; + } + return PublicDealsV3Api.getDefaultInstance(); + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + @Override + public PublicDealsV3ApiOrBuilder getPublicDealsOrBuilder() { + if (bodyCase_ == 301) { + return (PublicDealsV3Api) body_; + } + return PublicDealsV3Api.getDefaultInstance(); + } + + public static final int PUBLICINCREASEDEPTHS_FIELD_NUMBER = 302; + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + * @return Whether the publicIncreaseDepths field is set. + */ + @Override + public boolean hasPublicIncreaseDepths() { + return bodyCase_ == 302; + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + * @return The publicIncreaseDepths. + */ + @Override + public PublicIncreaseDepthsV3Api getPublicIncreaseDepths() { + if (bodyCase_ == 302) { + return (PublicIncreaseDepthsV3Api) body_; + } + return PublicIncreaseDepthsV3Api.getDefaultInstance(); + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + @Override + public PublicIncreaseDepthsV3ApiOrBuilder getPublicIncreaseDepthsOrBuilder() { + if (bodyCase_ == 302) { + return (PublicIncreaseDepthsV3Api) body_; + } + return PublicIncreaseDepthsV3Api.getDefaultInstance(); + } + + public static final int PUBLICLIMITDEPTHS_FIELD_NUMBER = 303; + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + * @return Whether the publicLimitDepths field is set. + */ + @Override + public boolean hasPublicLimitDepths() { + return bodyCase_ == 303; + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + * @return The publicLimitDepths. + */ + @Override + public PublicLimitDepthsV3Api getPublicLimitDepths() { + if (bodyCase_ == 303) { + return (PublicLimitDepthsV3Api) body_; + } + return PublicLimitDepthsV3Api.getDefaultInstance(); + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + @Override + public PublicLimitDepthsV3ApiOrBuilder getPublicLimitDepthsOrBuilder() { + if (bodyCase_ == 303) { + return (PublicLimitDepthsV3Api) body_; + } + return PublicLimitDepthsV3Api.getDefaultInstance(); + } + + public static final int PRIVATEORDERS_FIELD_NUMBER = 304; + /** + * .PrivateOrdersV3Api privateOrders = 304; + * @return Whether the privateOrders field is set. + */ + @Override + public boolean hasPrivateOrders() { + return bodyCase_ == 304; + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + * @return The privateOrders. + */ + @Override + public PrivateOrdersV3Api getPrivateOrders() { + if (bodyCase_ == 304) { + return (PrivateOrdersV3Api) body_; + } + return PrivateOrdersV3Api.getDefaultInstance(); + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + @Override + public PrivateOrdersV3ApiOrBuilder getPrivateOrdersOrBuilder() { + if (bodyCase_ == 304) { + return (PrivateOrdersV3Api) body_; + } + return PrivateOrdersV3Api.getDefaultInstance(); + } + + public static final int PUBLICBOOKTICKER_FIELD_NUMBER = 305; + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + * @return Whether the publicBookTicker field is set. + */ + @Override + public boolean hasPublicBookTicker() { + return bodyCase_ == 305; + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + * @return The publicBookTicker. + */ + @Override + public PublicBookTickerV3Api getPublicBookTicker() { + if (bodyCase_ == 305) { + return (PublicBookTickerV3Api) body_; + } + return PublicBookTickerV3Api.getDefaultInstance(); + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + @Override + public PublicBookTickerV3ApiOrBuilder getPublicBookTickerOrBuilder() { + if (bodyCase_ == 305) { + return (PublicBookTickerV3Api) body_; + } + return PublicBookTickerV3Api.getDefaultInstance(); + } + + public static final int PRIVATEDEALS_FIELD_NUMBER = 306; + /** + * .PrivateDealsV3Api privateDeals = 306; + * @return Whether the privateDeals field is set. + */ + @Override + public boolean hasPrivateDeals() { + return bodyCase_ == 306; + } + /** + * .PrivateDealsV3Api privateDeals = 306; + * @return The privateDeals. + */ + @Override + public PrivateDealsV3Api getPrivateDeals() { + if (bodyCase_ == 306) { + return (PrivateDealsV3Api) body_; + } + return PrivateDealsV3Api.getDefaultInstance(); + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + @Override + public PrivateDealsV3ApiOrBuilder getPrivateDealsOrBuilder() { + if (bodyCase_ == 306) { + return (PrivateDealsV3Api) body_; + } + return PrivateDealsV3Api.getDefaultInstance(); + } + + public static final int PRIVATEACCOUNT_FIELD_NUMBER = 307; + /** + * .PrivateAccountV3Api privateAccount = 307; + * @return Whether the privateAccount field is set. + */ + @Override + public boolean hasPrivateAccount() { + return bodyCase_ == 307; + } + /** + * .PrivateAccountV3Api privateAccount = 307; + * @return The privateAccount. + */ + @Override + public PrivateAccountV3Api getPrivateAccount() { + if (bodyCase_ == 307) { + return (PrivateAccountV3Api) body_; + } + return PrivateAccountV3Api.getDefaultInstance(); + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + @Override + public PrivateAccountV3ApiOrBuilder getPrivateAccountOrBuilder() { + if (bodyCase_ == 307) { + return (PrivateAccountV3Api) body_; + } + return PrivateAccountV3Api.getDefaultInstance(); + } + + public static final int PUBLICSPOTKLINE_FIELD_NUMBER = 308; + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + * @return Whether the publicSpotKline field is set. + */ + @Override + public boolean hasPublicSpotKline() { + return bodyCase_ == 308; + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + * @return The publicSpotKline. + */ + @Override + public PublicSpotKlineV3Api getPublicSpotKline() { + if (bodyCase_ == 308) { + return (PublicSpotKlineV3Api) body_; + } + return PublicSpotKlineV3Api.getDefaultInstance(); + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + @Override + public PublicSpotKlineV3ApiOrBuilder getPublicSpotKlineOrBuilder() { + if (bodyCase_ == 308) { + return (PublicSpotKlineV3Api) body_; + } + return PublicSpotKlineV3Api.getDefaultInstance(); + } + + public static final int PUBLICMINITICKER_FIELD_NUMBER = 309; + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + * @return Whether the publicMiniTicker field is set. + */ + @Override + public boolean hasPublicMiniTicker() { + return bodyCase_ == 309; + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + * @return The publicMiniTicker. + */ + @Override + public PublicMiniTickerV3Api getPublicMiniTicker() { + if (bodyCase_ == 309) { + return (PublicMiniTickerV3Api) body_; + } + return PublicMiniTickerV3Api.getDefaultInstance(); + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + @Override + public PublicMiniTickerV3ApiOrBuilder getPublicMiniTickerOrBuilder() { + if (bodyCase_ == 309) { + return (PublicMiniTickerV3Api) body_; + } + return PublicMiniTickerV3Api.getDefaultInstance(); + } + + public static final int PUBLICMINITICKERS_FIELD_NUMBER = 310; + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + * @return Whether the publicMiniTickers field is set. + */ + @Override + public boolean hasPublicMiniTickers() { + return bodyCase_ == 310; + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + * @return The publicMiniTickers. + */ + @Override + public PublicMiniTickersV3Api getPublicMiniTickers() { + if (bodyCase_ == 310) { + return (PublicMiniTickersV3Api) body_; + } + return PublicMiniTickersV3Api.getDefaultInstance(); + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + @Override + public PublicMiniTickersV3ApiOrBuilder getPublicMiniTickersOrBuilder() { + if (bodyCase_ == 310) { + return (PublicMiniTickersV3Api) body_; + } + return PublicMiniTickersV3Api.getDefaultInstance(); + } + + public static final int PUBLICBOOKTICKERBATCH_FIELD_NUMBER = 311; + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + * @return Whether the publicBookTickerBatch field is set. + */ + @Override + public boolean hasPublicBookTickerBatch() { + return bodyCase_ == 311; + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + * @return The publicBookTickerBatch. + */ + @Override + public PublicBookTickerBatchV3Api getPublicBookTickerBatch() { + if (bodyCase_ == 311) { + return (PublicBookTickerBatchV3Api) body_; + } + return PublicBookTickerBatchV3Api.getDefaultInstance(); + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + @Override + public PublicBookTickerBatchV3ApiOrBuilder getPublicBookTickerBatchOrBuilder() { + if (bodyCase_ == 311) { + return (PublicBookTickerBatchV3Api) body_; + } + return PublicBookTickerBatchV3Api.getDefaultInstance(); + } + + public static final int PUBLICINCREASEDEPTHSBATCH_FIELD_NUMBER = 312; + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + * @return Whether the publicIncreaseDepthsBatch field is set. + */ + @Override + public boolean hasPublicIncreaseDepthsBatch() { + return bodyCase_ == 312; + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + * @return The publicIncreaseDepthsBatch. + */ + @Override + public PublicIncreaseDepthsBatchV3Api getPublicIncreaseDepthsBatch() { + if (bodyCase_ == 312) { + return (PublicIncreaseDepthsBatchV3Api) body_; + } + return PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + @Override + public PublicIncreaseDepthsBatchV3ApiOrBuilder getPublicIncreaseDepthsBatchOrBuilder() { + if (bodyCase_ == 312) { + return (PublicIncreaseDepthsBatchV3Api) body_; + } + return PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } + + public static final int PUBLICAGGREDEPTHS_FIELD_NUMBER = 313; + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + * @return Whether the publicAggreDepths field is set. + */ + @Override + public boolean hasPublicAggreDepths() { + return bodyCase_ == 313; + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + * @return The publicAggreDepths. + */ + @Override + public PublicAggreDepthsV3Api getPublicAggreDepths() { + if (bodyCase_ == 313) { + return (PublicAggreDepthsV3Api) body_; + } + return PublicAggreDepthsV3Api.getDefaultInstance(); + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + @Override + public PublicAggreDepthsV3ApiOrBuilder getPublicAggreDepthsOrBuilder() { + if (bodyCase_ == 313) { + return (PublicAggreDepthsV3Api) body_; + } + return PublicAggreDepthsV3Api.getDefaultInstance(); + } + + public static final int PUBLICAGGREDEALS_FIELD_NUMBER = 314; + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + * @return Whether the publicAggreDeals field is set. + */ + @Override + public boolean hasPublicAggreDeals() { + return bodyCase_ == 314; + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + * @return The publicAggreDeals. + */ + @Override + public PublicAggreDealsV3Api getPublicAggreDeals() { + if (bodyCase_ == 314) { + return (PublicAggreDealsV3Api) body_; + } + return PublicAggreDealsV3Api.getDefaultInstance(); + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + @Override + public PublicAggreDealsV3ApiOrBuilder getPublicAggreDealsOrBuilder() { + if (bodyCase_ == 314) { + return (PublicAggreDealsV3Api) body_; + } + return PublicAggreDealsV3Api.getDefaultInstance(); + } + + public static final int PUBLICAGGREBOOKTICKER_FIELD_NUMBER = 315; + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + * @return Whether the publicAggreBookTicker field is set. + */ + @Override + public boolean hasPublicAggreBookTicker() { + return bodyCase_ == 315; + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + * @return The publicAggreBookTicker. + */ + @Override + public PublicAggreBookTickerV3Api getPublicAggreBookTicker() { + if (bodyCase_ == 315) { + return (PublicAggreBookTickerV3Api) body_; + } + return PublicAggreBookTickerV3Api.getDefaultInstance(); + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + @Override + public PublicAggreBookTickerV3ApiOrBuilder getPublicAggreBookTickerOrBuilder() { + if (bodyCase_ == 315) { + return (PublicAggreBookTickerV3Api) body_; + } + return PublicAggreBookTickerV3Api.getDefaultInstance(); + } + + public static final int SYMBOL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile Object symbol_ = ""; + /** + *
+   * *
+   * 交易对
+   * 
+ * + * optional string symbol = 3; + * @return Whether the symbol field is set. + */ + @Override + public boolean hasSymbol() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * *
+   * 交易对
+   * 
+ * + * optional string symbol = 3; + * @return The symbol. + */ + @Override + public String getSymbol() { + Object ref = symbol_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } + } + /** + *
+   * *
+   * 交易对
+   * 
+ * + * optional string symbol = 3; + * @return The bytes for symbol. + */ + @Override + public com.google.protobuf.ByteString + getSymbolBytes() { + Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SYMBOLID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile Object symbolId_ = ""; + /** + *
+   * *
+   * 交易对ID
+   * 
+ * + * optional string symbolId = 4; + * @return Whether the symbolId field is set. + */ + @Override + public boolean hasSymbolId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * *
+   * 交易对ID
+   * 
+ * + * optional string symbolId = 4; + * @return The symbolId. + */ + @Override + public String getSymbolId() { + Object ref = symbolId_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbolId_ = s; + return s; + } + } + /** + *
+   * *
+   * 交易对ID
+   * 
+ * + * optional string symbolId = 4; + * @return The bytes for symbolId. + */ + @Override + public com.google.protobuf.ByteString + getSymbolIdBytes() { + Object ref = symbolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATETIME_FIELD_NUMBER = 5; + private long createTime_ = 0L; + /** + *
+   * *
+   * 消息生成时间
+   * 
+ * + * optional int64 createTime = 5; + * @return Whether the createTime field is set. + */ + @Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * *
+   * 消息生成时间
+   * 
+ * + * optional int64 createTime = 5; + * @return The createTime. + */ + @Override + public long getCreateTime() { + return createTime_; + } + + public static final int SENDTIME_FIELD_NUMBER = 6; + private long sendTime_ = 0L; + /** + *
+   * *
+   * 消息推送时间
+   * 
+ * + * optional int64 sendTime = 6; + * @return Whether the sendTime field is set. + */ + @Override + public boolean hasSendTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * *
+   * 消息推送时间
+   * 
+ * + * optional int64 sendTime = 6; + * @return The sendTime. + */ + @Override + public long getSendTime() { + return sendTime_; + } + + private byte memoizedIsInitialized = -1; + @Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(channel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, channel_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, symbol_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, symbolId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(5, createTime_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeInt64(6, sendTime_); + } + if (bodyCase_ == 301) { + output.writeMessage(301, (PublicDealsV3Api) body_); + } + if (bodyCase_ == 302) { + output.writeMessage(302, (PublicIncreaseDepthsV3Api) body_); + } + if (bodyCase_ == 303) { + output.writeMessage(303, (PublicLimitDepthsV3Api) body_); + } + if (bodyCase_ == 304) { + output.writeMessage(304, (PrivateOrdersV3Api) body_); + } + if (bodyCase_ == 305) { + output.writeMessage(305, (PublicBookTickerV3Api) body_); + } + if (bodyCase_ == 306) { + output.writeMessage(306, (PrivateDealsV3Api) body_); + } + if (bodyCase_ == 307) { + output.writeMessage(307, (PrivateAccountV3Api) body_); + } + if (bodyCase_ == 308) { + output.writeMessage(308, (PublicSpotKlineV3Api) body_); + } + if (bodyCase_ == 309) { + output.writeMessage(309, (PublicMiniTickerV3Api) body_); + } + if (bodyCase_ == 310) { + output.writeMessage(310, (PublicMiniTickersV3Api) body_); + } + if (bodyCase_ == 311) { + output.writeMessage(311, (PublicBookTickerBatchV3Api) body_); + } + if (bodyCase_ == 312) { + output.writeMessage(312, (PublicIncreaseDepthsBatchV3Api) body_); + } + if (bodyCase_ == 313) { + output.writeMessage(313, (PublicAggreDepthsV3Api) body_); + } + if (bodyCase_ == 314) { + output.writeMessage(314, (PublicAggreDealsV3Api) body_); + } + if (bodyCase_ == 315) { + output.writeMessage(315, (PublicAggreBookTickerV3Api) body_); + } + getUnknownFields().writeTo(output); + } + + @Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(channel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, channel_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, symbol_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, symbolId_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, createTime_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, sendTime_); + } + if (bodyCase_ == 301) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(301, (PublicDealsV3Api) body_); + } + if (bodyCase_ == 302) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(302, (PublicIncreaseDepthsV3Api) body_); + } + if (bodyCase_ == 303) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(303, (PublicLimitDepthsV3Api) body_); + } + if (bodyCase_ == 304) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(304, (PrivateOrdersV3Api) body_); + } + if (bodyCase_ == 305) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(305, (PublicBookTickerV3Api) body_); + } + if (bodyCase_ == 306) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(306, (PrivateDealsV3Api) body_); + } + if (bodyCase_ == 307) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(307, (PrivateAccountV3Api) body_); + } + if (bodyCase_ == 308) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(308, (PublicSpotKlineV3Api) body_); + } + if (bodyCase_ == 309) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(309, (PublicMiniTickerV3Api) body_); + } + if (bodyCase_ == 310) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(310, (PublicMiniTickersV3Api) body_); + } + if (bodyCase_ == 311) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(311, (PublicBookTickerBatchV3Api) body_); + } + if (bodyCase_ == 312) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(312, (PublicIncreaseDepthsBatchV3Api) body_); + } + if (bodyCase_ == 313) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(313, (PublicAggreDepthsV3Api) body_); + } + if (bodyCase_ == 314) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(314, (PublicAggreDealsV3Api) body_); + } + if (bodyCase_ == 315) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(315, (PublicAggreBookTickerV3Api) body_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @Override + public boolean equals(final Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof PushDataV3ApiWrapper)) { + return super.equals(obj); + } + PushDataV3ApiWrapper other = (PushDataV3ApiWrapper) obj; + + if (!getChannel() + .equals(other.getChannel())) return false; + if (hasSymbol() != other.hasSymbol()) return false; + if (hasSymbol()) { + if (!getSymbol() + .equals(other.getSymbol())) return false; + } + if (hasSymbolId() != other.hasSymbolId()) return false; + if (hasSymbolId()) { + if (!getSymbolId() + .equals(other.getSymbolId())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (getCreateTime() + != other.getCreateTime()) return false; + } + if (hasSendTime() != other.hasSendTime()) return false; + if (hasSendTime()) { + if (getSendTime() + != other.getSendTime()) return false; + } + if (!getBodyCase().equals(other.getBodyCase())) return false; + switch (bodyCase_) { + case 301: + if (!getPublicDeals() + .equals(other.getPublicDeals())) return false; + break; + case 302: + if (!getPublicIncreaseDepths() + .equals(other.getPublicIncreaseDepths())) return false; + break; + case 303: + if (!getPublicLimitDepths() + .equals(other.getPublicLimitDepths())) return false; + break; + case 304: + if (!getPrivateOrders() + .equals(other.getPrivateOrders())) return false; + break; + case 305: + if (!getPublicBookTicker() + .equals(other.getPublicBookTicker())) return false; + break; + case 306: + if (!getPrivateDeals() + .equals(other.getPrivateDeals())) return false; + break; + case 307: + if (!getPrivateAccount() + .equals(other.getPrivateAccount())) return false; + break; + case 308: + if (!getPublicSpotKline() + .equals(other.getPublicSpotKline())) return false; + break; + case 309: + if (!getPublicMiniTicker() + .equals(other.getPublicMiniTicker())) return false; + break; + case 310: + if (!getPublicMiniTickers() + .equals(other.getPublicMiniTickers())) return false; + break; + case 311: + if (!getPublicBookTickerBatch() + .equals(other.getPublicBookTickerBatch())) return false; + break; + case 312: + if (!getPublicIncreaseDepthsBatch() + .equals(other.getPublicIncreaseDepthsBatch())) return false; + break; + case 313: + if (!getPublicAggreDepths() + .equals(other.getPublicAggreDepths())) return false; + break; + case 314: + if (!getPublicAggreDeals() + .equals(other.getPublicAggreDeals())) return false; + break; + case 315: + if (!getPublicAggreBookTicker() + .equals(other.getPublicAggreBookTicker())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); + if (hasSymbol()) { + hash = (37 * hash) + SYMBOL_FIELD_NUMBER; + hash = (53 * hash) + getSymbol().hashCode(); + } + if (hasSymbolId()) { + hash = (37 * hash) + SYMBOLID_FIELD_NUMBER; + hash = (53 * hash) + getSymbolId().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATETIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCreateTime()); + } + if (hasSendTime()) { + hash = (37 * hash) + SENDTIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSendTime()); + } + switch (bodyCase_) { + case 301: + hash = (37 * hash) + PUBLICDEALS_FIELD_NUMBER; + hash = (53 * hash) + getPublicDeals().hashCode(); + break; + case 302: + hash = (37 * hash) + PUBLICINCREASEDEPTHS_FIELD_NUMBER; + hash = (53 * hash) + getPublicIncreaseDepths().hashCode(); + break; + case 303: + hash = (37 * hash) + PUBLICLIMITDEPTHS_FIELD_NUMBER; + hash = (53 * hash) + getPublicLimitDepths().hashCode(); + break; + case 304: + hash = (37 * hash) + PRIVATEORDERS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateOrders().hashCode(); + break; + case 305: + hash = (37 * hash) + PUBLICBOOKTICKER_FIELD_NUMBER; + hash = (53 * hash) + getPublicBookTicker().hashCode(); + break; + case 306: + hash = (37 * hash) + PRIVATEDEALS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateDeals().hashCode(); + break; + case 307: + hash = (37 * hash) + PRIVATEACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getPrivateAccount().hashCode(); + break; + case 308: + hash = (37 * hash) + PUBLICSPOTKLINE_FIELD_NUMBER; + hash = (53 * hash) + getPublicSpotKline().hashCode(); + break; + case 309: + hash = (37 * hash) + PUBLICMINITICKER_FIELD_NUMBER; + hash = (53 * hash) + getPublicMiniTicker().hashCode(); + break; + case 310: + hash = (37 * hash) + PUBLICMINITICKERS_FIELD_NUMBER; + hash = (53 * hash) + getPublicMiniTickers().hashCode(); + break; + case 311: + hash = (37 * hash) + PUBLICBOOKTICKERBATCH_FIELD_NUMBER; + hash = (53 * hash) + getPublicBookTickerBatch().hashCode(); + break; + case 312: + hash = (37 * hash) + PUBLICINCREASEDEPTHSBATCH_FIELD_NUMBER; + hash = (53 * hash) + getPublicIncreaseDepthsBatch().hashCode(); + break; + case 313: + hash = (37 * hash) + PUBLICAGGREDEPTHS_FIELD_NUMBER; + hash = (53 * hash) + getPublicAggreDepths().hashCode(); + break; + case 314: + hash = (37 * hash) + PUBLICAGGREDEALS_FIELD_NUMBER; + hash = (53 * hash) + getPublicAggreDeals().hashCode(); + break; + case 315: + hash = (37 * hash) + PUBLICAGGREBOOKTICKER_FIELD_NUMBER; + hash = (53 * hash) + getPublicAggreBookTicker().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static PushDataV3ApiWrapper parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PushDataV3ApiWrapper parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PushDataV3ApiWrapper parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PushDataV3ApiWrapper parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PushDataV3ApiWrapper parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static PushDataV3ApiWrapper parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static PushDataV3ApiWrapper parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PushDataV3ApiWrapper parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static PushDataV3ApiWrapper parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static PushDataV3ApiWrapper parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static PushDataV3ApiWrapper parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static PushDataV3ApiWrapper parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(PushDataV3ApiWrapper prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code PushDataV3ApiWrapper} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:PushDataV3ApiWrapper) + PushDataV3ApiWrapperOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return PushDataV3ApiWrapperProto.internal_static_PushDataV3ApiWrapper_descriptor; + } + + @Override + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return PushDataV3ApiWrapperProto.internal_static_PushDataV3ApiWrapper_fieldAccessorTable + .ensureFieldAccessorsInitialized( + PushDataV3ApiWrapper.class, Builder.class); + } + + // Construct using com.mxc.push.common.protobuf.PushDataV3ApiWrapper.newBuilder() + private Builder() { + + } + + private Builder( + BuilderParent parent) { + super(parent); + + } + @Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channel_ = ""; + if (publicDealsBuilder_ != null) { + publicDealsBuilder_.clear(); + } + if (publicIncreaseDepthsBuilder_ != null) { + publicIncreaseDepthsBuilder_.clear(); + } + if (publicLimitDepthsBuilder_ != null) { + publicLimitDepthsBuilder_.clear(); + } + if (privateOrdersBuilder_ != null) { + privateOrdersBuilder_.clear(); + } + if (publicBookTickerBuilder_ != null) { + publicBookTickerBuilder_.clear(); + } + if (privateDealsBuilder_ != null) { + privateDealsBuilder_.clear(); + } + if (privateAccountBuilder_ != null) { + privateAccountBuilder_.clear(); + } + if (publicSpotKlineBuilder_ != null) { + publicSpotKlineBuilder_.clear(); + } + if (publicMiniTickerBuilder_ != null) { + publicMiniTickerBuilder_.clear(); + } + if (publicMiniTickersBuilder_ != null) { + publicMiniTickersBuilder_.clear(); + } + if (publicBookTickerBatchBuilder_ != null) { + publicBookTickerBatchBuilder_.clear(); + } + if (publicIncreaseDepthsBatchBuilder_ != null) { + publicIncreaseDepthsBatchBuilder_.clear(); + } + if (publicAggreDepthsBuilder_ != null) { + publicAggreDepthsBuilder_.clear(); + } + if (publicAggreDealsBuilder_ != null) { + publicAggreDealsBuilder_.clear(); + } + if (publicAggreBookTickerBuilder_ != null) { + publicAggreBookTickerBuilder_.clear(); + } + symbol_ = ""; + symbolId_ = ""; + createTime_ = 0L; + sendTime_ = 0L; + bodyCase_ = 0; + body_ = null; + return this; + } + + @Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return PushDataV3ApiWrapperProto.internal_static_PushDataV3ApiWrapper_descriptor; + } + + @Override + public PushDataV3ApiWrapper getDefaultInstanceForType() { + return PushDataV3ApiWrapper.getDefaultInstance(); + } + + @Override + public PushDataV3ApiWrapper build() { + PushDataV3ApiWrapper result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @Override + public PushDataV3ApiWrapper buildPartial() { + PushDataV3ApiWrapper result = new PushDataV3ApiWrapper(this); + if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(PushDataV3ApiWrapper result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channel_ = channel_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00010000) != 0)) { + result.symbol_ = symbol_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.symbolId_ = symbolId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.createTime_ = createTime_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.sendTime_ = sendTime_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(PushDataV3ApiWrapper result) { + result.bodyCase_ = bodyCase_; + result.body_ = this.body_; + if (bodyCase_ == 301 && + publicDealsBuilder_ != null) { + result.body_ = publicDealsBuilder_.build(); + } + if (bodyCase_ == 302 && + publicIncreaseDepthsBuilder_ != null) { + result.body_ = publicIncreaseDepthsBuilder_.build(); + } + if (bodyCase_ == 303 && + publicLimitDepthsBuilder_ != null) { + result.body_ = publicLimitDepthsBuilder_.build(); + } + if (bodyCase_ == 304 && + privateOrdersBuilder_ != null) { + result.body_ = privateOrdersBuilder_.build(); + } + if (bodyCase_ == 305 && + publicBookTickerBuilder_ != null) { + result.body_ = publicBookTickerBuilder_.build(); + } + if (bodyCase_ == 306 && + privateDealsBuilder_ != null) { + result.body_ = privateDealsBuilder_.build(); + } + if (bodyCase_ == 307 && + privateAccountBuilder_ != null) { + result.body_ = privateAccountBuilder_.build(); + } + if (bodyCase_ == 308 && + publicSpotKlineBuilder_ != null) { + result.body_ = publicSpotKlineBuilder_.build(); + } + if (bodyCase_ == 309 && + publicMiniTickerBuilder_ != null) { + result.body_ = publicMiniTickerBuilder_.build(); + } + if (bodyCase_ == 310 && + publicMiniTickersBuilder_ != null) { + result.body_ = publicMiniTickersBuilder_.build(); + } + if (bodyCase_ == 311 && + publicBookTickerBatchBuilder_ != null) { + result.body_ = publicBookTickerBatchBuilder_.build(); + } + if (bodyCase_ == 312 && + publicIncreaseDepthsBatchBuilder_ != null) { + result.body_ = publicIncreaseDepthsBatchBuilder_.build(); + } + if (bodyCase_ == 313 && + publicAggreDepthsBuilder_ != null) { + result.body_ = publicAggreDepthsBuilder_.build(); + } + if (bodyCase_ == 314 && + publicAggreDealsBuilder_ != null) { + result.body_ = publicAggreDealsBuilder_.build(); + } + if (bodyCase_ == 315 && + publicAggreBookTickerBuilder_ != null) { + result.body_ = publicAggreBookTickerBuilder_.build(); + } + } + + @Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof PushDataV3ApiWrapper) { + return mergeFrom((PushDataV3ApiWrapper)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(PushDataV3ApiWrapper other) { + if (other == PushDataV3ApiWrapper.getDefaultInstance()) return this; + if (!other.getChannel().isEmpty()) { + channel_ = other.channel_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSymbol()) { + symbol_ = other.symbol_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasSymbolId()) { + symbolId_ = other.symbolId_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasCreateTime()) { + setCreateTime(other.getCreateTime()); + } + if (other.hasSendTime()) { + setSendTime(other.getSendTime()); + } + switch (other.getBodyCase()) { + case PUBLICDEALS: { + mergePublicDeals(other.getPublicDeals()); + break; + } + case PUBLICINCREASEDEPTHS: { + mergePublicIncreaseDepths(other.getPublicIncreaseDepths()); + break; + } + case PUBLICLIMITDEPTHS: { + mergePublicLimitDepths(other.getPublicLimitDepths()); + break; + } + case PRIVATEORDERS: { + mergePrivateOrders(other.getPrivateOrders()); + break; + } + case PUBLICBOOKTICKER: { + mergePublicBookTicker(other.getPublicBookTicker()); + break; + } + case PRIVATEDEALS: { + mergePrivateDeals(other.getPrivateDeals()); + break; + } + case PRIVATEACCOUNT: { + mergePrivateAccount(other.getPrivateAccount()); + break; + } + case PUBLICSPOTKLINE: { + mergePublicSpotKline(other.getPublicSpotKline()); + break; + } + case PUBLICMINITICKER: { + mergePublicMiniTicker(other.getPublicMiniTicker()); + break; + } + case PUBLICMINITICKERS: { + mergePublicMiniTickers(other.getPublicMiniTickers()); + break; + } + case PUBLICBOOKTICKERBATCH: { + mergePublicBookTickerBatch(other.getPublicBookTickerBatch()); + break; + } + case PUBLICINCREASEDEPTHSBATCH: { + mergePublicIncreaseDepthsBatch(other.getPublicIncreaseDepthsBatch()); + break; + } + case PUBLICAGGREDEPTHS: { + mergePublicAggreDepths(other.getPublicAggreDepths()); + break; + } + case PUBLICAGGREDEALS: { + mergePublicAggreDeals(other.getPublicAggreDeals()); + break; + } + case PUBLICAGGREBOOKTICKER: { + mergePublicAggreBookTicker(other.getPublicAggreBookTicker()); + break; + } + case BODY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @Override + public final boolean isInitialized() { + return true; + } + + @Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + channel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: { + symbol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 26 + case 34: { + symbolId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 34 + case 40: { + createTime_ = input.readInt64(); + bitField0_ |= 0x00040000; + break; + } // case 40 + case 48: { + sendTime_ = input.readInt64(); + bitField0_ |= 0x00080000; + break; + } // case 48 + case 2410: { + input.readMessage( + getPublicDealsFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 301; + break; + } // case 2410 + case 2418: { + input.readMessage( + getPublicIncreaseDepthsFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 302; + break; + } // case 2418 + case 2426: { + input.readMessage( + getPublicLimitDepthsFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 303; + break; + } // case 2426 + case 2434: { + input.readMessage( + getPrivateOrdersFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 304; + break; + } // case 2434 + case 2442: { + input.readMessage( + getPublicBookTickerFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 305; + break; + } // case 2442 + case 2450: { + input.readMessage( + getPrivateDealsFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 306; + break; + } // case 2450 + case 2458: { + input.readMessage( + getPrivateAccountFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 307; + break; + } // case 2458 + case 2466: { + input.readMessage( + getPublicSpotKlineFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 308; + break; + } // case 2466 + case 2474: { + input.readMessage( + getPublicMiniTickerFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 309; + break; + } // case 2474 + case 2482: { + input.readMessage( + getPublicMiniTickersFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 310; + break; + } // case 2482 + case 2490: { + input.readMessage( + getPublicBookTickerBatchFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 311; + break; + } // case 2490 + case 2498: { + input.readMessage( + getPublicIncreaseDepthsBatchFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 312; + break; + } // case 2498 + case 2506: { + input.readMessage( + getPublicAggreDepthsFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 313; + break; + } // case 2506 + case 2514: { + input.readMessage( + getPublicAggreDealsFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 314; + break; + } // case 2514 + case 2522: { + input.readMessage( + getPublicAggreBookTickerFieldBuilder().getBuilder(), + extensionRegistry); + bodyCase_ = 315; + break; + } // case 2522 + 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 bodyCase_ = 0; + private Object body_; + public BodyCase + getBodyCase() { + return BodyCase.forNumber( + bodyCase_); + } + + public Builder clearBody() { + bodyCase_ = 0; + body_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private Object channel_ = ""; + /** + *
+     * *
+     * 频道
+     * 
+ * + * string channel = 1; + * @return The channel. + */ + public String getChannel() { + Object ref = channel_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + channel_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * *
+     * 频道
+     * 
+ * + * string channel = 1; + * @return The bytes for channel. + */ + public com.google.protobuf.ByteString + getChannelBytes() { + Object ref = channel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * *
+     * 频道
+     * 
+ * + * string channel = 1; + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel( + String value) { + if (value == null) { throw new NullPointerException(); } + channel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * *
+     * 频道
+     * 
+ * + * string channel = 1; + * @return This builder for chaining. + */ + public Builder clearChannel() { + channel_ = getDefaultInstance().getChannel(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * *
+     * 频道
+     * 
+ * + * string channel = 1; + * @param value The bytes for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + channel_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicDealsV3Api, PublicDealsV3Api.Builder, PublicDealsV3ApiOrBuilder> publicDealsBuilder_; + /** + * .PublicDealsV3Api publicDeals = 301; + * @return Whether the publicDeals field is set. + */ + @Override + public boolean hasPublicDeals() { + return bodyCase_ == 301; + } + /** + * .PublicDealsV3Api publicDeals = 301; + * @return The publicDeals. + */ + @Override + public PublicDealsV3Api getPublicDeals() { + if (publicDealsBuilder_ == null) { + if (bodyCase_ == 301) { + return (PublicDealsV3Api) body_; + } + return PublicDealsV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 301) { + return publicDealsBuilder_.getMessage(); + } + return PublicDealsV3Api.getDefaultInstance(); + } + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + public Builder setPublicDeals(PublicDealsV3Api value) { + if (publicDealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicDealsBuilder_.setMessage(value); + } + bodyCase_ = 301; + return this; + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + public Builder setPublicDeals( + PublicDealsV3Api.Builder builderForValue) { + if (publicDealsBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicDealsBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 301; + return this; + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + public Builder mergePublicDeals(PublicDealsV3Api value) { + if (publicDealsBuilder_ == null) { + if (bodyCase_ == 301 && + body_ != PublicDealsV3Api.getDefaultInstance()) { + body_ = PublicDealsV3Api.newBuilder((PublicDealsV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 301) { + publicDealsBuilder_.mergeFrom(value); + } else { + publicDealsBuilder_.setMessage(value); + } + } + bodyCase_ = 301; + return this; + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + public Builder clearPublicDeals() { + if (publicDealsBuilder_ == null) { + if (bodyCase_ == 301) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 301) { + bodyCase_ = 0; + body_ = null; + } + publicDealsBuilder_.clear(); + } + return this; + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + public PublicDealsV3Api.Builder getPublicDealsBuilder() { + return getPublicDealsFieldBuilder().getBuilder(); + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + @Override + public PublicDealsV3ApiOrBuilder getPublicDealsOrBuilder() { + if ((bodyCase_ == 301) && (publicDealsBuilder_ != null)) { + return publicDealsBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 301) { + return (PublicDealsV3Api) body_; + } + return PublicDealsV3Api.getDefaultInstance(); + } + } + /** + * .PublicDealsV3Api publicDeals = 301; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicDealsV3Api, PublicDealsV3Api.Builder, PublicDealsV3ApiOrBuilder> + getPublicDealsFieldBuilder() { + if (publicDealsBuilder_ == null) { + if (!(bodyCase_ == 301)) { + body_ = PublicDealsV3Api.getDefaultInstance(); + } + publicDealsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicDealsV3Api, PublicDealsV3Api.Builder, PublicDealsV3ApiOrBuilder>( + (PublicDealsV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 301; + onChanged(); + return publicDealsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicIncreaseDepthsV3Api, PublicIncreaseDepthsV3Api.Builder, PublicIncreaseDepthsV3ApiOrBuilder> publicIncreaseDepthsBuilder_; + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + * @return Whether the publicIncreaseDepths field is set. + */ + @Override + public boolean hasPublicIncreaseDepths() { + return bodyCase_ == 302; + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + * @return The publicIncreaseDepths. + */ + @Override + public PublicIncreaseDepthsV3Api getPublicIncreaseDepths() { + if (publicIncreaseDepthsBuilder_ == null) { + if (bodyCase_ == 302) { + return (PublicIncreaseDepthsV3Api) body_; + } + return PublicIncreaseDepthsV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 302) { + return publicIncreaseDepthsBuilder_.getMessage(); + } + return PublicIncreaseDepthsV3Api.getDefaultInstance(); + } + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + public Builder setPublicIncreaseDepths(PublicIncreaseDepthsV3Api value) { + if (publicIncreaseDepthsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicIncreaseDepthsBuilder_.setMessage(value); + } + bodyCase_ = 302; + return this; + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + public Builder setPublicIncreaseDepths( + PublicIncreaseDepthsV3Api.Builder builderForValue) { + if (publicIncreaseDepthsBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicIncreaseDepthsBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 302; + return this; + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + public Builder mergePublicIncreaseDepths(PublicIncreaseDepthsV3Api value) { + if (publicIncreaseDepthsBuilder_ == null) { + if (bodyCase_ == 302 && + body_ != PublicIncreaseDepthsV3Api.getDefaultInstance()) { + body_ = PublicIncreaseDepthsV3Api.newBuilder((PublicIncreaseDepthsV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 302) { + publicIncreaseDepthsBuilder_.mergeFrom(value); + } else { + publicIncreaseDepthsBuilder_.setMessage(value); + } + } + bodyCase_ = 302; + return this; + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + public Builder clearPublicIncreaseDepths() { + if (publicIncreaseDepthsBuilder_ == null) { + if (bodyCase_ == 302) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 302) { + bodyCase_ = 0; + body_ = null; + } + publicIncreaseDepthsBuilder_.clear(); + } + return this; + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + public PublicIncreaseDepthsV3Api.Builder getPublicIncreaseDepthsBuilder() { + return getPublicIncreaseDepthsFieldBuilder().getBuilder(); + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + @Override + public PublicIncreaseDepthsV3ApiOrBuilder getPublicIncreaseDepthsOrBuilder() { + if ((bodyCase_ == 302) && (publicIncreaseDepthsBuilder_ != null)) { + return publicIncreaseDepthsBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 302) { + return (PublicIncreaseDepthsV3Api) body_; + } + return PublicIncreaseDepthsV3Api.getDefaultInstance(); + } + } + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicIncreaseDepthsV3Api, PublicIncreaseDepthsV3Api.Builder, PublicIncreaseDepthsV3ApiOrBuilder> + getPublicIncreaseDepthsFieldBuilder() { + if (publicIncreaseDepthsBuilder_ == null) { + if (!(bodyCase_ == 302)) { + body_ = PublicIncreaseDepthsV3Api.getDefaultInstance(); + } + publicIncreaseDepthsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicIncreaseDepthsV3Api, PublicIncreaseDepthsV3Api.Builder, PublicIncreaseDepthsV3ApiOrBuilder>( + (PublicIncreaseDepthsV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 302; + onChanged(); + return publicIncreaseDepthsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicLimitDepthsV3Api, PublicLimitDepthsV3Api.Builder, PublicLimitDepthsV3ApiOrBuilder> publicLimitDepthsBuilder_; + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + * @return Whether the publicLimitDepths field is set. + */ + @Override + public boolean hasPublicLimitDepths() { + return bodyCase_ == 303; + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + * @return The publicLimitDepths. + */ + @Override + public PublicLimitDepthsV3Api getPublicLimitDepths() { + if (publicLimitDepthsBuilder_ == null) { + if (bodyCase_ == 303) { + return (PublicLimitDepthsV3Api) body_; + } + return PublicLimitDepthsV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 303) { + return publicLimitDepthsBuilder_.getMessage(); + } + return PublicLimitDepthsV3Api.getDefaultInstance(); + } + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + public Builder setPublicLimitDepths(PublicLimitDepthsV3Api value) { + if (publicLimitDepthsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicLimitDepthsBuilder_.setMessage(value); + } + bodyCase_ = 303; + return this; + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + public Builder setPublicLimitDepths( + PublicLimitDepthsV3Api.Builder builderForValue) { + if (publicLimitDepthsBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicLimitDepthsBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 303; + return this; + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + public Builder mergePublicLimitDepths(PublicLimitDepthsV3Api value) { + if (publicLimitDepthsBuilder_ == null) { + if (bodyCase_ == 303 && + body_ != PublicLimitDepthsV3Api.getDefaultInstance()) { + body_ = PublicLimitDepthsV3Api.newBuilder((PublicLimitDepthsV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 303) { + publicLimitDepthsBuilder_.mergeFrom(value); + } else { + publicLimitDepthsBuilder_.setMessage(value); + } + } + bodyCase_ = 303; + return this; + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + public Builder clearPublicLimitDepths() { + if (publicLimitDepthsBuilder_ == null) { + if (bodyCase_ == 303) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 303) { + bodyCase_ = 0; + body_ = null; + } + publicLimitDepthsBuilder_.clear(); + } + return this; + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + public PublicLimitDepthsV3Api.Builder getPublicLimitDepthsBuilder() { + return getPublicLimitDepthsFieldBuilder().getBuilder(); + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + @Override + public PublicLimitDepthsV3ApiOrBuilder getPublicLimitDepthsOrBuilder() { + if ((bodyCase_ == 303) && (publicLimitDepthsBuilder_ != null)) { + return publicLimitDepthsBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 303) { + return (PublicLimitDepthsV3Api) body_; + } + return PublicLimitDepthsV3Api.getDefaultInstance(); + } + } + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicLimitDepthsV3Api, PublicLimitDepthsV3Api.Builder, PublicLimitDepthsV3ApiOrBuilder> + getPublicLimitDepthsFieldBuilder() { + if (publicLimitDepthsBuilder_ == null) { + if (!(bodyCase_ == 303)) { + body_ = PublicLimitDepthsV3Api.getDefaultInstance(); + } + publicLimitDepthsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicLimitDepthsV3Api, PublicLimitDepthsV3Api.Builder, PublicLimitDepthsV3ApiOrBuilder>( + (PublicLimitDepthsV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 303; + onChanged(); + return publicLimitDepthsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PrivateOrdersV3Api, PrivateOrdersV3Api.Builder, PrivateOrdersV3ApiOrBuilder> privateOrdersBuilder_; + /** + * .PrivateOrdersV3Api privateOrders = 304; + * @return Whether the privateOrders field is set. + */ + @Override + public boolean hasPrivateOrders() { + return bodyCase_ == 304; + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + * @return The privateOrders. + */ + @Override + public PrivateOrdersV3Api getPrivateOrders() { + if (privateOrdersBuilder_ == null) { + if (bodyCase_ == 304) { + return (PrivateOrdersV3Api) body_; + } + return PrivateOrdersV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 304) { + return privateOrdersBuilder_.getMessage(); + } + return PrivateOrdersV3Api.getDefaultInstance(); + } + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + public Builder setPrivateOrders(PrivateOrdersV3Api value) { + if (privateOrdersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + privateOrdersBuilder_.setMessage(value); + } + bodyCase_ = 304; + return this; + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + public Builder setPrivateOrders( + PrivateOrdersV3Api.Builder builderForValue) { + if (privateOrdersBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + privateOrdersBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 304; + return this; + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + public Builder mergePrivateOrders(PrivateOrdersV3Api value) { + if (privateOrdersBuilder_ == null) { + if (bodyCase_ == 304 && + body_ != PrivateOrdersV3Api.getDefaultInstance()) { + body_ = PrivateOrdersV3Api.newBuilder((PrivateOrdersV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 304) { + privateOrdersBuilder_.mergeFrom(value); + } else { + privateOrdersBuilder_.setMessage(value); + } + } + bodyCase_ = 304; + return this; + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + public Builder clearPrivateOrders() { + if (privateOrdersBuilder_ == null) { + if (bodyCase_ == 304) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 304) { + bodyCase_ = 0; + body_ = null; + } + privateOrdersBuilder_.clear(); + } + return this; + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + public PrivateOrdersV3Api.Builder getPrivateOrdersBuilder() { + return getPrivateOrdersFieldBuilder().getBuilder(); + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + @Override + public PrivateOrdersV3ApiOrBuilder getPrivateOrdersOrBuilder() { + if ((bodyCase_ == 304) && (privateOrdersBuilder_ != null)) { + return privateOrdersBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 304) { + return (PrivateOrdersV3Api) body_; + } + return PrivateOrdersV3Api.getDefaultInstance(); + } + } + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + private com.google.protobuf.SingleFieldBuilder< + PrivateOrdersV3Api, PrivateOrdersV3Api.Builder, PrivateOrdersV3ApiOrBuilder> + getPrivateOrdersFieldBuilder() { + if (privateOrdersBuilder_ == null) { + if (!(bodyCase_ == 304)) { + body_ = PrivateOrdersV3Api.getDefaultInstance(); + } + privateOrdersBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PrivateOrdersV3Api, PrivateOrdersV3Api.Builder, PrivateOrdersV3ApiOrBuilder>( + (PrivateOrdersV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 304; + onChanged(); + return privateOrdersBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicBookTickerV3Api, PublicBookTickerV3Api.Builder, PublicBookTickerV3ApiOrBuilder> publicBookTickerBuilder_; + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + * @return Whether the publicBookTicker field is set. + */ + @Override + public boolean hasPublicBookTicker() { + return bodyCase_ == 305; + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + * @return The publicBookTicker. + */ + @Override + public PublicBookTickerV3Api getPublicBookTicker() { + if (publicBookTickerBuilder_ == null) { + if (bodyCase_ == 305) { + return (PublicBookTickerV3Api) body_; + } + return PublicBookTickerV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 305) { + return publicBookTickerBuilder_.getMessage(); + } + return PublicBookTickerV3Api.getDefaultInstance(); + } + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + public Builder setPublicBookTicker(PublicBookTickerV3Api value) { + if (publicBookTickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicBookTickerBuilder_.setMessage(value); + } + bodyCase_ = 305; + return this; + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + public Builder setPublicBookTicker( + PublicBookTickerV3Api.Builder builderForValue) { + if (publicBookTickerBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicBookTickerBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 305; + return this; + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + public Builder mergePublicBookTicker(PublicBookTickerV3Api value) { + if (publicBookTickerBuilder_ == null) { + if (bodyCase_ == 305 && + body_ != PublicBookTickerV3Api.getDefaultInstance()) { + body_ = PublicBookTickerV3Api.newBuilder((PublicBookTickerV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 305) { + publicBookTickerBuilder_.mergeFrom(value); + } else { + publicBookTickerBuilder_.setMessage(value); + } + } + bodyCase_ = 305; + return this; + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + public Builder clearPublicBookTicker() { + if (publicBookTickerBuilder_ == null) { + if (bodyCase_ == 305) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 305) { + bodyCase_ = 0; + body_ = null; + } + publicBookTickerBuilder_.clear(); + } + return this; + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + public PublicBookTickerV3Api.Builder getPublicBookTickerBuilder() { + return getPublicBookTickerFieldBuilder().getBuilder(); + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + @Override + public PublicBookTickerV3ApiOrBuilder getPublicBookTickerOrBuilder() { + if ((bodyCase_ == 305) && (publicBookTickerBuilder_ != null)) { + return publicBookTickerBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 305) { + return (PublicBookTickerV3Api) body_; + } + return PublicBookTickerV3Api.getDefaultInstance(); + } + } + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicBookTickerV3Api, PublicBookTickerV3Api.Builder, PublicBookTickerV3ApiOrBuilder> + getPublicBookTickerFieldBuilder() { + if (publicBookTickerBuilder_ == null) { + if (!(bodyCase_ == 305)) { + body_ = PublicBookTickerV3Api.getDefaultInstance(); + } + publicBookTickerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicBookTickerV3Api, PublicBookTickerV3Api.Builder, PublicBookTickerV3ApiOrBuilder>( + (PublicBookTickerV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 305; + onChanged(); + return publicBookTickerBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PrivateDealsV3Api, PrivateDealsV3Api.Builder, PrivateDealsV3ApiOrBuilder> privateDealsBuilder_; + /** + * .PrivateDealsV3Api privateDeals = 306; + * @return Whether the privateDeals field is set. + */ + @Override + public boolean hasPrivateDeals() { + return bodyCase_ == 306; + } + /** + * .PrivateDealsV3Api privateDeals = 306; + * @return The privateDeals. + */ + @Override + public PrivateDealsV3Api getPrivateDeals() { + if (privateDealsBuilder_ == null) { + if (bodyCase_ == 306) { + return (PrivateDealsV3Api) body_; + } + return PrivateDealsV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 306) { + return privateDealsBuilder_.getMessage(); + } + return PrivateDealsV3Api.getDefaultInstance(); + } + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + public Builder setPrivateDeals(PrivateDealsV3Api value) { + if (privateDealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + privateDealsBuilder_.setMessage(value); + } + bodyCase_ = 306; + return this; + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + public Builder setPrivateDeals( + PrivateDealsV3Api.Builder builderForValue) { + if (privateDealsBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + privateDealsBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 306; + return this; + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + public Builder mergePrivateDeals(PrivateDealsV3Api value) { + if (privateDealsBuilder_ == null) { + if (bodyCase_ == 306 && + body_ != PrivateDealsV3Api.getDefaultInstance()) { + body_ = PrivateDealsV3Api.newBuilder((PrivateDealsV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 306) { + privateDealsBuilder_.mergeFrom(value); + } else { + privateDealsBuilder_.setMessage(value); + } + } + bodyCase_ = 306; + return this; + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + public Builder clearPrivateDeals() { + if (privateDealsBuilder_ == null) { + if (bodyCase_ == 306) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 306) { + bodyCase_ = 0; + body_ = null; + } + privateDealsBuilder_.clear(); + } + return this; + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + public PrivateDealsV3Api.Builder getPrivateDealsBuilder() { + return getPrivateDealsFieldBuilder().getBuilder(); + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + @Override + public PrivateDealsV3ApiOrBuilder getPrivateDealsOrBuilder() { + if ((bodyCase_ == 306) && (privateDealsBuilder_ != null)) { + return privateDealsBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 306) { + return (PrivateDealsV3Api) body_; + } + return PrivateDealsV3Api.getDefaultInstance(); + } + } + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + private com.google.protobuf.SingleFieldBuilder< + PrivateDealsV3Api, PrivateDealsV3Api.Builder, PrivateDealsV3ApiOrBuilder> + getPrivateDealsFieldBuilder() { + if (privateDealsBuilder_ == null) { + if (!(bodyCase_ == 306)) { + body_ = PrivateDealsV3Api.getDefaultInstance(); + } + privateDealsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PrivateDealsV3Api, PrivateDealsV3Api.Builder, PrivateDealsV3ApiOrBuilder>( + (PrivateDealsV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 306; + onChanged(); + return privateDealsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PrivateAccountV3Api, PrivateAccountV3Api.Builder, PrivateAccountV3ApiOrBuilder> privateAccountBuilder_; + /** + * .PrivateAccountV3Api privateAccount = 307; + * @return Whether the privateAccount field is set. + */ + @Override + public boolean hasPrivateAccount() { + return bodyCase_ == 307; + } + /** + * .PrivateAccountV3Api privateAccount = 307; + * @return The privateAccount. + */ + @Override + public PrivateAccountV3Api getPrivateAccount() { + if (privateAccountBuilder_ == null) { + if (bodyCase_ == 307) { + return (PrivateAccountV3Api) body_; + } + return PrivateAccountV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 307) { + return privateAccountBuilder_.getMessage(); + } + return PrivateAccountV3Api.getDefaultInstance(); + } + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + public Builder setPrivateAccount(PrivateAccountV3Api value) { + if (privateAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + privateAccountBuilder_.setMessage(value); + } + bodyCase_ = 307; + return this; + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + public Builder setPrivateAccount( + PrivateAccountV3Api.Builder builderForValue) { + if (privateAccountBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + privateAccountBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 307; + return this; + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + public Builder mergePrivateAccount(PrivateAccountV3Api value) { + if (privateAccountBuilder_ == null) { + if (bodyCase_ == 307 && + body_ != PrivateAccountV3Api.getDefaultInstance()) { + body_ = PrivateAccountV3Api.newBuilder((PrivateAccountV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 307) { + privateAccountBuilder_.mergeFrom(value); + } else { + privateAccountBuilder_.setMessage(value); + } + } + bodyCase_ = 307; + return this; + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + public Builder clearPrivateAccount() { + if (privateAccountBuilder_ == null) { + if (bodyCase_ == 307) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 307) { + bodyCase_ = 0; + body_ = null; + } + privateAccountBuilder_.clear(); + } + return this; + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + public PrivateAccountV3Api.Builder getPrivateAccountBuilder() { + return getPrivateAccountFieldBuilder().getBuilder(); + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + @Override + public PrivateAccountV3ApiOrBuilder getPrivateAccountOrBuilder() { + if ((bodyCase_ == 307) && (privateAccountBuilder_ != null)) { + return privateAccountBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 307) { + return (PrivateAccountV3Api) body_; + } + return PrivateAccountV3Api.getDefaultInstance(); + } + } + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + private com.google.protobuf.SingleFieldBuilder< + PrivateAccountV3Api, PrivateAccountV3Api.Builder, PrivateAccountV3ApiOrBuilder> + getPrivateAccountFieldBuilder() { + if (privateAccountBuilder_ == null) { + if (!(bodyCase_ == 307)) { + body_ = PrivateAccountV3Api.getDefaultInstance(); + } + privateAccountBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PrivateAccountV3Api, PrivateAccountV3Api.Builder, PrivateAccountV3ApiOrBuilder>( + (PrivateAccountV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 307; + onChanged(); + return privateAccountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicSpotKlineV3Api, PublicSpotKlineV3Api.Builder, PublicSpotKlineV3ApiOrBuilder> publicSpotKlineBuilder_; + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + * @return Whether the publicSpotKline field is set. + */ + @Override + public boolean hasPublicSpotKline() { + return bodyCase_ == 308; + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + * @return The publicSpotKline. + */ + @Override + public PublicSpotKlineV3Api getPublicSpotKline() { + if (publicSpotKlineBuilder_ == null) { + if (bodyCase_ == 308) { + return (PublicSpotKlineV3Api) body_; + } + return PublicSpotKlineV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 308) { + return publicSpotKlineBuilder_.getMessage(); + } + return PublicSpotKlineV3Api.getDefaultInstance(); + } + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + public Builder setPublicSpotKline(PublicSpotKlineV3Api value) { + if (publicSpotKlineBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicSpotKlineBuilder_.setMessage(value); + } + bodyCase_ = 308; + return this; + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + public Builder setPublicSpotKline( + PublicSpotKlineV3Api.Builder builderForValue) { + if (publicSpotKlineBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicSpotKlineBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 308; + return this; + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + public Builder mergePublicSpotKline(PublicSpotKlineV3Api value) { + if (publicSpotKlineBuilder_ == null) { + if (bodyCase_ == 308 && + body_ != PublicSpotKlineV3Api.getDefaultInstance()) { + body_ = PublicSpotKlineV3Api.newBuilder((PublicSpotKlineV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 308) { + publicSpotKlineBuilder_.mergeFrom(value); + } else { + publicSpotKlineBuilder_.setMessage(value); + } + } + bodyCase_ = 308; + return this; + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + public Builder clearPublicSpotKline() { + if (publicSpotKlineBuilder_ == null) { + if (bodyCase_ == 308) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 308) { + bodyCase_ = 0; + body_ = null; + } + publicSpotKlineBuilder_.clear(); + } + return this; + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + public PublicSpotKlineV3Api.Builder getPublicSpotKlineBuilder() { + return getPublicSpotKlineFieldBuilder().getBuilder(); + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + @Override + public PublicSpotKlineV3ApiOrBuilder getPublicSpotKlineOrBuilder() { + if ((bodyCase_ == 308) && (publicSpotKlineBuilder_ != null)) { + return publicSpotKlineBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 308) { + return (PublicSpotKlineV3Api) body_; + } + return PublicSpotKlineV3Api.getDefaultInstance(); + } + } + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicSpotKlineV3Api, PublicSpotKlineV3Api.Builder, PublicSpotKlineV3ApiOrBuilder> + getPublicSpotKlineFieldBuilder() { + if (publicSpotKlineBuilder_ == null) { + if (!(bodyCase_ == 308)) { + body_ = PublicSpotKlineV3Api.getDefaultInstance(); + } + publicSpotKlineBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicSpotKlineV3Api, PublicSpotKlineV3Api.Builder, PublicSpotKlineV3ApiOrBuilder>( + (PublicSpotKlineV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 308; + onChanged(); + return publicSpotKlineBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicMiniTickerV3Api, PublicMiniTickerV3Api.Builder, PublicMiniTickerV3ApiOrBuilder> publicMiniTickerBuilder_; + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + * @return Whether the publicMiniTicker field is set. + */ + @Override + public boolean hasPublicMiniTicker() { + return bodyCase_ == 309; + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + * @return The publicMiniTicker. + */ + @Override + public PublicMiniTickerV3Api getPublicMiniTicker() { + if (publicMiniTickerBuilder_ == null) { + if (bodyCase_ == 309) { + return (PublicMiniTickerV3Api) body_; + } + return PublicMiniTickerV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 309) { + return publicMiniTickerBuilder_.getMessage(); + } + return PublicMiniTickerV3Api.getDefaultInstance(); + } + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + public Builder setPublicMiniTicker(PublicMiniTickerV3Api value) { + if (publicMiniTickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicMiniTickerBuilder_.setMessage(value); + } + bodyCase_ = 309; + return this; + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + public Builder setPublicMiniTicker( + PublicMiniTickerV3Api.Builder builderForValue) { + if (publicMiniTickerBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicMiniTickerBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 309; + return this; + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + public Builder mergePublicMiniTicker(PublicMiniTickerV3Api value) { + if (publicMiniTickerBuilder_ == null) { + if (bodyCase_ == 309 && + body_ != PublicMiniTickerV3Api.getDefaultInstance()) { + body_ = PublicMiniTickerV3Api.newBuilder((PublicMiniTickerV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 309) { + publicMiniTickerBuilder_.mergeFrom(value); + } else { + publicMiniTickerBuilder_.setMessage(value); + } + } + bodyCase_ = 309; + return this; + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + public Builder clearPublicMiniTicker() { + if (publicMiniTickerBuilder_ == null) { + if (bodyCase_ == 309) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 309) { + bodyCase_ = 0; + body_ = null; + } + publicMiniTickerBuilder_.clear(); + } + return this; + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + public PublicMiniTickerV3Api.Builder getPublicMiniTickerBuilder() { + return getPublicMiniTickerFieldBuilder().getBuilder(); + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + @Override + public PublicMiniTickerV3ApiOrBuilder getPublicMiniTickerOrBuilder() { + if ((bodyCase_ == 309) && (publicMiniTickerBuilder_ != null)) { + return publicMiniTickerBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 309) { + return (PublicMiniTickerV3Api) body_; + } + return PublicMiniTickerV3Api.getDefaultInstance(); + } + } + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicMiniTickerV3Api, PublicMiniTickerV3Api.Builder, PublicMiniTickerV3ApiOrBuilder> + getPublicMiniTickerFieldBuilder() { + if (publicMiniTickerBuilder_ == null) { + if (!(bodyCase_ == 309)) { + body_ = PublicMiniTickerV3Api.getDefaultInstance(); + } + publicMiniTickerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicMiniTickerV3Api, PublicMiniTickerV3Api.Builder, PublicMiniTickerV3ApiOrBuilder>( + (PublicMiniTickerV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 309; + onChanged(); + return publicMiniTickerBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicMiniTickersV3Api, PublicMiniTickersV3Api.Builder, PublicMiniTickersV3ApiOrBuilder> publicMiniTickersBuilder_; + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + * @return Whether the publicMiniTickers field is set. + */ + @Override + public boolean hasPublicMiniTickers() { + return bodyCase_ == 310; + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + * @return The publicMiniTickers. + */ + @Override + public PublicMiniTickersV3Api getPublicMiniTickers() { + if (publicMiniTickersBuilder_ == null) { + if (bodyCase_ == 310) { + return (PublicMiniTickersV3Api) body_; + } + return PublicMiniTickersV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 310) { + return publicMiniTickersBuilder_.getMessage(); + } + return PublicMiniTickersV3Api.getDefaultInstance(); + } + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + public Builder setPublicMiniTickers(PublicMiniTickersV3Api value) { + if (publicMiniTickersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicMiniTickersBuilder_.setMessage(value); + } + bodyCase_ = 310; + return this; + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + public Builder setPublicMiniTickers( + PublicMiniTickersV3Api.Builder builderForValue) { + if (publicMiniTickersBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicMiniTickersBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 310; + return this; + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + public Builder mergePublicMiniTickers(PublicMiniTickersV3Api value) { + if (publicMiniTickersBuilder_ == null) { + if (bodyCase_ == 310 && + body_ != PublicMiniTickersV3Api.getDefaultInstance()) { + body_ = PublicMiniTickersV3Api.newBuilder((PublicMiniTickersV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 310) { + publicMiniTickersBuilder_.mergeFrom(value); + } else { + publicMiniTickersBuilder_.setMessage(value); + } + } + bodyCase_ = 310; + return this; + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + public Builder clearPublicMiniTickers() { + if (publicMiniTickersBuilder_ == null) { + if (bodyCase_ == 310) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 310) { + bodyCase_ = 0; + body_ = null; + } + publicMiniTickersBuilder_.clear(); + } + return this; + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + public PublicMiniTickersV3Api.Builder getPublicMiniTickersBuilder() { + return getPublicMiniTickersFieldBuilder().getBuilder(); + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + @Override + public PublicMiniTickersV3ApiOrBuilder getPublicMiniTickersOrBuilder() { + if ((bodyCase_ == 310) && (publicMiniTickersBuilder_ != null)) { + return publicMiniTickersBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 310) { + return (PublicMiniTickersV3Api) body_; + } + return PublicMiniTickersV3Api.getDefaultInstance(); + } + } + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicMiniTickersV3Api, PublicMiniTickersV3Api.Builder, PublicMiniTickersV3ApiOrBuilder> + getPublicMiniTickersFieldBuilder() { + if (publicMiniTickersBuilder_ == null) { + if (!(bodyCase_ == 310)) { + body_ = PublicMiniTickersV3Api.getDefaultInstance(); + } + publicMiniTickersBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicMiniTickersV3Api, PublicMiniTickersV3Api.Builder, PublicMiniTickersV3ApiOrBuilder>( + (PublicMiniTickersV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 310; + onChanged(); + return publicMiniTickersBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicBookTickerBatchV3Api, PublicBookTickerBatchV3Api.Builder, PublicBookTickerBatchV3ApiOrBuilder> publicBookTickerBatchBuilder_; + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + * @return Whether the publicBookTickerBatch field is set. + */ + @Override + public boolean hasPublicBookTickerBatch() { + return bodyCase_ == 311; + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + * @return The publicBookTickerBatch. + */ + @Override + public PublicBookTickerBatchV3Api getPublicBookTickerBatch() { + if (publicBookTickerBatchBuilder_ == null) { + if (bodyCase_ == 311) { + return (PublicBookTickerBatchV3Api) body_; + } + return PublicBookTickerBatchV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 311) { + return publicBookTickerBatchBuilder_.getMessage(); + } + return PublicBookTickerBatchV3Api.getDefaultInstance(); + } + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + public Builder setPublicBookTickerBatch(PublicBookTickerBatchV3Api value) { + if (publicBookTickerBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicBookTickerBatchBuilder_.setMessage(value); + } + bodyCase_ = 311; + return this; + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + public Builder setPublicBookTickerBatch( + PublicBookTickerBatchV3Api.Builder builderForValue) { + if (publicBookTickerBatchBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicBookTickerBatchBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 311; + return this; + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + public Builder mergePublicBookTickerBatch(PublicBookTickerBatchV3Api value) { + if (publicBookTickerBatchBuilder_ == null) { + if (bodyCase_ == 311 && + body_ != PublicBookTickerBatchV3Api.getDefaultInstance()) { + body_ = PublicBookTickerBatchV3Api.newBuilder((PublicBookTickerBatchV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 311) { + publicBookTickerBatchBuilder_.mergeFrom(value); + } else { + publicBookTickerBatchBuilder_.setMessage(value); + } + } + bodyCase_ = 311; + return this; + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + public Builder clearPublicBookTickerBatch() { + if (publicBookTickerBatchBuilder_ == null) { + if (bodyCase_ == 311) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 311) { + bodyCase_ = 0; + body_ = null; + } + publicBookTickerBatchBuilder_.clear(); + } + return this; + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + public PublicBookTickerBatchV3Api.Builder getPublicBookTickerBatchBuilder() { + return getPublicBookTickerBatchFieldBuilder().getBuilder(); + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + @Override + public PublicBookTickerBatchV3ApiOrBuilder getPublicBookTickerBatchOrBuilder() { + if ((bodyCase_ == 311) && (publicBookTickerBatchBuilder_ != null)) { + return publicBookTickerBatchBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 311) { + return (PublicBookTickerBatchV3Api) body_; + } + return PublicBookTickerBatchV3Api.getDefaultInstance(); + } + } + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicBookTickerBatchV3Api, PublicBookTickerBatchV3Api.Builder, PublicBookTickerBatchV3ApiOrBuilder> + getPublicBookTickerBatchFieldBuilder() { + if (publicBookTickerBatchBuilder_ == null) { + if (!(bodyCase_ == 311)) { + body_ = PublicBookTickerBatchV3Api.getDefaultInstance(); + } + publicBookTickerBatchBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicBookTickerBatchV3Api, PublicBookTickerBatchV3Api.Builder, PublicBookTickerBatchV3ApiOrBuilder>( + (PublicBookTickerBatchV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 311; + onChanged(); + return publicBookTickerBatchBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicIncreaseDepthsBatchV3Api, PublicIncreaseDepthsBatchV3Api.Builder, PublicIncreaseDepthsBatchV3ApiOrBuilder> publicIncreaseDepthsBatchBuilder_; + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + * @return Whether the publicIncreaseDepthsBatch field is set. + */ + @Override + public boolean hasPublicIncreaseDepthsBatch() { + return bodyCase_ == 312; + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + * @return The publicIncreaseDepthsBatch. + */ + @Override + public PublicIncreaseDepthsBatchV3Api getPublicIncreaseDepthsBatch() { + if (publicIncreaseDepthsBatchBuilder_ == null) { + if (bodyCase_ == 312) { + return (PublicIncreaseDepthsBatchV3Api) body_; + } + return PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 312) { + return publicIncreaseDepthsBatchBuilder_.getMessage(); + } + return PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + public Builder setPublicIncreaseDepthsBatch(PublicIncreaseDepthsBatchV3Api value) { + if (publicIncreaseDepthsBatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicIncreaseDepthsBatchBuilder_.setMessage(value); + } + bodyCase_ = 312; + return this; + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + public Builder setPublicIncreaseDepthsBatch( + PublicIncreaseDepthsBatchV3Api.Builder builderForValue) { + if (publicIncreaseDepthsBatchBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicIncreaseDepthsBatchBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 312; + return this; + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + public Builder mergePublicIncreaseDepthsBatch(PublicIncreaseDepthsBatchV3Api value) { + if (publicIncreaseDepthsBatchBuilder_ == null) { + if (bodyCase_ == 312 && + body_ != PublicIncreaseDepthsBatchV3Api.getDefaultInstance()) { + body_ = PublicIncreaseDepthsBatchV3Api.newBuilder((PublicIncreaseDepthsBatchV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 312) { + publicIncreaseDepthsBatchBuilder_.mergeFrom(value); + } else { + publicIncreaseDepthsBatchBuilder_.setMessage(value); + } + } + bodyCase_ = 312; + return this; + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + public Builder clearPublicIncreaseDepthsBatch() { + if (publicIncreaseDepthsBatchBuilder_ == null) { + if (bodyCase_ == 312) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 312) { + bodyCase_ = 0; + body_ = null; + } + publicIncreaseDepthsBatchBuilder_.clear(); + } + return this; + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + public PublicIncreaseDepthsBatchV3Api.Builder getPublicIncreaseDepthsBatchBuilder() { + return getPublicIncreaseDepthsBatchFieldBuilder().getBuilder(); + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + @Override + public PublicIncreaseDepthsBatchV3ApiOrBuilder getPublicIncreaseDepthsBatchOrBuilder() { + if ((bodyCase_ == 312) && (publicIncreaseDepthsBatchBuilder_ != null)) { + return publicIncreaseDepthsBatchBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 312) { + return (PublicIncreaseDepthsBatchV3Api) body_; + } + return PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } + } + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicIncreaseDepthsBatchV3Api, PublicIncreaseDepthsBatchV3Api.Builder, PublicIncreaseDepthsBatchV3ApiOrBuilder> + getPublicIncreaseDepthsBatchFieldBuilder() { + if (publicIncreaseDepthsBatchBuilder_ == null) { + if (!(bodyCase_ == 312)) { + body_ = PublicIncreaseDepthsBatchV3Api.getDefaultInstance(); + } + publicIncreaseDepthsBatchBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicIncreaseDepthsBatchV3Api, PublicIncreaseDepthsBatchV3Api.Builder, PublicIncreaseDepthsBatchV3ApiOrBuilder>( + (PublicIncreaseDepthsBatchV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 312; + onChanged(); + return publicIncreaseDepthsBatchBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicAggreDepthsV3Api, PublicAggreDepthsV3Api.Builder, PublicAggreDepthsV3ApiOrBuilder> publicAggreDepthsBuilder_; + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + * @return Whether the publicAggreDepths field is set. + */ + @Override + public boolean hasPublicAggreDepths() { + return bodyCase_ == 313; + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + * @return The publicAggreDepths. + */ + @Override + public PublicAggreDepthsV3Api getPublicAggreDepths() { + if (publicAggreDepthsBuilder_ == null) { + if (bodyCase_ == 313) { + return (PublicAggreDepthsV3Api) body_; + } + return PublicAggreDepthsV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 313) { + return publicAggreDepthsBuilder_.getMessage(); + } + return PublicAggreDepthsV3Api.getDefaultInstance(); + } + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + public Builder setPublicAggreDepths(PublicAggreDepthsV3Api value) { + if (publicAggreDepthsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicAggreDepthsBuilder_.setMessage(value); + } + bodyCase_ = 313; + return this; + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + public Builder setPublicAggreDepths( + PublicAggreDepthsV3Api.Builder builderForValue) { + if (publicAggreDepthsBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicAggreDepthsBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 313; + return this; + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + public Builder mergePublicAggreDepths(PublicAggreDepthsV3Api value) { + if (publicAggreDepthsBuilder_ == null) { + if (bodyCase_ == 313 && + body_ != PublicAggreDepthsV3Api.getDefaultInstance()) { + body_ = PublicAggreDepthsV3Api.newBuilder((PublicAggreDepthsV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 313) { + publicAggreDepthsBuilder_.mergeFrom(value); + } else { + publicAggreDepthsBuilder_.setMessage(value); + } + } + bodyCase_ = 313; + return this; + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + public Builder clearPublicAggreDepths() { + if (publicAggreDepthsBuilder_ == null) { + if (bodyCase_ == 313) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 313) { + bodyCase_ = 0; + body_ = null; + } + publicAggreDepthsBuilder_.clear(); + } + return this; + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + public PublicAggreDepthsV3Api.Builder getPublicAggreDepthsBuilder() { + return getPublicAggreDepthsFieldBuilder().getBuilder(); + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + @Override + public PublicAggreDepthsV3ApiOrBuilder getPublicAggreDepthsOrBuilder() { + if ((bodyCase_ == 313) && (publicAggreDepthsBuilder_ != null)) { + return publicAggreDepthsBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 313) { + return (PublicAggreDepthsV3Api) body_; + } + return PublicAggreDepthsV3Api.getDefaultInstance(); + } + } + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicAggreDepthsV3Api, PublicAggreDepthsV3Api.Builder, PublicAggreDepthsV3ApiOrBuilder> + getPublicAggreDepthsFieldBuilder() { + if (publicAggreDepthsBuilder_ == null) { + if (!(bodyCase_ == 313)) { + body_ = PublicAggreDepthsV3Api.getDefaultInstance(); + } + publicAggreDepthsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicAggreDepthsV3Api, PublicAggreDepthsV3Api.Builder, PublicAggreDepthsV3ApiOrBuilder>( + (PublicAggreDepthsV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 313; + onChanged(); + return publicAggreDepthsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicAggreDealsV3Api, PublicAggreDealsV3Api.Builder, PublicAggreDealsV3ApiOrBuilder> publicAggreDealsBuilder_; + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + * @return Whether the publicAggreDeals field is set. + */ + @Override + public boolean hasPublicAggreDeals() { + return bodyCase_ == 314; + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + * @return The publicAggreDeals. + */ + @Override + public PublicAggreDealsV3Api getPublicAggreDeals() { + if (publicAggreDealsBuilder_ == null) { + if (bodyCase_ == 314) { + return (PublicAggreDealsV3Api) body_; + } + return PublicAggreDealsV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 314) { + return publicAggreDealsBuilder_.getMessage(); + } + return PublicAggreDealsV3Api.getDefaultInstance(); + } + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + public Builder setPublicAggreDeals(PublicAggreDealsV3Api value) { + if (publicAggreDealsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicAggreDealsBuilder_.setMessage(value); + } + bodyCase_ = 314; + return this; + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + public Builder setPublicAggreDeals( + PublicAggreDealsV3Api.Builder builderForValue) { + if (publicAggreDealsBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicAggreDealsBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 314; + return this; + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + public Builder mergePublicAggreDeals(PublicAggreDealsV3Api value) { + if (publicAggreDealsBuilder_ == null) { + if (bodyCase_ == 314 && + body_ != PublicAggreDealsV3Api.getDefaultInstance()) { + body_ = PublicAggreDealsV3Api.newBuilder((PublicAggreDealsV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 314) { + publicAggreDealsBuilder_.mergeFrom(value); + } else { + publicAggreDealsBuilder_.setMessage(value); + } + } + bodyCase_ = 314; + return this; + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + public Builder clearPublicAggreDeals() { + if (publicAggreDealsBuilder_ == null) { + if (bodyCase_ == 314) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 314) { + bodyCase_ = 0; + body_ = null; + } + publicAggreDealsBuilder_.clear(); + } + return this; + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + public PublicAggreDealsV3Api.Builder getPublicAggreDealsBuilder() { + return getPublicAggreDealsFieldBuilder().getBuilder(); + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + @Override + public PublicAggreDealsV3ApiOrBuilder getPublicAggreDealsOrBuilder() { + if ((bodyCase_ == 314) && (publicAggreDealsBuilder_ != null)) { + return publicAggreDealsBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 314) { + return (PublicAggreDealsV3Api) body_; + } + return PublicAggreDealsV3Api.getDefaultInstance(); + } + } + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicAggreDealsV3Api, PublicAggreDealsV3Api.Builder, PublicAggreDealsV3ApiOrBuilder> + getPublicAggreDealsFieldBuilder() { + if (publicAggreDealsBuilder_ == null) { + if (!(bodyCase_ == 314)) { + body_ = PublicAggreDealsV3Api.getDefaultInstance(); + } + publicAggreDealsBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicAggreDealsV3Api, PublicAggreDealsV3Api.Builder, PublicAggreDealsV3ApiOrBuilder>( + (PublicAggreDealsV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 314; + onChanged(); + return publicAggreDealsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + PublicAggreBookTickerV3Api, PublicAggreBookTickerV3Api.Builder, PublicAggreBookTickerV3ApiOrBuilder> publicAggreBookTickerBuilder_; + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + * @return Whether the publicAggreBookTicker field is set. + */ + @Override + public boolean hasPublicAggreBookTicker() { + return bodyCase_ == 315; + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + * @return The publicAggreBookTicker. + */ + @Override + public PublicAggreBookTickerV3Api getPublicAggreBookTicker() { + if (publicAggreBookTickerBuilder_ == null) { + if (bodyCase_ == 315) { + return (PublicAggreBookTickerV3Api) body_; + } + return PublicAggreBookTickerV3Api.getDefaultInstance(); + } else { + if (bodyCase_ == 315) { + return publicAggreBookTickerBuilder_.getMessage(); + } + return PublicAggreBookTickerV3Api.getDefaultInstance(); + } + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + public Builder setPublicAggreBookTicker(PublicAggreBookTickerV3Api value) { + if (publicAggreBookTickerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + body_ = value; + onChanged(); + } else { + publicAggreBookTickerBuilder_.setMessage(value); + } + bodyCase_ = 315; + return this; + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + public Builder setPublicAggreBookTicker( + PublicAggreBookTickerV3Api.Builder builderForValue) { + if (publicAggreBookTickerBuilder_ == null) { + body_ = builderForValue.build(); + onChanged(); + } else { + publicAggreBookTickerBuilder_.setMessage(builderForValue.build()); + } + bodyCase_ = 315; + return this; + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + public Builder mergePublicAggreBookTicker(PublicAggreBookTickerV3Api value) { + if (publicAggreBookTickerBuilder_ == null) { + if (bodyCase_ == 315 && + body_ != PublicAggreBookTickerV3Api.getDefaultInstance()) { + body_ = PublicAggreBookTickerV3Api.newBuilder((PublicAggreBookTickerV3Api) body_) + .mergeFrom(value).buildPartial(); + } else { + body_ = value; + } + onChanged(); + } else { + if (bodyCase_ == 315) { + publicAggreBookTickerBuilder_.mergeFrom(value); + } else { + publicAggreBookTickerBuilder_.setMessage(value); + } + } + bodyCase_ = 315; + return this; + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + public Builder clearPublicAggreBookTicker() { + if (publicAggreBookTickerBuilder_ == null) { + if (bodyCase_ == 315) { + bodyCase_ = 0; + body_ = null; + onChanged(); + } + } else { + if (bodyCase_ == 315) { + bodyCase_ = 0; + body_ = null; + } + publicAggreBookTickerBuilder_.clear(); + } + return this; + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + public PublicAggreBookTickerV3Api.Builder getPublicAggreBookTickerBuilder() { + return getPublicAggreBookTickerFieldBuilder().getBuilder(); + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + @Override + public PublicAggreBookTickerV3ApiOrBuilder getPublicAggreBookTickerOrBuilder() { + if ((bodyCase_ == 315) && (publicAggreBookTickerBuilder_ != null)) { + return publicAggreBookTickerBuilder_.getMessageOrBuilder(); + } else { + if (bodyCase_ == 315) { + return (PublicAggreBookTickerV3Api) body_; + } + return PublicAggreBookTickerV3Api.getDefaultInstance(); + } + } + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + private com.google.protobuf.SingleFieldBuilder< + PublicAggreBookTickerV3Api, PublicAggreBookTickerV3Api.Builder, PublicAggreBookTickerV3ApiOrBuilder> + getPublicAggreBookTickerFieldBuilder() { + if (publicAggreBookTickerBuilder_ == null) { + if (!(bodyCase_ == 315)) { + body_ = PublicAggreBookTickerV3Api.getDefaultInstance(); + } + publicAggreBookTickerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + PublicAggreBookTickerV3Api, PublicAggreBookTickerV3Api.Builder, PublicAggreBookTickerV3ApiOrBuilder>( + (PublicAggreBookTickerV3Api) body_, + getParentForChildren(), + isClean()); + body_ = null; + } + bodyCase_ = 315; + onChanged(); + return publicAggreBookTickerBuilder_; + } + + private Object symbol_ = ""; + /** + *
+     * *
+     * 交易对
+     * 
+ * + * optional string symbol = 3; + * @return Whether the symbol field is set. + */ + public boolean hasSymbol() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + *
+     * *
+     * 交易对
+     * 
+ * + * optional string symbol = 3; + * @return The symbol. + */ + public String getSymbol() { + Object ref = symbol_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbol_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * *
+     * 交易对
+     * 
+ * + * optional string symbol = 3; + * @return The bytes for symbol. + */ + public com.google.protobuf.ByteString + getSymbolBytes() { + Object ref = symbol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * *
+     * 交易对
+     * 
+ * + * optional string symbol = 3; + * @param value The symbol to set. + * @return This builder for chaining. + */ + public Builder setSymbol( + String value) { + if (value == null) { throw new NullPointerException(); } + symbol_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + *
+     * *
+     * 交易对
+     * 
+ * + * optional string symbol = 3; + * @return This builder for chaining. + */ + public Builder clearSymbol() { + symbol_ = getDefaultInstance().getSymbol(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + *
+     * *
+     * 交易对
+     * 
+ * + * optional 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_ |= 0x00010000; + onChanged(); + return this; + } + + private Object symbolId_ = ""; + /** + *
+     * *
+     * 交易对ID
+     * 
+ * + * optional string symbolId = 4; + * @return Whether the symbolId field is set. + */ + public boolean hasSymbolId() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + *
+     * *
+     * 交易对ID
+     * 
+ * + * optional string symbolId = 4; + * @return The symbolId. + */ + public String getSymbolId() { + Object ref = symbolId_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + symbolId_ = s; + return s; + } else { + return (String) ref; + } + } + /** + *
+     * *
+     * 交易对ID
+     * 
+ * + * optional string symbolId = 4; + * @return The bytes for symbolId. + */ + public com.google.protobuf.ByteString + getSymbolIdBytes() { + Object ref = symbolId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + symbolId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * *
+     * 交易对ID
+     * 
+ * + * optional string symbolId = 4; + * @param value The symbolId to set. + * @return This builder for chaining. + */ + public Builder setSymbolId( + String value) { + if (value == null) { throw new NullPointerException(); } + symbolId_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + *
+     * *
+     * 交易对ID
+     * 
+ * + * optional string symbolId = 4; + * @return This builder for chaining. + */ + public Builder clearSymbolId() { + symbolId_ = getDefaultInstance().getSymbolId(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + /** + *
+     * *
+     * 交易对ID
+     * 
+ * + * optional string symbolId = 4; + * @param value The bytes for symbolId to set. + * @return This builder for chaining. + */ + public Builder setSymbolIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + symbolId_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private long createTime_ ; + /** + *
+     * *
+     * 消息生成时间
+     * 
+ * + * optional int64 createTime = 5; + * @return Whether the createTime field is set. + */ + @Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + *
+     * *
+     * 消息生成时间
+     * 
+ * + * optional int64 createTime = 5; + * @return The createTime. + */ + @Override + public long getCreateTime() { + return createTime_; + } + /** + *
+     * *
+     * 消息生成时间
+     * 
+ * + * optional int64 createTime = 5; + * @param value The createTime to set. + * @return This builder for chaining. + */ + public Builder setCreateTime(long value) { + + createTime_ = value; + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + *
+     * *
+     * 消息生成时间
+     * 
+ * + * optional int64 createTime = 5; + * @return This builder for chaining. + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00040000); + createTime_ = 0L; + onChanged(); + return this; + } + + private long sendTime_ ; + /** + *
+     * *
+     * 消息推送时间
+     * 
+ * + * optional int64 sendTime = 6; + * @return Whether the sendTime field is set. + */ + @Override + public boolean hasSendTime() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + *
+     * *
+     * 消息推送时间
+     * 
+ * + * optional int64 sendTime = 6; + * @return The sendTime. + */ + @Override + public long getSendTime() { + return sendTime_; + } + /** + *
+     * *
+     * 消息推送时间
+     * 
+ * + * optional int64 sendTime = 6; + * @param value The sendTime to set. + * @return This builder for chaining. + */ + public Builder setSendTime(long value) { + + sendTime_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + *
+     * *
+     * 消息推送时间
+     * 
+ * + * optional int64 sendTime = 6; + * @return This builder for chaining. + */ + public Builder clearSendTime() { + bitField0_ = (bitField0_ & ~0x00080000); + sendTime_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:PushDataV3ApiWrapper) + } + + // @@protoc_insertion_point(class_scope:PushDataV3ApiWrapper) + private static final PushDataV3ApiWrapper DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new PushDataV3ApiWrapper(); + } + + public static PushDataV3ApiWrapper getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @Override + public PushDataV3ApiWrapper 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; + } + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @Override + public PushDataV3ApiWrapper getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapperOrBuilder.java b/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapperOrBuilder.java new file mode 100644 index 00000000..c5db906c --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapperOrBuilder.java @@ -0,0 +1,366 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PushDataV3ApiWrapper.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public interface PushDataV3ApiWrapperOrBuilder extends + // @@protoc_insertion_point(interface_extends:PushDataV3ApiWrapper) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * *
+   * 频道
+   * 
+ * + * string channel = 1; + * @return The channel. + */ + String getChannel(); + /** + *
+   * *
+   * 频道
+   * 
+ * + * string channel = 1; + * @return The bytes for channel. + */ + com.google.protobuf.ByteString + getChannelBytes(); + + /** + * .PublicDealsV3Api publicDeals = 301; + * @return Whether the publicDeals field is set. + */ + boolean hasPublicDeals(); + /** + * .PublicDealsV3Api publicDeals = 301; + * @return The publicDeals. + */ + PublicDealsV3Api getPublicDeals(); + /** + * .PublicDealsV3Api publicDeals = 301; + */ + PublicDealsV3ApiOrBuilder getPublicDealsOrBuilder(); + + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + * @return Whether the publicIncreaseDepths field is set. + */ + boolean hasPublicIncreaseDepths(); + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + * @return The publicIncreaseDepths. + */ + PublicIncreaseDepthsV3Api getPublicIncreaseDepths(); + /** + * .PublicIncreaseDepthsV3Api publicIncreaseDepths = 302; + */ + PublicIncreaseDepthsV3ApiOrBuilder getPublicIncreaseDepthsOrBuilder(); + + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + * @return Whether the publicLimitDepths field is set. + */ + boolean hasPublicLimitDepths(); + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + * @return The publicLimitDepths. + */ + PublicLimitDepthsV3Api getPublicLimitDepths(); + /** + * .PublicLimitDepthsV3Api publicLimitDepths = 303; + */ + PublicLimitDepthsV3ApiOrBuilder getPublicLimitDepthsOrBuilder(); + + /** + * .PrivateOrdersV3Api privateOrders = 304; + * @return Whether the privateOrders field is set. + */ + boolean hasPrivateOrders(); + /** + * .PrivateOrdersV3Api privateOrders = 304; + * @return The privateOrders. + */ + PrivateOrdersV3Api getPrivateOrders(); + /** + * .PrivateOrdersV3Api privateOrders = 304; + */ + PrivateOrdersV3ApiOrBuilder getPrivateOrdersOrBuilder(); + + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + * @return Whether the publicBookTicker field is set. + */ + boolean hasPublicBookTicker(); + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + * @return The publicBookTicker. + */ + PublicBookTickerV3Api getPublicBookTicker(); + /** + * .PublicBookTickerV3Api publicBookTicker = 305; + */ + PublicBookTickerV3ApiOrBuilder getPublicBookTickerOrBuilder(); + + /** + * .PrivateDealsV3Api privateDeals = 306; + * @return Whether the privateDeals field is set. + */ + boolean hasPrivateDeals(); + /** + * .PrivateDealsV3Api privateDeals = 306; + * @return The privateDeals. + */ + PrivateDealsV3Api getPrivateDeals(); + /** + * .PrivateDealsV3Api privateDeals = 306; + */ + PrivateDealsV3ApiOrBuilder getPrivateDealsOrBuilder(); + + /** + * .PrivateAccountV3Api privateAccount = 307; + * @return Whether the privateAccount field is set. + */ + boolean hasPrivateAccount(); + /** + * .PrivateAccountV3Api privateAccount = 307; + * @return The privateAccount. + */ + PrivateAccountV3Api getPrivateAccount(); + /** + * .PrivateAccountV3Api privateAccount = 307; + */ + PrivateAccountV3ApiOrBuilder getPrivateAccountOrBuilder(); + + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + * @return Whether the publicSpotKline field is set. + */ + boolean hasPublicSpotKline(); + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + * @return The publicSpotKline. + */ + PublicSpotKlineV3Api getPublicSpotKline(); + /** + * .PublicSpotKlineV3Api publicSpotKline = 308; + */ + PublicSpotKlineV3ApiOrBuilder getPublicSpotKlineOrBuilder(); + + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + * @return Whether the publicMiniTicker field is set. + */ + boolean hasPublicMiniTicker(); + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + * @return The publicMiniTicker. + */ + PublicMiniTickerV3Api getPublicMiniTicker(); + /** + * .PublicMiniTickerV3Api publicMiniTicker = 309; + */ + PublicMiniTickerV3ApiOrBuilder getPublicMiniTickerOrBuilder(); + + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + * @return Whether the publicMiniTickers field is set. + */ + boolean hasPublicMiniTickers(); + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + * @return The publicMiniTickers. + */ + PublicMiniTickersV3Api getPublicMiniTickers(); + /** + * .PublicMiniTickersV3Api publicMiniTickers = 310; + */ + PublicMiniTickersV3ApiOrBuilder getPublicMiniTickersOrBuilder(); + + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + * @return Whether the publicBookTickerBatch field is set. + */ + boolean hasPublicBookTickerBatch(); + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + * @return The publicBookTickerBatch. + */ + PublicBookTickerBatchV3Api getPublicBookTickerBatch(); + /** + * .PublicBookTickerBatchV3Api publicBookTickerBatch = 311; + */ + PublicBookTickerBatchV3ApiOrBuilder getPublicBookTickerBatchOrBuilder(); + + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + * @return Whether the publicIncreaseDepthsBatch field is set. + */ + boolean hasPublicIncreaseDepthsBatch(); + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + * @return The publicIncreaseDepthsBatch. + */ + PublicIncreaseDepthsBatchV3Api getPublicIncreaseDepthsBatch(); + /** + * .PublicIncreaseDepthsBatchV3Api publicIncreaseDepthsBatch = 312; + */ + PublicIncreaseDepthsBatchV3ApiOrBuilder getPublicIncreaseDepthsBatchOrBuilder(); + + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + * @return Whether the publicAggreDepths field is set. + */ + boolean hasPublicAggreDepths(); + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + * @return The publicAggreDepths. + */ + PublicAggreDepthsV3Api getPublicAggreDepths(); + /** + * .PublicAggreDepthsV3Api publicAggreDepths = 313; + */ + PublicAggreDepthsV3ApiOrBuilder getPublicAggreDepthsOrBuilder(); + + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + * @return Whether the publicAggreDeals field is set. + */ + boolean hasPublicAggreDeals(); + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + * @return The publicAggreDeals. + */ + PublicAggreDealsV3Api getPublicAggreDeals(); + /** + * .PublicAggreDealsV3Api publicAggreDeals = 314; + */ + PublicAggreDealsV3ApiOrBuilder getPublicAggreDealsOrBuilder(); + + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + * @return Whether the publicAggreBookTicker field is set. + */ + boolean hasPublicAggreBookTicker(); + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + * @return The publicAggreBookTicker. + */ + PublicAggreBookTickerV3Api getPublicAggreBookTicker(); + /** + * .PublicAggreBookTickerV3Api publicAggreBookTicker = 315; + */ + PublicAggreBookTickerV3ApiOrBuilder getPublicAggreBookTickerOrBuilder(); + + /** + *
+   * *
+   * 交易对
+   * 
+ * + * optional string symbol = 3; + * @return Whether the symbol field is set. + */ + boolean hasSymbol(); + /** + *
+   * *
+   * 交易对
+   * 
+ * + * optional string symbol = 3; + * @return The symbol. + */ + String getSymbol(); + /** + *
+   * *
+   * 交易对
+   * 
+ * + * optional string symbol = 3; + * @return The bytes for symbol. + */ + com.google.protobuf.ByteString + getSymbolBytes(); + + /** + *
+   * *
+   * 交易对ID
+   * 
+ * + * optional string symbolId = 4; + * @return Whether the symbolId field is set. + */ + boolean hasSymbolId(); + /** + *
+   * *
+   * 交易对ID
+   * 
+ * + * optional string symbolId = 4; + * @return The symbolId. + */ + String getSymbolId(); + /** + *
+   * *
+   * 交易对ID
+   * 
+ * + * optional string symbolId = 4; + * @return The bytes for symbolId. + */ + com.google.protobuf.ByteString + getSymbolIdBytes(); + + /** + *
+   * *
+   * 消息生成时间
+   * 
+ * + * optional int64 createTime = 5; + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + *
+   * *
+   * 消息生成时间
+   * 
+ * + * optional int64 createTime = 5; + * @return The createTime. + */ + long getCreateTime(); + + /** + *
+   * *
+   * 消息推送时间
+   * 
+ * + * optional int64 sendTime = 6; + * @return Whether the sendTime field is set. + */ + boolean hasSendTime(); + /** + *
+   * *
+   * 消息推送时间
+   * 
+ * + * optional int64 sendTime = 6; + * @return The sendTime. + */ + long getSendTime(); + + PushDataV3ApiWrapper.BodyCase getBodyCase(); +} diff --git a/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapperProto.java b/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapperProto.java new file mode 100644 index 00000000..8020ba43 --- /dev/null +++ b/Java/src/main/java/com/mxc/push/common/protobuf/PushDataV3ApiWrapperProto.java @@ -0,0 +1,126 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: PushDataV3ApiWrapper.proto +// Protobuf Java Version: 4.29.3 + +package com.mxc.push.common.protobuf; + +public final class PushDataV3ApiWrapperProto { + private PushDataV3ApiWrapperProto() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 29, + /* patch= */ 3, + /* suffix= */ "", + PushDataV3ApiWrapperProto.class.getName()); + } + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_PushDataV3ApiWrapper_descriptor; + static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_PushDataV3ApiWrapper_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\032PushDataV3ApiWrapper.proto\032\026PublicDeal" + + "sV3Api.proto\032\037PublicIncreaseDepthsV3Api." + + "proto\032\034PublicLimitDepthsV3Api.proto\032\030Pri" + + "vateOrdersV3Api.proto\032\033PublicBookTickerV" + + "3Api.proto\032\027PrivateDealsV3Api.proto\032\031Pri" + + "vateAccountV3Api.proto\032\032PublicSpotKlineV" + + "3Api.proto\032\033PublicMiniTickerV3Api.proto\032" + + "\034PublicMiniTickersV3Api.proto\032 PublicBoo" + + "kTickerBatchV3Api.proto\032$PublicIncreaseD" + + "epthsBatchV3Api.proto\032\034PublicAggreDepths" + + "V3Api.proto\032\033PublicAggreDealsV3Api.proto" + + "\032 PublicAggreBookTickerV3Api.proto\"\360\007\n\024P" + + "ushDataV3ApiWrapper\022\017\n\007channel\030\001 \001(\t\022)\n\013" + + "publicDeals\030\255\002 \001(\0132\021.PublicDealsV3ApiH\000\022" + + ";\n\024publicIncreaseDepths\030\256\002 \001(\0132\032.PublicI" + + "ncreaseDepthsV3ApiH\000\0225\n\021publicLimitDepth" + + "s\030\257\002 \001(\0132\027.PublicLimitDepthsV3ApiH\000\022-\n\rp" + + "rivateOrders\030\260\002 \001(\0132\023.PrivateOrdersV3Api" + + "H\000\0223\n\020publicBookTicker\030\261\002 \001(\0132\026.PublicBo" + + "okTickerV3ApiH\000\022+\n\014privateDeals\030\262\002 \001(\0132\022" + + ".PrivateDealsV3ApiH\000\022/\n\016privateAccount\030\263" + + "\002 \001(\0132\024.PrivateAccountV3ApiH\000\0221\n\017publicS" + + "potKline\030\264\002 \001(\0132\025.PublicSpotKlineV3ApiH\000" + + "\0223\n\020publicMiniTicker\030\265\002 \001(\0132\026.PublicMini" + + "TickerV3ApiH\000\0225\n\021publicMiniTickers\030\266\002 \001(" + + "\0132\027.PublicMiniTickersV3ApiH\000\022=\n\025publicBo" + + "okTickerBatch\030\267\002 \001(\0132\033.PublicBookTickerB" + + "atchV3ApiH\000\022E\n\031publicIncreaseDepthsBatch" + + "\030\270\002 \001(\0132\037.PublicIncreaseDepthsBatchV3Api" + + "H\000\0225\n\021publicAggreDepths\030\271\002 \001(\0132\027.PublicA" + + "ggreDepthsV3ApiH\000\0223\n\020publicAggreDeals\030\272\002" + + " \001(\0132\026.PublicAggreDealsV3ApiH\000\022=\n\025public" + + "AggreBookTicker\030\273\002 \001(\0132\033.PublicAggreBook" + + "TickerV3ApiH\000\022\023\n\006symbol\030\003 \001(\tH\001\210\001\001\022\025\n\010sy" + + "mbolId\030\004 \001(\tH\002\210\001\001\022\027\n\ncreateTime\030\005 \001(\003H\003\210" + + "\001\001\022\025\n\010sendTime\030\006 \001(\003H\004\210\001\001B\006\n\004bodyB\t\n\007_sy" + + "mbolB\013\n\t_symbolIdB\r\n\013_createTimeB\013\n\t_sen" + + "dTimeB=\n\034com.mxc.push.common.protobufB\031P" + + "ushDataV3ApiWrapperProtoH\001P\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + PublicDealsV3ApiProto.getDescriptor(), + PublicIncreaseDepthsV3ApiProto.getDescriptor(), + PublicLimitDepthsV3ApiProto.getDescriptor(), + PrivateOrdersV3ApiProto.getDescriptor(), + PublicBookTickerV3ApiProto.getDescriptor(), + PrivateDealsV3ApiProto.getDescriptor(), + PrivateAccountV3ApiProto.getDescriptor(), + PublicSpotKlineV3ApiProto.getDescriptor(), + PublicMiniTickerV3ApiProto.getDescriptor(), + PublicMiniTickersV3ApiProto.getDescriptor(), + PublicBookTickerBatchV3ApiProto.getDescriptor(), + PublicIncreaseDepthsBatchV3ApiProto.getDescriptor(), + PublicAggreDepthsV3ApiProto.getDescriptor(), + PublicAggreDealsV3ApiProto.getDescriptor(), + PublicAggreBookTickerV3ApiProto.getDescriptor(), + }); + internal_static_PushDataV3ApiWrapper_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_PushDataV3ApiWrapper_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_PushDataV3ApiWrapper_descriptor, + new String[] { "Channel", "PublicDeals", "PublicIncreaseDepths", "PublicLimitDepths", "PrivateOrders", "PublicBookTicker", "PrivateDeals", "PrivateAccount", "PublicSpotKline", "PublicMiniTicker", "PublicMiniTickers", "PublicBookTickerBatch", "PublicIncreaseDepthsBatch", "PublicAggreDepths", "PublicAggreDeals", "PublicAggreBookTicker", "Symbol", "SymbolId", "CreateTime", "SendTime", "Body", }); + descriptor.resolveAllFeaturesImmutable(); + PublicDealsV3ApiProto.getDescriptor(); + PublicIncreaseDepthsV3ApiProto.getDescriptor(); + PublicLimitDepthsV3ApiProto.getDescriptor(); + PrivateOrdersV3ApiProto.getDescriptor(); + PublicBookTickerV3ApiProto.getDescriptor(); + PrivateDealsV3ApiProto.getDescriptor(); + PrivateAccountV3ApiProto.getDescriptor(); + PublicSpotKlineV3ApiProto.getDescriptor(); + PublicMiniTickerV3ApiProto.getDescriptor(); + PublicMiniTickersV3ApiProto.getDescriptor(); + PublicBookTickerBatchV3ApiProto.getDescriptor(); + PublicIncreaseDepthsBatchV3ApiProto.getDescriptor(); + PublicAggreDepthsV3ApiProto.getDescriptor(); + PublicAggreDealsV3ApiProto.getDescriptor(); + PublicAggreBookTickerV3ApiProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}