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

com.moomoo.openapi.pb.TrdPlaceOrder Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Trd_PlaceOrder.proto

package com.moomoo.openapi.pb;

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

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

    /**
     * 
     *交易写操作防重放攻击
     * 
* * required .Common.PacketID packetID = 1; */ boolean hasPacketID(); /** *
     *交易写操作防重放攻击
     * 
* * required .Common.PacketID packetID = 1; */ com.moomoo.openapi.pb.Common.PacketID getPacketID(); /** *
     *交易写操作防重放攻击
     * 
* * required .Common.PacketID packetID = 1; */ com.moomoo.openapi.pb.Common.PacketIDOrBuilder getPacketIDOrBuilder(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 2; */ boolean hasHeader(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 2; */ com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 2; */ com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder(); /** *
     *交易方向, 参见Trd_Common.TrdSide的枚举定义
     * 
* * required int32 trdSide = 3; */ boolean hasTrdSide(); /** *
     *交易方向, 参见Trd_Common.TrdSide的枚举定义
     * 
* * required int32 trdSide = 3; */ int getTrdSide(); /** *
     *订单类型, 参见Trd_Common.OrderType的枚举定义
     * 
* * required int32 orderType = 4; */ boolean hasOrderType(); /** *
     *订单类型, 参见Trd_Common.OrderType的枚举定义
     * 
* * required int32 orderType = 4; */ int getOrderType(); /** *
     *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
     * 
* * required string code = 5; */ boolean hasCode(); /** *
     *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
     * 
* * required string code = 5; */ java.lang.String getCode(); /** *
     *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
     * 
* * required string code = 5; */ com.google.protobuf.ByteString getCodeBytes(); /** *
     *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
     * 
* * required double qty = 6; */ boolean hasQty(); /** *
     *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
     * 
* * required double qty = 6; */ double getQty(); /** *
     *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
     * 
* * optional double price = 7; */ boolean hasPrice(); /** *
     *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
     * 
* * optional double price = 7; */ double getPrice(); /** *
     *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
     * 
* * optional bool adjustPrice = 8; */ boolean hasAdjustPrice(); /** *
     *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
     * 
* * optional bool adjustPrice = 8; */ boolean getAdjustPrice(); /** *
     *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
     * 
* * optional double adjustSideAndLimit = 9; */ boolean hasAdjustSideAndLimit(); /** *
     *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
     * 
* * optional double adjustSideAndLimit = 9; */ double getAdjustSideAndLimit(); /** *
     *证券所属市场,参见TrdSecMarket的枚举定义
     * 
* * optional int32 secMarket = 10; */ boolean hasSecMarket(); /** *
     *证券所属市场,参见TrdSecMarket的枚举定义
     * 
* * optional int32 secMarket = 10; */ int getSecMarket(); /** *
     *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
     * 
* * optional string remark = 11; */ boolean hasRemark(); /** *
     *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
     * 
* * optional string remark = 11; */ java.lang.String getRemark(); /** *
     *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
     * 
* * optional string remark = 11; */ com.google.protobuf.ByteString getRemarkBytes(); /** *
     *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
     * 
* * optional int32 timeInForce = 12; */ boolean hasTimeInForce(); /** *
     *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
     * 
* * optional int32 timeInForce = 12; */ int getTimeInForce(); /** *
     *是否允许盘前盘后成交。仅适用于美股限价单。默认false
     * 
* * optional bool fillOutsideRTH = 13; */ boolean hasFillOutsideRTH(); /** *
     *是否允许盘前盘后成交。仅适用于美股限价单。默认false
     * 
* * optional bool fillOutsideRTH = 13; */ boolean getFillOutsideRTH(); /** *
     *触发价格
     * 
* * optional double auxPrice = 14; */ boolean hasAuxPrice(); /** *
     *触发价格
     * 
* * optional double auxPrice = 14; */ double getAuxPrice(); /** *
     *跟踪类型, 参见Trd_Common.TrailType的枚举定义
     * 
* * optional int32 trailType = 15; */ boolean hasTrailType(); /** *
     *跟踪类型, 参见Trd_Common.TrailType的枚举定义
     * 
* * optional int32 trailType = 15; */ int getTrailType(); /** *
     *跟踪金额/百分比
     * 
* * optional double trailValue = 16; */ boolean hasTrailValue(); /** *
     *跟踪金额/百分比
     * 
* * optional double trailValue = 16; */ double getTrailValue(); /** *
     *指定价差
     * 
* * optional double trailSpread = 17; */ boolean hasTrailSpread(); /** *
     *指定价差
     * 
* * optional double trailSpread = 17; */ double getTrailSpread(); } /** * Protobuf type {@code Trd_PlaceOrder.C2S} */ public static final class C2S extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Trd_PlaceOrder.C2S) C2SOrBuilder { private static final long serialVersionUID = 0L; // Use C2S.newBuilder() to construct. private C2S(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private C2S() { trdSide_ = 0; orderType_ = 0; code_ = ""; qty_ = 0D; price_ = 0D; adjustPrice_ = false; adjustSideAndLimit_ = 0D; secMarket_ = 0; remark_ = ""; timeInForce_ = 0; fillOutsideRTH_ = false; auxPrice_ = 0D; trailType_ = 0; trailValue_ = 0D; trailSpread_ = 0D; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private C2S( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.moomoo.openapi.pb.Common.PacketID.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = packetID_.toBuilder(); } packetID_ = input.readMessage(com.moomoo.openapi.pb.Common.PacketID.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(packetID_); packetID_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.moomoo.openapi.pb.TrdCommon.TrdHeader.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 24: { bitField0_ |= 0x00000004; trdSide_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; orderType_ = input.readInt32(); break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; code_ = bs; break; } case 49: { bitField0_ |= 0x00000020; qty_ = input.readDouble(); break; } case 57: { bitField0_ |= 0x00000040; price_ = input.readDouble(); break; } case 64: { bitField0_ |= 0x00000080; adjustPrice_ = input.readBool(); break; } case 73: { bitField0_ |= 0x00000100; adjustSideAndLimit_ = input.readDouble(); break; } case 80: { bitField0_ |= 0x00000200; secMarket_ = input.readInt32(); break; } case 90: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000400; remark_ = bs; break; } case 96: { bitField0_ |= 0x00000800; timeInForce_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00001000; fillOutsideRTH_ = input.readBool(); break; } case 113: { bitField0_ |= 0x00002000; auxPrice_ = input.readDouble(); break; } case 120: { bitField0_ |= 0x00004000; trailType_ = input.readInt32(); break; } case 129: { bitField0_ |= 0x00008000; trailValue_ = input.readDouble(); break; } case 137: { bitField0_ |= 0x00010000; trailSpread_ = input.readDouble(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.C2S.class, com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder.class); } private int bitField0_; public static final int PACKETID_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.Common.PacketID packetID_; /** *
     *交易写操作防重放攻击
     * 
* * required .Common.PacketID packetID = 1; */ public boolean hasPacketID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *交易写操作防重放攻击
     * 
* * required .Common.PacketID packetID = 1; */ public com.moomoo.openapi.pb.Common.PacketID getPacketID() { return packetID_ == null ? com.moomoo.openapi.pb.Common.PacketID.getDefaultInstance() : packetID_; } /** *
     *交易写操作防重放攻击
     * 
* * required .Common.PacketID packetID = 1; */ public com.moomoo.openapi.pb.Common.PacketIDOrBuilder getPacketIDOrBuilder() { return packetID_ == null ? com.moomoo.openapi.pb.Common.PacketID.getDefaultInstance() : packetID_; } public static final int HEADER_FIELD_NUMBER = 2; private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_; /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 2; */ public boolean hasHeader() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 2; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 2; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } public static final int TRDSIDE_FIELD_NUMBER = 3; private int trdSide_; /** *
     *交易方向, 参见Trd_Common.TrdSide的枚举定义
     * 
* * required int32 trdSide = 3; */ public boolean hasTrdSide() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *交易方向, 参见Trd_Common.TrdSide的枚举定义
     * 
* * required int32 trdSide = 3; */ public int getTrdSide() { return trdSide_; } public static final int ORDERTYPE_FIELD_NUMBER = 4; private int orderType_; /** *
     *订单类型, 参见Trd_Common.OrderType的枚举定义
     * 
* * required int32 orderType = 4; */ public boolean hasOrderType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     *订单类型, 参见Trd_Common.OrderType的枚举定义
     * 
* * required int32 orderType = 4; */ public int getOrderType() { return orderType_; } public static final int CODE_FIELD_NUMBER = 5; private volatile java.lang.Object code_; /** *
     *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
     * 
* * required string code = 5; */ public boolean hasCode() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
     * 
* * required string code = 5; */ public java.lang.String getCode() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { code_ = s; } return s; } } /** *
     *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
     * 
* * required string code = 5; */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QTY_FIELD_NUMBER = 6; private double qty_; /** *
     *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
     * 
* * required double qty = 6; */ public boolean hasQty() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
     * 
* * required double qty = 6; */ public double getQty() { return qty_; } public static final int PRICE_FIELD_NUMBER = 7; private double price_; /** *
     *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
     * 
* * optional double price = 7; */ public boolean hasPrice() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
     * 
* * optional double price = 7; */ public double getPrice() { return price_; } public static final int ADJUSTPRICE_FIELD_NUMBER = 8; private boolean adjustPrice_; /** *
     *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
     * 
* * optional bool adjustPrice = 8; */ public boolean hasAdjustPrice() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
     * 
* * optional bool adjustPrice = 8; */ public boolean getAdjustPrice() { return adjustPrice_; } public static final int ADJUSTSIDEANDLIMIT_FIELD_NUMBER = 9; private double adjustSideAndLimit_; /** *
     *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
     * 
* * optional double adjustSideAndLimit = 9; */ public boolean hasAdjustSideAndLimit() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
     * 
* * optional double adjustSideAndLimit = 9; */ public double getAdjustSideAndLimit() { return adjustSideAndLimit_; } public static final int SECMARKET_FIELD_NUMBER = 10; private int secMarket_; /** *
     *证券所属市场,参见TrdSecMarket的枚举定义
     * 
* * optional int32 secMarket = 10; */ public boolean hasSecMarket() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     *证券所属市场,参见TrdSecMarket的枚举定义
     * 
* * optional int32 secMarket = 10; */ public int getSecMarket() { return secMarket_; } public static final int REMARK_FIELD_NUMBER = 11; private volatile java.lang.Object remark_; /** *
     *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
     * 
* * optional string remark = 11; */ public boolean hasRemark() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
     * 
* * optional string remark = 11; */ public java.lang.String getRemark() { java.lang.Object ref = remark_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { remark_ = s; } return s; } } /** *
     *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
     * 
* * optional string remark = 11; */ public com.google.protobuf.ByteString getRemarkBytes() { java.lang.Object ref = remark_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remark_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEINFORCE_FIELD_NUMBER = 12; private int timeInForce_; /** *
     *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
     * 
* * optional int32 timeInForce = 12; */ public boolean hasTimeInForce() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
     *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
     * 
* * optional int32 timeInForce = 12; */ public int getTimeInForce() { return timeInForce_; } public static final int FILLOUTSIDERTH_FIELD_NUMBER = 13; private boolean fillOutsideRTH_; /** *
     *是否允许盘前盘后成交。仅适用于美股限价单。默认false
     * 
* * optional bool fillOutsideRTH = 13; */ public boolean hasFillOutsideRTH() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     *是否允许盘前盘后成交。仅适用于美股限价单。默认false
     * 
* * optional bool fillOutsideRTH = 13; */ public boolean getFillOutsideRTH() { return fillOutsideRTH_; } public static final int AUXPRICE_FIELD_NUMBER = 14; private double auxPrice_; /** *
     *触发价格
     * 
* * optional double auxPrice = 14; */ public boolean hasAuxPrice() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
     *触发价格
     * 
* * optional double auxPrice = 14; */ public double getAuxPrice() { return auxPrice_; } public static final int TRAILTYPE_FIELD_NUMBER = 15; private int trailType_; /** *
     *跟踪类型, 参见Trd_Common.TrailType的枚举定义
     * 
* * optional int32 trailType = 15; */ public boolean hasTrailType() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
     *跟踪类型, 参见Trd_Common.TrailType的枚举定义
     * 
* * optional int32 trailType = 15; */ public int getTrailType() { return trailType_; } public static final int TRAILVALUE_FIELD_NUMBER = 16; private double trailValue_; /** *
     *跟踪金额/百分比
     * 
* * optional double trailValue = 16; */ public boolean hasTrailValue() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
     *跟踪金额/百分比
     * 
* * optional double trailValue = 16; */ public double getTrailValue() { return trailValue_; } public static final int TRAILSPREAD_FIELD_NUMBER = 17; private double trailSpread_; /** *
     *指定价差
     * 
* * optional double trailSpread = 17; */ public boolean hasTrailSpread() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** *
     *指定价差
     * 
* * optional double trailSpread = 17; */ public double getTrailSpread() { return trailSpread_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasPacketID()) { memoizedIsInitialized = 0; return false; } if (!hasHeader()) { memoizedIsInitialized = 0; return false; } if (!hasTrdSide()) { memoizedIsInitialized = 0; return false; } if (!hasOrderType()) { memoizedIsInitialized = 0; return false; } if (!hasCode()) { memoizedIsInitialized = 0; return false; } if (!hasQty()) { memoizedIsInitialized = 0; return false; } if (!getPacketID().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getHeader().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getPacketID()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getHeader()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, trdSide_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, orderType_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, code_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeDouble(6, qty_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeDouble(7, price_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(8, adjustPrice_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeDouble(9, adjustSideAndLimit_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, secMarket_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, remark_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(12, timeInForce_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeBool(13, fillOutsideRTH_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeDouble(14, auxPrice_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeInt32(15, trailType_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeDouble(16, trailValue_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeDouble(17, trailSpread_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPacketID()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getHeader()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, trdSide_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, orderType_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, code_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, qty_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, price_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, adjustPrice_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(9, adjustSideAndLimit_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, secMarket_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, remark_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, timeInForce_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, fillOutsideRTH_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(14, auxPrice_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, trailType_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(16, trailValue_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(17, trailSpread_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.moomoo.openapi.pb.TrdPlaceOrder.C2S)) { return super.equals(obj); } com.moomoo.openapi.pb.TrdPlaceOrder.C2S other = (com.moomoo.openapi.pb.TrdPlaceOrder.C2S) obj; boolean result = true; result = result && (hasPacketID() == other.hasPacketID()); if (hasPacketID()) { result = result && getPacketID() .equals(other.getPacketID()); } result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasTrdSide() == other.hasTrdSide()); if (hasTrdSide()) { result = result && (getTrdSide() == other.getTrdSide()); } result = result && (hasOrderType() == other.hasOrderType()); if (hasOrderType()) { result = result && (getOrderType() == other.getOrderType()); } result = result && (hasCode() == other.hasCode()); if (hasCode()) { result = result && getCode() .equals(other.getCode()); } result = result && (hasQty() == other.hasQty()); if (hasQty()) { result = result && ( java.lang.Double.doubleToLongBits(getQty()) == java.lang.Double.doubleToLongBits( other.getQty())); } result = result && (hasPrice() == other.hasPrice()); if (hasPrice()) { result = result && ( java.lang.Double.doubleToLongBits(getPrice()) == java.lang.Double.doubleToLongBits( other.getPrice())); } result = result && (hasAdjustPrice() == other.hasAdjustPrice()); if (hasAdjustPrice()) { result = result && (getAdjustPrice() == other.getAdjustPrice()); } result = result && (hasAdjustSideAndLimit() == other.hasAdjustSideAndLimit()); if (hasAdjustSideAndLimit()) { result = result && ( java.lang.Double.doubleToLongBits(getAdjustSideAndLimit()) == java.lang.Double.doubleToLongBits( other.getAdjustSideAndLimit())); } result = result && (hasSecMarket() == other.hasSecMarket()); if (hasSecMarket()) { result = result && (getSecMarket() == other.getSecMarket()); } result = result && (hasRemark() == other.hasRemark()); if (hasRemark()) { result = result && getRemark() .equals(other.getRemark()); } result = result && (hasTimeInForce() == other.hasTimeInForce()); if (hasTimeInForce()) { result = result && (getTimeInForce() == other.getTimeInForce()); } result = result && (hasFillOutsideRTH() == other.hasFillOutsideRTH()); if (hasFillOutsideRTH()) { result = result && (getFillOutsideRTH() == other.getFillOutsideRTH()); } result = result && (hasAuxPrice() == other.hasAuxPrice()); if (hasAuxPrice()) { result = result && ( java.lang.Double.doubleToLongBits(getAuxPrice()) == java.lang.Double.doubleToLongBits( other.getAuxPrice())); } result = result && (hasTrailType() == other.hasTrailType()); if (hasTrailType()) { result = result && (getTrailType() == other.getTrailType()); } result = result && (hasTrailValue() == other.hasTrailValue()); if (hasTrailValue()) { result = result && ( java.lang.Double.doubleToLongBits(getTrailValue()) == java.lang.Double.doubleToLongBits( other.getTrailValue())); } result = result && (hasTrailSpread() == other.hasTrailSpread()); if (hasTrailSpread()) { result = result && ( java.lang.Double.doubleToLongBits(getTrailSpread()) == java.lang.Double.doubleToLongBits( other.getTrailSpread())); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPacketID()) { hash = (37 * hash) + PACKETID_FIELD_NUMBER; hash = (53 * hash) + getPacketID().hashCode(); } if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasTrdSide()) { hash = (37 * hash) + TRDSIDE_FIELD_NUMBER; hash = (53 * hash) + getTrdSide(); } if (hasOrderType()) { hash = (37 * hash) + ORDERTYPE_FIELD_NUMBER; hash = (53 * hash) + getOrderType(); } if (hasCode()) { hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode().hashCode(); } if (hasQty()) { hash = (37 * hash) + QTY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getQty())); } if (hasPrice()) { hash = (37 * hash) + PRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getPrice())); } if (hasAdjustPrice()) { hash = (37 * hash) + ADJUSTPRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAdjustPrice()); } if (hasAdjustSideAndLimit()) { hash = (37 * hash) + ADJUSTSIDEANDLIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAdjustSideAndLimit())); } if (hasSecMarket()) { hash = (37 * hash) + SECMARKET_FIELD_NUMBER; hash = (53 * hash) + getSecMarket(); } if (hasRemark()) { hash = (37 * hash) + REMARK_FIELD_NUMBER; hash = (53 * hash) + getRemark().hashCode(); } if (hasTimeInForce()) { hash = (37 * hash) + TIMEINFORCE_FIELD_NUMBER; hash = (53 * hash) + getTimeInForce(); } if (hasFillOutsideRTH()) { hash = (37 * hash) + FILLOUTSIDERTH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFillOutsideRTH()); } if (hasAuxPrice()) { hash = (37 * hash) + AUXPRICE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAuxPrice())); } if (hasTrailType()) { hash = (37 * hash) + TRAILTYPE_FIELD_NUMBER; hash = (53 * hash) + getTrailType(); } if (hasTrailValue()) { hash = (37 * hash) + TRAILVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTrailValue())); } if (hasTrailSpread()) { hash = (37 * hash) + TRAILSPREAD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTrailSpread())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.moomoo.openapi.pb.TrdPlaceOrder.C2S prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Trd_PlaceOrder.C2S} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Trd_PlaceOrder.C2S) com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.C2S.class, com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder.class); } // Construct using com.moomoo.openapi.pb.TrdPlaceOrder.C2S.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPacketIDFieldBuilder(); getHeaderFieldBuilder(); } } public Builder clear() { super.clear(); if (packetIDBuilder_ == null) { packetID_ = null; } else { packetIDBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (headerBuilder_ == null) { header_ = null; } else { headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); trdSide_ = 0; bitField0_ = (bitField0_ & ~0x00000004); orderType_ = 0; bitField0_ = (bitField0_ & ~0x00000008); code_ = ""; bitField0_ = (bitField0_ & ~0x00000010); qty_ = 0D; bitField0_ = (bitField0_ & ~0x00000020); price_ = 0D; bitField0_ = (bitField0_ & ~0x00000040); adjustPrice_ = false; bitField0_ = (bitField0_ & ~0x00000080); adjustSideAndLimit_ = 0D; bitField0_ = (bitField0_ & ~0x00000100); secMarket_ = 0; bitField0_ = (bitField0_ & ~0x00000200); remark_ = ""; bitField0_ = (bitField0_ & ~0x00000400); timeInForce_ = 0; bitField0_ = (bitField0_ & ~0x00000800); fillOutsideRTH_ = false; bitField0_ = (bitField0_ & ~0x00001000); auxPrice_ = 0D; bitField0_ = (bitField0_ & ~0x00002000); trailType_ = 0; bitField0_ = (bitField0_ & ~0x00004000); trailValue_ = 0D; bitField0_ = (bitField0_ & ~0x00008000); trailSpread_ = 0D; bitField0_ = (bitField0_ & ~0x00010000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_C2S_descriptor; } public com.moomoo.openapi.pb.TrdPlaceOrder.C2S getDefaultInstanceForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance(); } public com.moomoo.openapi.pb.TrdPlaceOrder.C2S build() { com.moomoo.openapi.pb.TrdPlaceOrder.C2S result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.TrdPlaceOrder.C2S buildPartial() { com.moomoo.openapi.pb.TrdPlaceOrder.C2S result = new com.moomoo.openapi.pb.TrdPlaceOrder.C2S(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (packetIDBuilder_ == null) { result.packetID_ = packetID_; } else { result.packetID_ = packetIDBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.trdSide_ = trdSide_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.orderType_ = orderType_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.code_ = code_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.qty_ = qty_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.price_ = price_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.adjustPrice_ = adjustPrice_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.adjustSideAndLimit_ = adjustSideAndLimit_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.secMarket_ = secMarket_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.remark_ = remark_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.timeInForce_ = timeInForce_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.fillOutsideRTH_ = fillOutsideRTH_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.auxPrice_ = auxPrice_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.trailType_ = trailType_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.trailValue_ = trailValue_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.trailSpread_ = trailSpread_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.moomoo.openapi.pb.TrdPlaceOrder.C2S) { return mergeFrom((com.moomoo.openapi.pb.TrdPlaceOrder.C2S)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.TrdPlaceOrder.C2S other) { if (other == com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance()) return this; if (other.hasPacketID()) { mergePacketID(other.getPacketID()); } if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasTrdSide()) { setTrdSide(other.getTrdSide()); } if (other.hasOrderType()) { setOrderType(other.getOrderType()); } if (other.hasCode()) { bitField0_ |= 0x00000010; code_ = other.code_; onChanged(); } if (other.hasQty()) { setQty(other.getQty()); } if (other.hasPrice()) { setPrice(other.getPrice()); } if (other.hasAdjustPrice()) { setAdjustPrice(other.getAdjustPrice()); } if (other.hasAdjustSideAndLimit()) { setAdjustSideAndLimit(other.getAdjustSideAndLimit()); } if (other.hasSecMarket()) { setSecMarket(other.getSecMarket()); } if (other.hasRemark()) { bitField0_ |= 0x00000400; remark_ = other.remark_; onChanged(); } if (other.hasTimeInForce()) { setTimeInForce(other.getTimeInForce()); } if (other.hasFillOutsideRTH()) { setFillOutsideRTH(other.getFillOutsideRTH()); } if (other.hasAuxPrice()) { setAuxPrice(other.getAuxPrice()); } if (other.hasTrailType()) { setTrailType(other.getTrailType()); } if (other.hasTrailValue()) { setTrailValue(other.getTrailValue()); } if (other.hasTrailSpread()) { setTrailSpread(other.getTrailSpread()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasPacketID()) { return false; } if (!hasHeader()) { return false; } if (!hasTrdSide()) { return false; } if (!hasOrderType()) { return false; } if (!hasCode()) { return false; } if (!hasQty()) { return false; } if (!getPacketID().isInitialized()) { return false; } if (!getHeader().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.moomoo.openapi.pb.TrdPlaceOrder.C2S parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.TrdPlaceOrder.C2S) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.Common.PacketID packetID_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.Common.PacketID, com.moomoo.openapi.pb.Common.PacketID.Builder, com.moomoo.openapi.pb.Common.PacketIDOrBuilder> packetIDBuilder_; /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public boolean hasPacketID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public com.moomoo.openapi.pb.Common.PacketID getPacketID() { if (packetIDBuilder_ == null) { return packetID_ == null ? com.moomoo.openapi.pb.Common.PacketID.getDefaultInstance() : packetID_; } else { return packetIDBuilder_.getMessage(); } } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public Builder setPacketID(com.moomoo.openapi.pb.Common.PacketID value) { if (packetIDBuilder_ == null) { if (value == null) { throw new NullPointerException(); } packetID_ = value; onChanged(); } else { packetIDBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public Builder setPacketID( com.moomoo.openapi.pb.Common.PacketID.Builder builderForValue) { if (packetIDBuilder_ == null) { packetID_ = builderForValue.build(); onChanged(); } else { packetIDBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public Builder mergePacketID(com.moomoo.openapi.pb.Common.PacketID value) { if (packetIDBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && packetID_ != null && packetID_ != com.moomoo.openapi.pb.Common.PacketID.getDefaultInstance()) { packetID_ = com.moomoo.openapi.pb.Common.PacketID.newBuilder(packetID_).mergeFrom(value).buildPartial(); } else { packetID_ = value; } onChanged(); } else { packetIDBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public Builder clearPacketID() { if (packetIDBuilder_ == null) { packetID_ = null; onChanged(); } else { packetIDBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public com.moomoo.openapi.pb.Common.PacketID.Builder getPacketIDBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPacketIDFieldBuilder().getBuilder(); } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ public com.moomoo.openapi.pb.Common.PacketIDOrBuilder getPacketIDOrBuilder() { if (packetIDBuilder_ != null) { return packetIDBuilder_.getMessageOrBuilder(); } else { return packetID_ == null ? com.moomoo.openapi.pb.Common.PacketID.getDefaultInstance() : packetID_; } } /** *
       *交易写操作防重放攻击
       * 
* * required .Common.PacketID packetID = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.Common.PacketID, com.moomoo.openapi.pb.Common.PacketID.Builder, com.moomoo.openapi.pb.Common.PacketIDOrBuilder> getPacketIDFieldBuilder() { if (packetIDBuilder_ == null) { packetIDBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.Common.PacketID, com.moomoo.openapi.pb.Common.PacketID.Builder, com.moomoo.openapi.pb.Common.PacketIDOrBuilder>( getPacketID(), getParentForChildren(), isClean()); packetID_ = null; } return packetIDBuilder_; } private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> headerBuilder_; /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public boolean hasHeader() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public Builder setHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public Builder setHeader( com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public Builder mergeHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && header_ != null && header_ != com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance()) { header_ = com.moomoo.openapi.pb.TrdCommon.TrdHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder getHeaderBuilder() { bitField0_ |= 0x00000002; onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private int trdSide_ ; /** *
       *交易方向, 参见Trd_Common.TrdSide的枚举定义
       * 
* * required int32 trdSide = 3; */ public boolean hasTrdSide() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *交易方向, 参见Trd_Common.TrdSide的枚举定义
       * 
* * required int32 trdSide = 3; */ public int getTrdSide() { return trdSide_; } /** *
       *交易方向, 参见Trd_Common.TrdSide的枚举定义
       * 
* * required int32 trdSide = 3; */ public Builder setTrdSide(int value) { bitField0_ |= 0x00000004; trdSide_ = value; onChanged(); return this; } /** *
       *交易方向, 参见Trd_Common.TrdSide的枚举定义
       * 
* * required int32 trdSide = 3; */ public Builder clearTrdSide() { bitField0_ = (bitField0_ & ~0x00000004); trdSide_ = 0; onChanged(); return this; } private int orderType_ ; /** *
       *订单类型, 参见Trd_Common.OrderType的枚举定义
       * 
* * required int32 orderType = 4; */ public boolean hasOrderType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       *订单类型, 参见Trd_Common.OrderType的枚举定义
       * 
* * required int32 orderType = 4; */ public int getOrderType() { return orderType_; } /** *
       *订单类型, 参见Trd_Common.OrderType的枚举定义
       * 
* * required int32 orderType = 4; */ public Builder setOrderType(int value) { bitField0_ |= 0x00000008; orderType_ = value; onChanged(); return this; } /** *
       *订单类型, 参见Trd_Common.OrderType的枚举定义
       * 
* * required int32 orderType = 4; */ public Builder clearOrderType() { bitField0_ = (bitField0_ & ~0x00000008); orderType_ = 0; onChanged(); return this; } private java.lang.Object code_ = ""; /** *
       *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
       * 
* * required string code = 5; */ public boolean hasCode() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
       * 
* * required string code = 5; */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { code_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
       * 
* * required string code = 5; */ public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); code_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
       * 
* * required string code = 5; */ public Builder setCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; code_ = value; onChanged(); return this; } /** *
       *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
       * 
* * required string code = 5; */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000010); code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** *
       *代码,港股必须是5位数字,A股必须是6位数字,美股没限制
       * 
* * required string code = 5; */ public Builder setCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; code_ = value; onChanged(); return this; } private double qty_ ; /** *
       *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
       * 
* * required double qty = 6; */ public boolean hasQty() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
       * 
* * required double qty = 6; */ public double getQty() { return qty_; } /** *
       *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
       * 
* * required double qty = 6; */ public Builder setQty(double value) { bitField0_ |= 0x00000020; qty_ = value; onChanged(); return this; } /** *
       *数量,期权单位是"张"(精确到小数点后 0 位,超出部分会被舍弃。期权期货单位是"张")
       * 
* * required double qty = 6; */ public Builder clearQty() { bitField0_ = (bitField0_ & ~0x00000020); qty_ = 0D; onChanged(); return this; } private double price_ ; /** *
       *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
       * 
* * optional double price = 7; */ public boolean hasPrice() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
       * 
* * optional double price = 7; */ public double getPrice() { return price_; } /** *
       *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
       * 
* * optional double price = 7; */ public Builder setPrice(double value) { bitField0_ |= 0x00000040; price_ = value; onChanged(); return this; } /** *
       *价格,(证券账户精确到小数点后 3 位,期货账户精确到小数点后 9 位,超出部分会被舍弃)
       * 
* * optional double price = 7; */ public Builder clearPrice() { bitField0_ = (bitField0_ & ~0x00000040); price_ = 0D; onChanged(); return this; } private boolean adjustPrice_ ; /** *
       *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
       * 
* * optional bool adjustPrice = 8; */ public boolean hasAdjustPrice() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
       * 
* * optional bool adjustPrice = 8; */ public boolean getAdjustPrice() { return adjustPrice_; } /** *
       *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
       * 
* * optional bool adjustPrice = 8; */ public Builder setAdjustPrice(boolean value) { bitField0_ |= 0x00000080; adjustPrice_ = value; onChanged(); return this; } /** *
       *以下2个为调整价格使用,都传才有效,对港、A股有意义,因为港股有价位,A股2位精度,美股可不传
       * 
* * optional bool adjustPrice = 8; */ public Builder clearAdjustPrice() { bitField0_ = (bitField0_ & ~0x00000080); adjustPrice_ = false; onChanged(); return this; } private double adjustSideAndLimit_ ; /** *
       *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
       * 
* * optional double adjustSideAndLimit = 9; */ public boolean hasAdjustSideAndLimit() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
       * 
* * optional double adjustSideAndLimit = 9; */ public double getAdjustSideAndLimit() { return adjustSideAndLimit_; } /** *
       *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
       * 
* * optional double adjustSideAndLimit = 9; */ public Builder setAdjustSideAndLimit(double value) { bitField0_ |= 0x00000100; adjustSideAndLimit_ = value; onChanged(); return this; } /** *
       *调整方向和调整幅度百分比限制,正数代表向上调整,负数代表向下调整,具体值代表调整幅度限制,如:0.015代表向上调整且幅度不超过1.5%;-0.01代表向下调整且幅度不超过1%
       * 
* * optional double adjustSideAndLimit = 9; */ public Builder clearAdjustSideAndLimit() { bitField0_ = (bitField0_ & ~0x00000100); adjustSideAndLimit_ = 0D; onChanged(); return this; } private int secMarket_ ; /** *
       *证券所属市场,参见TrdSecMarket的枚举定义
       * 
* * optional int32 secMarket = 10; */ public boolean hasSecMarket() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       *证券所属市场,参见TrdSecMarket的枚举定义
       * 
* * optional int32 secMarket = 10; */ public int getSecMarket() { return secMarket_; } /** *
       *证券所属市场,参见TrdSecMarket的枚举定义
       * 
* * optional int32 secMarket = 10; */ public Builder setSecMarket(int value) { bitField0_ |= 0x00000200; secMarket_ = value; onChanged(); return this; } /** *
       *证券所属市场,参见TrdSecMarket的枚举定义
       * 
* * optional int32 secMarket = 10; */ public Builder clearSecMarket() { bitField0_ = (bitField0_ & ~0x00000200); secMarket_ = 0; onChanged(); return this; } private java.lang.Object remark_ = ""; /** *
       *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
       * 
* * optional string remark = 11; */ public boolean hasRemark() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
       * 
* * optional string remark = 11; */ public java.lang.String getRemark() { java.lang.Object ref = remark_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { remark_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
       * 
* * optional string remark = 11; */ public com.google.protobuf.ByteString getRemarkBytes() { java.lang.Object ref = remark_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remark_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
       * 
* * optional string remark = 11; */ public Builder setRemark( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; remark_ = value; onChanged(); return this; } /** *
       *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
       * 
* * optional string remark = 11; */ public Builder clearRemark() { bitField0_ = (bitField0_ & ~0x00000400); remark_ = getDefaultInstance().getRemark(); onChanged(); return this; } /** *
       *用户备注字符串,最多只能传64字节。可用于标识订单唯一信息等,下单填上,订单结构就会带上。
       * 
* * optional string remark = 11; */ public Builder setRemarkBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; remark_ = value; onChanged(); return this; } private int timeInForce_ ; /** *
       *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
       * 
* * optional int32 timeInForce = 12; */ public boolean hasTimeInForce() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
       * 
* * optional int32 timeInForce = 12; */ public int getTimeInForce() { return timeInForce_; } /** *
       *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
       * 
* * optional int32 timeInForce = 12; */ public Builder setTimeInForce(int value) { bitField0_ |= 0x00000800; timeInForce_ = value; onChanged(); return this; } /** *
       *订单有效期限,参见TrdCommon_TimeInForce的枚举定义
       * 
* * optional int32 timeInForce = 12; */ public Builder clearTimeInForce() { bitField0_ = (bitField0_ & ~0x00000800); timeInForce_ = 0; onChanged(); return this; } private boolean fillOutsideRTH_ ; /** *
       *是否允许盘前盘后成交。仅适用于美股限价单。默认false
       * 
* * optional bool fillOutsideRTH = 13; */ public boolean hasFillOutsideRTH() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       *是否允许盘前盘后成交。仅适用于美股限价单。默认false
       * 
* * optional bool fillOutsideRTH = 13; */ public boolean getFillOutsideRTH() { return fillOutsideRTH_; } /** *
       *是否允许盘前盘后成交。仅适用于美股限价单。默认false
       * 
* * optional bool fillOutsideRTH = 13; */ public Builder setFillOutsideRTH(boolean value) { bitField0_ |= 0x00001000; fillOutsideRTH_ = value; onChanged(); return this; } /** *
       *是否允许盘前盘后成交。仅适用于美股限价单。默认false
       * 
* * optional bool fillOutsideRTH = 13; */ public Builder clearFillOutsideRTH() { bitField0_ = (bitField0_ & ~0x00001000); fillOutsideRTH_ = false; onChanged(); return this; } private double auxPrice_ ; /** *
       *触发价格
       * 
* * optional double auxPrice = 14; */ public boolean hasAuxPrice() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
       *触发价格
       * 
* * optional double auxPrice = 14; */ public double getAuxPrice() { return auxPrice_; } /** *
       *触发价格
       * 
* * optional double auxPrice = 14; */ public Builder setAuxPrice(double value) { bitField0_ |= 0x00002000; auxPrice_ = value; onChanged(); return this; } /** *
       *触发价格
       * 
* * optional double auxPrice = 14; */ public Builder clearAuxPrice() { bitField0_ = (bitField0_ & ~0x00002000); auxPrice_ = 0D; onChanged(); return this; } private int trailType_ ; /** *
       *跟踪类型, 参见Trd_Common.TrailType的枚举定义
       * 
* * optional int32 trailType = 15; */ public boolean hasTrailType() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
       *跟踪类型, 参见Trd_Common.TrailType的枚举定义
       * 
* * optional int32 trailType = 15; */ public int getTrailType() { return trailType_; } /** *
       *跟踪类型, 参见Trd_Common.TrailType的枚举定义
       * 
* * optional int32 trailType = 15; */ public Builder setTrailType(int value) { bitField0_ |= 0x00004000; trailType_ = value; onChanged(); return this; } /** *
       *跟踪类型, 参见Trd_Common.TrailType的枚举定义
       * 
* * optional int32 trailType = 15; */ public Builder clearTrailType() { bitField0_ = (bitField0_ & ~0x00004000); trailType_ = 0; onChanged(); return this; } private double trailValue_ ; /** *
       *跟踪金额/百分比
       * 
* * optional double trailValue = 16; */ public boolean hasTrailValue() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** *
       *跟踪金额/百分比
       * 
* * optional double trailValue = 16; */ public double getTrailValue() { return trailValue_; } /** *
       *跟踪金额/百分比
       * 
* * optional double trailValue = 16; */ public Builder setTrailValue(double value) { bitField0_ |= 0x00008000; trailValue_ = value; onChanged(); return this; } /** *
       *跟踪金额/百分比
       * 
* * optional double trailValue = 16; */ public Builder clearTrailValue() { bitField0_ = (bitField0_ & ~0x00008000); trailValue_ = 0D; onChanged(); return this; } private double trailSpread_ ; /** *
       *指定价差
       * 
* * optional double trailSpread = 17; */ public boolean hasTrailSpread() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** *
       *指定价差
       * 
* * optional double trailSpread = 17; */ public double getTrailSpread() { return trailSpread_; } /** *
       *指定价差
       * 
* * optional double trailSpread = 17; */ public Builder setTrailSpread(double value) { bitField0_ |= 0x00010000; trailSpread_ = value; onChanged(); return this; } /** *
       *指定价差
       * 
* * optional double trailSpread = 17; */ public Builder clearTrailSpread() { bitField0_ = (bitField0_ & ~0x00010000); trailSpread_ = 0D; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Trd_PlaceOrder.C2S) } // @@protoc_insertion_point(class_scope:Trd_PlaceOrder.C2S) private static final com.moomoo.openapi.pb.TrdPlaceOrder.C2S DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdPlaceOrder.C2S(); } public static com.moomoo.openapi.pb.TrdPlaceOrder.C2S getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public C2S parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new C2S(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.moomoo.openapi.pb.TrdPlaceOrder.C2S getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface S2COrBuilder extends // @@protoc_insertion_point(interface_extends:Trd_PlaceOrder.S2C) com.google.protobuf.MessageOrBuilder { /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ boolean hasHeader(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder(); /** *
     *订单号
     * 
* * optional uint64 orderID = 2; */ boolean hasOrderID(); /** *
     *订单号
     * 
* * optional uint64 orderID = 2; */ long getOrderID(); /** *
     *表示服务器订单id,可以用来代替orderID,和orderID二选一
     * 
* * optional string orderIDEx = 3; */ boolean hasOrderIDEx(); /** *
     *表示服务器订单id,可以用来代替orderID,和orderID二选一
     * 
* * optional string orderIDEx = 3; */ java.lang.String getOrderIDEx(); /** *
     *表示服务器订单id,可以用来代替orderID,和orderID二选一
     * 
* * optional string orderIDEx = 3; */ com.google.protobuf.ByteString getOrderIDExBytes(); } /** * Protobuf type {@code Trd_PlaceOrder.S2C} */ public static final class S2C extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Trd_PlaceOrder.S2C) S2COrBuilder { private static final long serialVersionUID = 0L; // Use S2C.newBuilder() to construct. private S2C(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private S2C() { orderID_ = 0L; orderIDEx_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private S2C( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.moomoo.openapi.pb.TrdCommon.TrdHeader.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; orderID_ = input.readUInt64(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; orderIDEx_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.S2C.class, com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_; /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } public static final int ORDERID_FIELD_NUMBER = 2; private long orderID_; /** *
     *订单号
     * 
* * optional uint64 orderID = 2; */ public boolean hasOrderID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *订单号
     * 
* * optional uint64 orderID = 2; */ public long getOrderID() { return orderID_; } public static final int ORDERIDEX_FIELD_NUMBER = 3; private volatile java.lang.Object orderIDEx_; /** *
     *表示服务器订单id,可以用来代替orderID,和orderID二选一
     * 
* * optional string orderIDEx = 3; */ public boolean hasOrderIDEx() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *表示服务器订单id,可以用来代替orderID,和orderID二选一
     * 
* * optional string orderIDEx = 3; */ public java.lang.String getOrderIDEx() { java.lang.Object ref = orderIDEx_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { orderIDEx_ = s; } return s; } } /** *
     *表示服务器订单id,可以用来代替orderID,和orderID二选一
     * 
* * optional string orderIDEx = 3; */ public com.google.protobuf.ByteString getOrderIDExBytes() { java.lang.Object ref = orderIDEx_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderIDEx_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHeader()) { memoizedIsInitialized = 0; return false; } if (!getHeader().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getHeader()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, orderID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, orderIDEx_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, orderID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderIDEx_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.moomoo.openapi.pb.TrdPlaceOrder.S2C)) { return super.equals(obj); } com.moomoo.openapi.pb.TrdPlaceOrder.S2C other = (com.moomoo.openapi.pb.TrdPlaceOrder.S2C) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasOrderID() == other.hasOrderID()); if (hasOrderID()) { result = result && (getOrderID() == other.getOrderID()); } result = result && (hasOrderIDEx() == other.hasOrderIDEx()); if (hasOrderIDEx()) { result = result && getOrderIDEx() .equals(other.getOrderIDEx()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasOrderID()) { hash = (37 * hash) + ORDERID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOrderID()); } if (hasOrderIDEx()) { hash = (37 * hash) + ORDERIDEX_FIELD_NUMBER; hash = (53 * hash) + getOrderIDEx().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.moomoo.openapi.pb.TrdPlaceOrder.S2C prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Trd_PlaceOrder.S2C} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Trd_PlaceOrder.S2C) com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.S2C.class, com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder.class); } // Construct using com.moomoo.openapi.pb.TrdPlaceOrder.S2C.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHeaderFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); orderID_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); orderIDEx_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_S2C_descriptor; } public com.moomoo.openapi.pb.TrdPlaceOrder.S2C getDefaultInstanceForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance(); } public com.moomoo.openapi.pb.TrdPlaceOrder.S2C build() { com.moomoo.openapi.pb.TrdPlaceOrder.S2C result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.TrdPlaceOrder.S2C buildPartial() { com.moomoo.openapi.pb.TrdPlaceOrder.S2C result = new com.moomoo.openapi.pb.TrdPlaceOrder.S2C(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.orderID_ = orderID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.orderIDEx_ = orderIDEx_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.moomoo.openapi.pb.TrdPlaceOrder.S2C) { return mergeFrom((com.moomoo.openapi.pb.TrdPlaceOrder.S2C)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.TrdPlaceOrder.S2C other) { if (other == com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasOrderID()) { setOrderID(other.getOrderID()); } if (other.hasOrderIDEx()) { bitField0_ |= 0x00000004; orderIDEx_ = other.orderIDEx_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasHeader()) { return false; } if (!getHeader().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.moomoo.openapi.pb.TrdPlaceOrder.S2C parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.TrdPlaceOrder.S2C) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> headerBuilder_; /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder setHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder setHeader( com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder mergeHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && header_ != null && header_ != com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance()) { header_ = com.moomoo.openapi.pb.TrdCommon.TrdHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder getHeaderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private long orderID_ ; /** *
       *订单号
       * 
* * optional uint64 orderID = 2; */ public boolean hasOrderID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *订单号
       * 
* * optional uint64 orderID = 2; */ public long getOrderID() { return orderID_; } /** *
       *订单号
       * 
* * optional uint64 orderID = 2; */ public Builder setOrderID(long value) { bitField0_ |= 0x00000002; orderID_ = value; onChanged(); return this; } /** *
       *订单号
       * 
* * optional uint64 orderID = 2; */ public Builder clearOrderID() { bitField0_ = (bitField0_ & ~0x00000002); orderID_ = 0L; onChanged(); return this; } private java.lang.Object orderIDEx_ = ""; /** *
       *表示服务器订单id,可以用来代替orderID,和orderID二选一
       * 
* * optional string orderIDEx = 3; */ public boolean hasOrderIDEx() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *表示服务器订单id,可以用来代替orderID,和orderID二选一
       * 
* * optional string orderIDEx = 3; */ public java.lang.String getOrderIDEx() { java.lang.Object ref = orderIDEx_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { orderIDEx_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *表示服务器订单id,可以用来代替orderID,和orderID二选一
       * 
* * optional string orderIDEx = 3; */ public com.google.protobuf.ByteString getOrderIDExBytes() { java.lang.Object ref = orderIDEx_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); orderIDEx_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *表示服务器订单id,可以用来代替orderID,和orderID二选一
       * 
* * optional string orderIDEx = 3; */ public Builder setOrderIDEx( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; orderIDEx_ = value; onChanged(); return this; } /** *
       *表示服务器订单id,可以用来代替orderID,和orderID二选一
       * 
* * optional string orderIDEx = 3; */ public Builder clearOrderIDEx() { bitField0_ = (bitField0_ & ~0x00000004); orderIDEx_ = getDefaultInstance().getOrderIDEx(); onChanged(); return this; } /** *
       *表示服务器订单id,可以用来代替orderID,和orderID二选一
       * 
* * optional string orderIDEx = 3; */ public Builder setOrderIDExBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; orderIDEx_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Trd_PlaceOrder.S2C) } // @@protoc_insertion_point(class_scope:Trd_PlaceOrder.S2C) private static final com.moomoo.openapi.pb.TrdPlaceOrder.S2C DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdPlaceOrder.S2C(); } public static com.moomoo.openapi.pb.TrdPlaceOrder.S2C getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public S2C parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new S2C(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.moomoo.openapi.pb.TrdPlaceOrder.S2C getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Trd_PlaceOrder.Request) com.google.protobuf.MessageOrBuilder { /** * required .Trd_PlaceOrder.C2S c2s = 1; */ boolean hasC2S(); /** * required .Trd_PlaceOrder.C2S c2s = 1; */ com.moomoo.openapi.pb.TrdPlaceOrder.C2S getC2S(); /** * required .Trd_PlaceOrder.C2S c2s = 1; */ com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder getC2SOrBuilder(); } /** * Protobuf type {@code Trd_PlaceOrder.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Trd_PlaceOrder.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = c2S_.toBuilder(); } c2S_ = input.readMessage(com.moomoo.openapi.pb.TrdPlaceOrder.C2S.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(c2S_); c2S_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.Request.class, com.moomoo.openapi.pb.TrdPlaceOrder.Request.Builder.class); } private int bitField0_; public static final int C2S_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.TrdPlaceOrder.C2S c2S_; /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public com.moomoo.openapi.pb.TrdPlaceOrder.C2S getC2S() { return c2S_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance() : c2S_; } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder getC2SOrBuilder() { return c2S_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance() : c2S_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasC2S()) { memoizedIsInitialized = 0; return false; } if (!getC2S().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getC2S()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getC2S()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.moomoo.openapi.pb.TrdPlaceOrder.Request)) { return super.equals(obj); } com.moomoo.openapi.pb.TrdPlaceOrder.Request other = (com.moomoo.openapi.pb.TrdPlaceOrder.Request) obj; boolean result = true; result = result && (hasC2S() == other.hasC2S()); if (hasC2S()) { result = result && getC2S() .equals(other.getC2S()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasC2S()) { hash = (37 * hash) + C2S_FIELD_NUMBER; hash = (53 * hash) + getC2S().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.moomoo.openapi.pb.TrdPlaceOrder.Request prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Trd_PlaceOrder.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Trd_PlaceOrder.Request) com.moomoo.openapi.pb.TrdPlaceOrder.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.Request.class, com.moomoo.openapi.pb.TrdPlaceOrder.Request.Builder.class); } // Construct using com.moomoo.openapi.pb.TrdPlaceOrder.Request.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getC2SFieldBuilder(); } } public Builder clear() { super.clear(); if (c2SBuilder_ == null) { c2S_ = null; } else { c2SBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Request_descriptor; } public com.moomoo.openapi.pb.TrdPlaceOrder.Request getDefaultInstanceForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.Request.getDefaultInstance(); } public com.moomoo.openapi.pb.TrdPlaceOrder.Request build() { com.moomoo.openapi.pb.TrdPlaceOrder.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.TrdPlaceOrder.Request buildPartial() { com.moomoo.openapi.pb.TrdPlaceOrder.Request result = new com.moomoo.openapi.pb.TrdPlaceOrder.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (c2SBuilder_ == null) { result.c2S_ = c2S_; } else { result.c2S_ = c2SBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.moomoo.openapi.pb.TrdPlaceOrder.Request) { return mergeFrom((com.moomoo.openapi.pb.TrdPlaceOrder.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.TrdPlaceOrder.Request other) { if (other == com.moomoo.openapi.pb.TrdPlaceOrder.Request.getDefaultInstance()) return this; if (other.hasC2S()) { mergeC2S(other.getC2S()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasC2S()) { return false; } if (!getC2S().isInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.moomoo.openapi.pb.TrdPlaceOrder.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.TrdPlaceOrder.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.TrdPlaceOrder.C2S c2S_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdPlaceOrder.C2S, com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder, com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder> c2SBuilder_; /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public com.moomoo.openapi.pb.TrdPlaceOrder.C2S getC2S() { if (c2SBuilder_ == null) { return c2S_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance() : c2S_; } else { return c2SBuilder_.getMessage(); } } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public Builder setC2S(com.moomoo.openapi.pb.TrdPlaceOrder.C2S value) { if (c2SBuilder_ == null) { if (value == null) { throw new NullPointerException(); } c2S_ = value; onChanged(); } else { c2SBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public Builder setC2S( com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder builderForValue) { if (c2SBuilder_ == null) { c2S_ = builderForValue.build(); onChanged(); } else { c2SBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public Builder mergeC2S(com.moomoo.openapi.pb.TrdPlaceOrder.C2S value) { if (c2SBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && c2S_ != null && c2S_ != com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance()) { c2S_ = com.moomoo.openapi.pb.TrdPlaceOrder.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial(); } else { c2S_ = value; } onChanged(); } else { c2SBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public Builder clearC2S() { if (c2SBuilder_ == null) { c2S_ = null; onChanged(); } else { c2SBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder getC2SBuilder() { bitField0_ |= 0x00000001; onChanged(); return getC2SFieldBuilder().getBuilder(); } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ public com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder getC2SOrBuilder() { if (c2SBuilder_ != null) { return c2SBuilder_.getMessageOrBuilder(); } else { return c2S_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.C2S.getDefaultInstance() : c2S_; } } /** * required .Trd_PlaceOrder.C2S c2s = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdPlaceOrder.C2S, com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder, com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder> getC2SFieldBuilder() { if (c2SBuilder_ == null) { c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdPlaceOrder.C2S, com.moomoo.openapi.pb.TrdPlaceOrder.C2S.Builder, com.moomoo.openapi.pb.TrdPlaceOrder.C2SOrBuilder>( getC2S(), getParentForChildren(), isClean()); c2S_ = null; } return c2SBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Trd_PlaceOrder.Request) } // @@protoc_insertion_point(class_scope:Trd_PlaceOrder.Request) private static final com.moomoo.openapi.pb.TrdPlaceOrder.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdPlaceOrder.Request(); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Request getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.moomoo.openapi.pb.TrdPlaceOrder.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Trd_PlaceOrder.Response) com.google.protobuf.MessageOrBuilder { /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ boolean hasRetType(); /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ int getRetType(); /** * optional string retMsg = 2; */ boolean hasRetMsg(); /** * optional string retMsg = 2; */ java.lang.String getRetMsg(); /** * optional string retMsg = 2; */ com.google.protobuf.ByteString getRetMsgBytes(); /** * optional int32 errCode = 3; */ boolean hasErrCode(); /** * optional int32 errCode = 3; */ int getErrCode(); /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ boolean hasS2C(); /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ com.moomoo.openapi.pb.TrdPlaceOrder.S2C getS2C(); /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder getS2COrBuilder(); } /** * Protobuf type {@code Trd_PlaceOrder.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Trd_PlaceOrder.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { retType_ = -400; retMsg_ = ""; errCode_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Response( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; retType_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; retMsg_ = bs; break; } case 24: { bitField0_ |= 0x00000004; errCode_ = input.readInt32(); break; } case 34: { com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = s2C_.toBuilder(); } s2C_ = input.readMessage(com.moomoo.openapi.pb.TrdPlaceOrder.S2C.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(s2C_); s2C_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.Response.class, com.moomoo.openapi.pb.TrdPlaceOrder.Response.Builder.class); } private int bitField0_; public static final int RETTYPE_FIELD_NUMBER = 1; private int retType_; /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } public static final int RETMSG_FIELD_NUMBER = 2; private volatile java.lang.Object retMsg_; /** * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } } /** * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERRCODE_FIELD_NUMBER = 3; private int errCode_; /** * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } public static final int S2C_FIELD_NUMBER = 4; private com.moomoo.openapi.pb.TrdPlaceOrder.S2C s2C_; /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdPlaceOrder.S2C getS2C() { return s2C_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance() : s2C_; } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder getS2COrBuilder() { return s2C_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance() : s2C_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasRetType()) { memoizedIsInitialized = 0; return false; } if (hasS2C()) { if (!getS2C().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, retType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, retMsg_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, errCode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, getS2C()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, retType_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, retMsg_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, errCode_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getS2C()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.moomoo.openapi.pb.TrdPlaceOrder.Response)) { return super.equals(obj); } com.moomoo.openapi.pb.TrdPlaceOrder.Response other = (com.moomoo.openapi.pb.TrdPlaceOrder.Response) obj; boolean result = true; result = result && (hasRetType() == other.hasRetType()); if (hasRetType()) { result = result && (getRetType() == other.getRetType()); } result = result && (hasRetMsg() == other.hasRetMsg()); if (hasRetMsg()) { result = result && getRetMsg() .equals(other.getRetMsg()); } result = result && (hasErrCode() == other.hasErrCode()); if (hasErrCode()) { result = result && (getErrCode() == other.getErrCode()); } result = result && (hasS2C() == other.hasS2C()); if (hasS2C()) { result = result && getS2C() .equals(other.getS2C()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRetType()) { hash = (37 * hash) + RETTYPE_FIELD_NUMBER; hash = (53 * hash) + getRetType(); } if (hasRetMsg()) { hash = (37 * hash) + RETMSG_FIELD_NUMBER; hash = (53 * hash) + getRetMsg().hashCode(); } if (hasErrCode()) { hash = (37 * hash) + ERRCODE_FIELD_NUMBER; hash = (53 * hash) + getErrCode(); } if (hasS2C()) { hash = (37 * hash) + S2C_FIELD_NUMBER; hash = (53 * hash) + getS2C().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.moomoo.openapi.pb.TrdPlaceOrder.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Trd_PlaceOrder.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Trd_PlaceOrder.Response) com.moomoo.openapi.pb.TrdPlaceOrder.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdPlaceOrder.Response.class, com.moomoo.openapi.pb.TrdPlaceOrder.Response.Builder.class); } // Construct using com.moomoo.openapi.pb.TrdPlaceOrder.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getS2CFieldBuilder(); } } public Builder clear() { super.clear(); retType_ = -400; bitField0_ = (bitField0_ & ~0x00000001); retMsg_ = ""; bitField0_ = (bitField0_ & ~0x00000002); errCode_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (s2CBuilder_ == null) { s2C_ = null; } else { s2CBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.internal_static_Trd_PlaceOrder_Response_descriptor; } public com.moomoo.openapi.pb.TrdPlaceOrder.Response getDefaultInstanceForType() { return com.moomoo.openapi.pb.TrdPlaceOrder.Response.getDefaultInstance(); } public com.moomoo.openapi.pb.TrdPlaceOrder.Response build() { com.moomoo.openapi.pb.TrdPlaceOrder.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.TrdPlaceOrder.Response buildPartial() { com.moomoo.openapi.pb.TrdPlaceOrder.Response result = new com.moomoo.openapi.pb.TrdPlaceOrder.Response(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.retType_ = retType_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.retMsg_ = retMsg_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.errCode_ = errCode_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (s2CBuilder_ == null) { result.s2C_ = s2C_; } else { result.s2C_ = s2CBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.moomoo.openapi.pb.TrdPlaceOrder.Response) { return mergeFrom((com.moomoo.openapi.pb.TrdPlaceOrder.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.TrdPlaceOrder.Response other) { if (other == com.moomoo.openapi.pb.TrdPlaceOrder.Response.getDefaultInstance()) return this; if (other.hasRetType()) { setRetType(other.getRetType()); } if (other.hasRetMsg()) { bitField0_ |= 0x00000002; retMsg_ = other.retMsg_; onChanged(); } if (other.hasErrCode()) { setErrCode(other.getErrCode()); } if (other.hasS2C()) { mergeS2C(other.getS2C()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasRetType()) { return false; } if (hasS2C()) { if (!getS2C().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.moomoo.openapi.pb.TrdPlaceOrder.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.TrdPlaceOrder.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int retType_ = -400; /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder setRetType(int value) { bitField0_ |= 0x00000001; retType_ = value; onChanged(); return this; } /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000001); retType_ = -400; onChanged(); return this; } private java.lang.Object retMsg_ = ""; /** * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string retMsg = 2; */ public Builder setRetMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } /** * optional string retMsg = 2; */ public Builder clearRetMsg() { bitField0_ = (bitField0_ & ~0x00000002); retMsg_ = getDefaultInstance().getRetMsg(); onChanged(); return this; } /** * optional string retMsg = 2; */ public Builder setRetMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } private int errCode_ ; /** * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } /** * optional int32 errCode = 3; */ public Builder setErrCode(int value) { bitField0_ |= 0x00000004; errCode_ = value; onChanged(); return this; } /** * optional int32 errCode = 3; */ public Builder clearErrCode() { bitField0_ = (bitField0_ & ~0x00000004); errCode_ = 0; onChanged(); return this; } private com.moomoo.openapi.pb.TrdPlaceOrder.S2C s2C_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdPlaceOrder.S2C, com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder, com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder> s2CBuilder_; /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdPlaceOrder.S2C getS2C() { if (s2CBuilder_ == null) { return s2C_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance() : s2C_; } else { return s2CBuilder_.getMessage(); } } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public Builder setS2C(com.moomoo.openapi.pb.TrdPlaceOrder.S2C value) { if (s2CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } s2C_ = value; onChanged(); } else { s2CBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public Builder setS2C( com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder builderForValue) { if (s2CBuilder_ == null) { s2C_ = builderForValue.build(); onChanged(); } else { s2CBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public Builder mergeS2C(com.moomoo.openapi.pb.TrdPlaceOrder.S2C value) { if (s2CBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && s2C_ != null && s2C_ != com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance()) { s2C_ = com.moomoo.openapi.pb.TrdPlaceOrder.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial(); } else { s2C_ = value; } onChanged(); } else { s2CBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public Builder clearS2C() { if (s2CBuilder_ == null) { s2C_ = null; onChanged(); } else { s2CBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder getS2CBuilder() { bitField0_ |= 0x00000008; onChanged(); return getS2CFieldBuilder().getBuilder(); } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder getS2COrBuilder() { if (s2CBuilder_ != null) { return s2CBuilder_.getMessageOrBuilder(); } else { return s2C_ == null ? com.moomoo.openapi.pb.TrdPlaceOrder.S2C.getDefaultInstance() : s2C_; } } /** * optional .Trd_PlaceOrder.S2C s2c = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdPlaceOrder.S2C, com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder, com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder> getS2CFieldBuilder() { if (s2CBuilder_ == null) { s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdPlaceOrder.S2C, com.moomoo.openapi.pb.TrdPlaceOrder.S2C.Builder, com.moomoo.openapi.pb.TrdPlaceOrder.S2COrBuilder>( getS2C(), getParentForChildren(), isClean()); s2C_ = null; } return s2CBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Trd_PlaceOrder.Response) } // @@protoc_insertion_point(class_scope:Trd_PlaceOrder.Response) private static final com.moomoo.openapi.pb.TrdPlaceOrder.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdPlaceOrder.Response(); } public static com.moomoo.openapi.pb.TrdPlaceOrder.Response getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.moomoo.openapi.pb.TrdPlaceOrder.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Trd_PlaceOrder_C2S_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Trd_PlaceOrder_C2S_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Trd_PlaceOrder_S2C_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Trd_PlaceOrder_S2C_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Trd_PlaceOrder_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Trd_PlaceOrder_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Trd_PlaceOrder_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Trd_PlaceOrder_Response_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024Trd_PlaceOrder.proto\022\016Trd_PlaceOrder\032\014" + "Common.proto\032\020Trd_Common.proto\"\355\002\n\003C2S\022\"" + "\n\010packetID\030\001 \002(\0132\020.Common.PacketID\022%\n\006he" + "ader\030\002 \002(\0132\025.Trd_Common.TrdHeader\022\017\n\007trd" + "Side\030\003 \002(\005\022\021\n\torderType\030\004 \002(\005\022\014\n\004code\030\005 " + "\002(\t\022\013\n\003qty\030\006 \002(\001\022\r\n\005price\030\007 \001(\001\022\023\n\013adjus" + "tPrice\030\010 \001(\010\022\032\n\022adjustSideAndLimit\030\t \001(\001" + "\022\021\n\tsecMarket\030\n \001(\005\022\016\n\006remark\030\013 \001(\t\022\023\n\013t" + "imeInForce\030\014 \001(\005\022\026\n\016fillOutsideRTH\030\r \001(\010" + "\022\020\n\010auxPrice\030\016 \001(\001\022\021\n\ttrailType\030\017 \001(\005\022\022\n" + "\ntrailValue\030\020 \001(\001\022\023\n\013trailSpread\030\021 \001(\001\"P" + "\n\003S2C\022%\n\006header\030\001 \002(\0132\025.Trd_Common.TrdHe" + "ader\022\017\n\007orderID\030\002 \001(\004\022\021\n\torderIDEx\030\003 \001(\t" + "\"+\n\007Request\022 \n\003c2s\030\001 \002(\0132\023.Trd_PlaceOrde" + "r.C2S\"d\n\010Response\022\025\n\007retType\030\001 \002(\005:\004-400" + "\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022 \n\003s2c" + "\030\004 \001(\0132\023.Trd_PlaceOrder.S2CBF\n\025com.moomo" + "o.openapi.pbZ-github.com/futuopen/ftapi4" + "go/pb/trdplaceorder" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.moomoo.openapi.pb.Common.getDescriptor(), com.moomoo.openapi.pb.TrdCommon.getDescriptor(), }, assigner); internal_static_Trd_PlaceOrder_C2S_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Trd_PlaceOrder_C2S_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Trd_PlaceOrder_C2S_descriptor, new java.lang.String[] { "PacketID", "Header", "TrdSide", "OrderType", "Code", "Qty", "Price", "AdjustPrice", "AdjustSideAndLimit", "SecMarket", "Remark", "TimeInForce", "FillOutsideRTH", "AuxPrice", "TrailType", "TrailValue", "TrailSpread", }); internal_static_Trd_PlaceOrder_S2C_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Trd_PlaceOrder_S2C_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Trd_PlaceOrder_S2C_descriptor, new java.lang.String[] { "Header", "OrderID", "OrderIDEx", }); internal_static_Trd_PlaceOrder_Request_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Trd_PlaceOrder_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Trd_PlaceOrder_Request_descriptor, new java.lang.String[] { "C2S", }); internal_static_Trd_PlaceOrder_Response_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Trd_PlaceOrder_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Trd_PlaceOrder_Response_descriptor, new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", }); com.moomoo.openapi.pb.Common.getDescriptor(); com.moomoo.openapi.pb.TrdCommon.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy