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

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

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

package com.moomoo.openapi.pb;

public final class InitConnect {
  private InitConnect() {}
  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:InitConnect.C2S)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
     * 
* * required int32 clientVer = 1; */ boolean hasClientVer(); /** *
     *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
     * 
* * required int32 clientVer = 1; */ int getClientVer(); /** *
     *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
     * 
* * required string clientID = 2; */ boolean hasClientID(); /** *
     *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
     * 
* * required string clientID = 2; */ java.lang.String getClientID(); /** *
     *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
     * 
* * required string clientID = 2; */ com.google.protobuf.ByteString getClientIDBytes(); /** *
     *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
     * 
* * optional bool recvNotify = 3; */ boolean hasRecvNotify(); /** *
     *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
     * 
* * optional bool recvNotify = 3; */ boolean getRecvNotify(); /** *
     *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
     *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
     * 
* * optional int32 packetEncAlgo = 4; */ boolean hasPacketEncAlgo(); /** *
     *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
     *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
     * 
* * optional int32 packetEncAlgo = 4; */ int getPacketEncAlgo(); /** *
     *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
     * 
* * optional int32 pushProtoFmt = 5; */ boolean hasPushProtoFmt(); /** *
     *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
     * 
* * optional int32 pushProtoFmt = 5; */ int getPushProtoFmt(); /** *
     *接口编程语言,用于统计语言偏好
     * 
* * optional string programmingLanguage = 6; */ boolean hasProgrammingLanguage(); /** *
     *接口编程语言,用于统计语言偏好
     * 
* * optional string programmingLanguage = 6; */ java.lang.String getProgrammingLanguage(); /** *
     *接口编程语言,用于统计语言偏好
     * 
* * optional string programmingLanguage = 6; */ com.google.protobuf.ByteString getProgrammingLanguageBytes(); } /** * Protobuf type {@code InitConnect.C2S} */ public static final class C2S extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:InitConnect.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() { clientVer_ = 0; clientID_ = ""; recvNotify_ = false; packetEncAlgo_ = 0; pushProtoFmt_ = 0; programmingLanguage_ = ""; } @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 8: { bitField0_ |= 0x00000001; clientVer_ = input.readInt32(); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; clientID_ = bs; break; } case 24: { bitField0_ |= 0x00000004; recvNotify_ = input.readBool(); break; } case 32: { bitField0_ |= 0x00000008; packetEncAlgo_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; pushProtoFmt_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; programmingLanguage_ = 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.InitConnect.internal_static_InitConnect_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.C2S.class, com.moomoo.openapi.pb.InitConnect.C2S.Builder.class); } private int bitField0_; public static final int CLIENTVER_FIELD_NUMBER = 1; private int clientVer_; /** *
     *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
     * 
* * required int32 clientVer = 1; */ public boolean hasClientVer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
     * 
* * required int32 clientVer = 1; */ public int getClientVer() { return clientVer_; } public static final int CLIENTID_FIELD_NUMBER = 2; private volatile java.lang.Object clientID_; /** *
     *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
     * 
* * required string clientID = 2; */ public boolean hasClientID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
     * 
* * required string clientID = 2; */ public java.lang.String getClientID() { java.lang.Object ref = clientID_; 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()) { clientID_ = s; } return s; } } /** *
     *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
     * 
* * required string clientID = 2; */ public com.google.protobuf.ByteString getClientIDBytes() { java.lang.Object ref = clientID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RECVNOTIFY_FIELD_NUMBER = 3; private boolean recvNotify_; /** *
     *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
     * 
* * optional bool recvNotify = 3; */ public boolean hasRecvNotify() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
     * 
* * optional bool recvNotify = 3; */ public boolean getRecvNotify() { return recvNotify_; } public static final int PACKETENCALGO_FIELD_NUMBER = 4; private int packetEncAlgo_; /** *
     *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
     *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
     * 
* * optional int32 packetEncAlgo = 4; */ public boolean hasPacketEncAlgo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
     *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
     * 
* * optional int32 packetEncAlgo = 4; */ public int getPacketEncAlgo() { return packetEncAlgo_; } public static final int PUSHPROTOFMT_FIELD_NUMBER = 5; private int pushProtoFmt_; /** *
     *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
     * 
* * optional int32 pushProtoFmt = 5; */ public boolean hasPushProtoFmt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
     * 
* * optional int32 pushProtoFmt = 5; */ public int getPushProtoFmt() { return pushProtoFmt_; } public static final int PROGRAMMINGLANGUAGE_FIELD_NUMBER = 6; private volatile java.lang.Object programmingLanguage_; /** *
     *接口编程语言,用于统计语言偏好
     * 
* * optional string programmingLanguage = 6; */ public boolean hasProgrammingLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     *接口编程语言,用于统计语言偏好
     * 
* * optional string programmingLanguage = 6; */ public java.lang.String getProgrammingLanguage() { java.lang.Object ref = programmingLanguage_; 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()) { programmingLanguage_ = s; } return s; } } /** *
     *接口编程语言,用于统计语言偏好
     * 
* * optional string programmingLanguage = 6; */ public com.google.protobuf.ByteString getProgrammingLanguageBytes() { java.lang.Object ref = programmingLanguage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); programmingLanguage_ = 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 (!hasClientVer()) { memoizedIsInitialized = 0; return false; } if (!hasClientID()) { 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, clientVer_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, recvNotify_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, packetEncAlgo_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, pushProtoFmt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, programmingLanguage_); } 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, clientVer_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, recvNotify_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, packetEncAlgo_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, pushProtoFmt_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, programmingLanguage_); } 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.InitConnect.C2S)) { return super.equals(obj); } com.moomoo.openapi.pb.InitConnect.C2S other = (com.moomoo.openapi.pb.InitConnect.C2S) obj; boolean result = true; result = result && (hasClientVer() == other.hasClientVer()); if (hasClientVer()) { result = result && (getClientVer() == other.getClientVer()); } result = result && (hasClientID() == other.hasClientID()); if (hasClientID()) { result = result && getClientID() .equals(other.getClientID()); } result = result && (hasRecvNotify() == other.hasRecvNotify()); if (hasRecvNotify()) { result = result && (getRecvNotify() == other.getRecvNotify()); } result = result && (hasPacketEncAlgo() == other.hasPacketEncAlgo()); if (hasPacketEncAlgo()) { result = result && (getPacketEncAlgo() == other.getPacketEncAlgo()); } result = result && (hasPushProtoFmt() == other.hasPushProtoFmt()); if (hasPushProtoFmt()) { result = result && (getPushProtoFmt() == other.getPushProtoFmt()); } result = result && (hasProgrammingLanguage() == other.hasProgrammingLanguage()); if (hasProgrammingLanguage()) { result = result && getProgrammingLanguage() .equals(other.getProgrammingLanguage()); } 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 (hasClientVer()) { hash = (37 * hash) + CLIENTVER_FIELD_NUMBER; hash = (53 * hash) + getClientVer(); } if (hasClientID()) { hash = (37 * hash) + CLIENTID_FIELD_NUMBER; hash = (53 * hash) + getClientID().hashCode(); } if (hasRecvNotify()) { hash = (37 * hash) + RECVNOTIFY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRecvNotify()); } if (hasPacketEncAlgo()) { hash = (37 * hash) + PACKETENCALGO_FIELD_NUMBER; hash = (53 * hash) + getPacketEncAlgo(); } if (hasPushProtoFmt()) { hash = (37 * hash) + PUSHPROTOFMT_FIELD_NUMBER; hash = (53 * hash) + getPushProtoFmt(); } if (hasProgrammingLanguage()) { hash = (37 * hash) + PROGRAMMINGLANGUAGE_FIELD_NUMBER; hash = (53 * hash) + getProgrammingLanguage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.InitConnect.C2S parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.C2S parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.C2S parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.C2S parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.C2S parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.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.InitConnect.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.InitConnect.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 InitConnect.C2S} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:InitConnect.C2S) com.moomoo.openapi.pb.InitConnect.C2SOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.C2S.class, com.moomoo.openapi.pb.InitConnect.C2S.Builder.class); } // Construct using com.moomoo.openapi.pb.InitConnect.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) { } } public Builder clear() { super.clear(); clientVer_ = 0; bitField0_ = (bitField0_ & ~0x00000001); clientID_ = ""; bitField0_ = (bitField0_ & ~0x00000002); recvNotify_ = false; bitField0_ = (bitField0_ & ~0x00000004); packetEncAlgo_ = 0; bitField0_ = (bitField0_ & ~0x00000008); pushProtoFmt_ = 0; bitField0_ = (bitField0_ & ~0x00000010); programmingLanguage_ = ""; bitField0_ = (bitField0_ & ~0x00000020); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_C2S_descriptor; } public com.moomoo.openapi.pb.InitConnect.C2S getDefaultInstanceForType() { return com.moomoo.openapi.pb.InitConnect.C2S.getDefaultInstance(); } public com.moomoo.openapi.pb.InitConnect.C2S build() { com.moomoo.openapi.pb.InitConnect.C2S result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.InitConnect.C2S buildPartial() { com.moomoo.openapi.pb.InitConnect.C2S result = new com.moomoo.openapi.pb.InitConnect.C2S(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.clientVer_ = clientVer_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.clientID_ = clientID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.recvNotify_ = recvNotify_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.packetEncAlgo_ = packetEncAlgo_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.pushProtoFmt_ = pushProtoFmt_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.programmingLanguage_ = programmingLanguage_; 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.InitConnect.C2S) { return mergeFrom((com.moomoo.openapi.pb.InitConnect.C2S)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.InitConnect.C2S other) { if (other == com.moomoo.openapi.pb.InitConnect.C2S.getDefaultInstance()) return this; if (other.hasClientVer()) { setClientVer(other.getClientVer()); } if (other.hasClientID()) { bitField0_ |= 0x00000002; clientID_ = other.clientID_; onChanged(); } if (other.hasRecvNotify()) { setRecvNotify(other.getRecvNotify()); } if (other.hasPacketEncAlgo()) { setPacketEncAlgo(other.getPacketEncAlgo()); } if (other.hasPushProtoFmt()) { setPushProtoFmt(other.getPushProtoFmt()); } if (other.hasProgrammingLanguage()) { bitField0_ |= 0x00000020; programmingLanguage_ = other.programmingLanguage_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasClientVer()) { return false; } if (!hasClientID()) { 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.InitConnect.C2S parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.InitConnect.C2S) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int clientVer_ ; /** *
       *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
       * 
* * required int32 clientVer = 1; */ public boolean hasClientVer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
       * 
* * required int32 clientVer = 1; */ public int getClientVer() { return clientVer_; } /** *
       *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
       * 
* * required int32 clientVer = 1; */ public Builder setClientVer(int value) { bitField0_ |= 0x00000001; clientVer_ = value; onChanged(); return this; } /** *
       *客户端版本号,clientVer = "."以前的数 * 100 + "."以后的,举例:1.1版本的clientVer为1 * 100 + 1 = 101,2.21版本为2 * 100 + 21 = 221
       * 
* * required int32 clientVer = 1; */ public Builder clearClientVer() { bitField0_ = (bitField0_ & ~0x00000001); clientVer_ = 0; onChanged(); return this; } private java.lang.Object clientID_ = ""; /** *
       *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
       * 
* * required string clientID = 2; */ public boolean hasClientID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
       * 
* * required string clientID = 2; */ public java.lang.String getClientID() { java.lang.Object ref = clientID_; 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()) { clientID_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
       * 
* * required string clientID = 2; */ public com.google.protobuf.ByteString getClientIDBytes() { java.lang.Object ref = clientID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
       * 
* * required string clientID = 2; */ public Builder setClientID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientID_ = value; onChanged(); return this; } /** *
       *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
       * 
* * required string clientID = 2; */ public Builder clearClientID() { bitField0_ = (bitField0_ & ~0x00000002); clientID_ = getDefaultInstance().getClientID(); onChanged(); return this; } /** *
       *客户端唯一标识,无生具体生成规则,客户端自己保证唯一性即可
       * 
* * required string clientID = 2; */ public Builder setClientIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; clientID_ = value; onChanged(); return this; } private boolean recvNotify_ ; /** *
       *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
       * 
* * optional bool recvNotify = 3; */ public boolean hasRecvNotify() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
       * 
* * optional bool recvNotify = 3; */ public boolean getRecvNotify() { return recvNotify_; } /** *
       *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
       * 
* * optional bool recvNotify = 3; */ public Builder setRecvNotify(boolean value) { bitField0_ |= 0x00000004; recvNotify_ = value; onChanged(); return this; } /** *
       *此连接是否接收市场状态、交易需要重新解锁等等事件通知,true代表接收,FutuOpenD就会向此连接推送这些通知,反之false代表不接收不推送
       * 
* * optional bool recvNotify = 3; */ public Builder clearRecvNotify() { bitField0_ = (bitField0_ & ~0x00000004); recvNotify_ = false; onChanged(); return this; } private int packetEncAlgo_ ; /** *
       *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
       *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
       * 
* * optional int32 packetEncAlgo = 4; */ public boolean hasPacketEncAlgo() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
       *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
       * 
* * optional int32 packetEncAlgo = 4; */ public int getPacketEncAlgo() { return packetEncAlgo_; } /** *
       *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
       *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
       * 
* * optional int32 packetEncAlgo = 4; */ public Builder setPacketEncAlgo(int value) { bitField0_ |= 0x00000008; packetEncAlgo_ = value; onChanged(); return this; } /** *
       *如果通信要加密,首先得在FutuOpenD和客户端都配置RSA密钥,不配置始终不加密
       *如果配置了RSA密钥且指定的加密算法不为PacketEncAlgo_None则加密(即便这里不设置,配置了RSA密钥,也会采用默认加密方式),默认采用FTAES_ECB算法
       * 
* * optional int32 packetEncAlgo = 4; */ public Builder clearPacketEncAlgo() { bitField0_ = (bitField0_ & ~0x00000008); packetEncAlgo_ = 0; onChanged(); return this; } private int pushProtoFmt_ ; /** *
       *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
       * 
* * optional int32 pushProtoFmt = 5; */ public boolean hasPushProtoFmt() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
       * 
* * optional int32 pushProtoFmt = 5; */ public int getPushProtoFmt() { return pushProtoFmt_; } /** *
       *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
       * 
* * optional int32 pushProtoFmt = 5; */ public Builder setPushProtoFmt(int value) { bitField0_ |= 0x00000010; pushProtoFmt_ = value; onChanged(); return this; } /** *
       *指定这条连接上的推送协议格式,若不指定则使用push_proto_type配置项
       * 
* * optional int32 pushProtoFmt = 5; */ public Builder clearPushProtoFmt() { bitField0_ = (bitField0_ & ~0x00000010); pushProtoFmt_ = 0; onChanged(); return this; } private java.lang.Object programmingLanguage_ = ""; /** *
       *接口编程语言,用于统计语言偏好
       * 
* * optional string programmingLanguage = 6; */ public boolean hasProgrammingLanguage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       *接口编程语言,用于统计语言偏好
       * 
* * optional string programmingLanguage = 6; */ public java.lang.String getProgrammingLanguage() { java.lang.Object ref = programmingLanguage_; 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()) { programmingLanguage_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *接口编程语言,用于统计语言偏好
       * 
* * optional string programmingLanguage = 6; */ public com.google.protobuf.ByteString getProgrammingLanguageBytes() { java.lang.Object ref = programmingLanguage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); programmingLanguage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *接口编程语言,用于统计语言偏好
       * 
* * optional string programmingLanguage = 6; */ public Builder setProgrammingLanguage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; programmingLanguage_ = value; onChanged(); return this; } /** *
       *接口编程语言,用于统计语言偏好
       * 
* * optional string programmingLanguage = 6; */ public Builder clearProgrammingLanguage() { bitField0_ = (bitField0_ & ~0x00000020); programmingLanguage_ = getDefaultInstance().getProgrammingLanguage(); onChanged(); return this; } /** *
       *接口编程语言,用于统计语言偏好
       * 
* * optional string programmingLanguage = 6; */ public Builder setProgrammingLanguageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; programmingLanguage_ = 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:InitConnect.C2S) } // @@protoc_insertion_point(class_scope:InitConnect.C2S) private static final com.moomoo.openapi.pb.InitConnect.C2S DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.InitConnect.C2S(); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.C2S getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface S2COrBuilder extends // @@protoc_insertion_point(interface_extends:InitConnect.S2C) com.google.protobuf.MessageOrBuilder { /** *
     *FutuOpenD的版本号
     * 
* * required int32 serverVer = 1; */ boolean hasServerVer(); /** *
     *FutuOpenD的版本号
     * 
* * required int32 serverVer = 1; */ int getServerVer(); /** *
     *FutuOpenD登陆的牛牛用户ID
     * 
* * required uint64 loginUserID = 2; */ boolean hasLoginUserID(); /** *
     *FutuOpenD登陆的牛牛用户ID
     * 
* * required uint64 loginUserID = 2; */ long getLoginUserID(); /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * required uint64 connID = 3; */ boolean hasConnID(); /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * required uint64 connID = 3; */ long getConnID(); /** *
     *此连接后续AES加密通信的Key,固定为16字节长字符串
     * 
* * required string connAESKey = 4; */ boolean hasConnAESKey(); /** *
     *此连接后续AES加密通信的Key,固定为16字节长字符串
     * 
* * required string connAESKey = 4; */ java.lang.String getConnAESKey(); /** *
     *此连接后续AES加密通信的Key,固定为16字节长字符串
     * 
* * required string connAESKey = 4; */ com.google.protobuf.ByteString getConnAESKeyBytes(); /** *
     *心跳保活间隔
     * 
* * required int32 keepAliveInterval = 5; */ boolean hasKeepAliveInterval(); /** *
     *心跳保活间隔
     * 
* * required int32 keepAliveInterval = 5; */ int getKeepAliveInterval(); /** *
     *AES加密通信CBC加密模式的iv,固定为16字节长字符串
     * 
* * optional string aesCBCiv = 6; */ boolean hasAesCBCiv(); /** *
     *AES加密通信CBC加密模式的iv,固定为16字节长字符串
     * 
* * optional string aesCBCiv = 6; */ java.lang.String getAesCBCiv(); /** *
     *AES加密通信CBC加密模式的iv,固定为16字节长字符串
     * 
* * optional string aesCBCiv = 6; */ com.google.protobuf.ByteString getAesCBCivBytes(); /** *
     *用户类型,牛牛用户或MooMoo用户
     * 
* * optional int32 userAttribution = 7; */ boolean hasUserAttribution(); /** *
     *用户类型,牛牛用户或MooMoo用户
     * 
* * optional int32 userAttribution = 7; */ int getUserAttribution(); } /** * Protobuf type {@code InitConnect.S2C} */ public static final class S2C extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:InitConnect.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() { serverVer_ = 0; loginUserID_ = 0L; connID_ = 0L; connAESKey_ = ""; keepAliveInterval_ = 0; aesCBCiv_ = ""; userAttribution_ = 0; } @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 8: { bitField0_ |= 0x00000001; serverVer_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; loginUserID_ = input.readUInt64(); break; } case 24: { bitField0_ |= 0x00000004; connID_ = input.readUInt64(); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; connAESKey_ = bs; break; } case 40: { bitField0_ |= 0x00000010; keepAliveInterval_ = input.readInt32(); break; } case 50: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; aesCBCiv_ = bs; break; } case 56: { bitField0_ |= 0x00000040; userAttribution_ = input.readInt32(); 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.InitConnect.internal_static_InitConnect_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.S2C.class, com.moomoo.openapi.pb.InitConnect.S2C.Builder.class); } private int bitField0_; public static final int SERVERVER_FIELD_NUMBER = 1; private int serverVer_; /** *
     *FutuOpenD的版本号
     * 
* * required int32 serverVer = 1; */ public boolean hasServerVer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *FutuOpenD的版本号
     * 
* * required int32 serverVer = 1; */ public int getServerVer() { return serverVer_; } public static final int LOGINUSERID_FIELD_NUMBER = 2; private long loginUserID_; /** *
     *FutuOpenD登陆的牛牛用户ID
     * 
* * required uint64 loginUserID = 2; */ public boolean hasLoginUserID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *FutuOpenD登陆的牛牛用户ID
     * 
* * required uint64 loginUserID = 2; */ public long getLoginUserID() { return loginUserID_; } public static final int CONNID_FIELD_NUMBER = 3; private long connID_; /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * required uint64 connID = 3; */ public boolean hasConnID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * required uint64 connID = 3; */ public long getConnID() { return connID_; } public static final int CONNAESKEY_FIELD_NUMBER = 4; private volatile java.lang.Object connAESKey_; /** *
     *此连接后续AES加密通信的Key,固定为16字节长字符串
     * 
* * required string connAESKey = 4; */ public boolean hasConnAESKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     *此连接后续AES加密通信的Key,固定为16字节长字符串
     * 
* * required string connAESKey = 4; */ public java.lang.String getConnAESKey() { java.lang.Object ref = connAESKey_; 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()) { connAESKey_ = s; } return s; } } /** *
     *此连接后续AES加密通信的Key,固定为16字节长字符串
     * 
* * required string connAESKey = 4; */ public com.google.protobuf.ByteString getConnAESKeyBytes() { java.lang.Object ref = connAESKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connAESKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEEPALIVEINTERVAL_FIELD_NUMBER = 5; private int keepAliveInterval_; /** *
     *心跳保活间隔
     * 
* * required int32 keepAliveInterval = 5; */ public boolean hasKeepAliveInterval() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     *心跳保活间隔
     * 
* * required int32 keepAliveInterval = 5; */ public int getKeepAliveInterval() { return keepAliveInterval_; } public static final int AESCBCIV_FIELD_NUMBER = 6; private volatile java.lang.Object aesCBCiv_; /** *
     *AES加密通信CBC加密模式的iv,固定为16字节长字符串
     * 
* * optional string aesCBCiv = 6; */ public boolean hasAesCBCiv() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     *AES加密通信CBC加密模式的iv,固定为16字节长字符串
     * 
* * optional string aesCBCiv = 6; */ public java.lang.String getAesCBCiv() { java.lang.Object ref = aesCBCiv_; 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()) { aesCBCiv_ = s; } return s; } } /** *
     *AES加密通信CBC加密模式的iv,固定为16字节长字符串
     * 
* * optional string aesCBCiv = 6; */ public com.google.protobuf.ByteString getAesCBCivBytes() { java.lang.Object ref = aesCBCiv_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aesCBCiv_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USERATTRIBUTION_FIELD_NUMBER = 7; private int userAttribution_; /** *
     *用户类型,牛牛用户或MooMoo用户
     * 
* * optional int32 userAttribution = 7; */ public boolean hasUserAttribution() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     *用户类型,牛牛用户或MooMoo用户
     * 
* * optional int32 userAttribution = 7; */ public int getUserAttribution() { return userAttribution_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasServerVer()) { memoizedIsInitialized = 0; return false; } if (!hasLoginUserID()) { memoizedIsInitialized = 0; return false; } if (!hasConnID()) { memoizedIsInitialized = 0; return false; } if (!hasConnAESKey()) { memoizedIsInitialized = 0; return false; } if (!hasKeepAliveInterval()) { 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, serverVer_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(2, loginUserID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt64(3, connID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, connAESKey_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, keepAliveInterval_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, aesCBCiv_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(7, userAttribution_); } 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, serverVer_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, loginUserID_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, connID_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, connAESKey_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, keepAliveInterval_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, aesCBCiv_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, userAttribution_); } 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.InitConnect.S2C)) { return super.equals(obj); } com.moomoo.openapi.pb.InitConnect.S2C other = (com.moomoo.openapi.pb.InitConnect.S2C) obj; boolean result = true; result = result && (hasServerVer() == other.hasServerVer()); if (hasServerVer()) { result = result && (getServerVer() == other.getServerVer()); } result = result && (hasLoginUserID() == other.hasLoginUserID()); if (hasLoginUserID()) { result = result && (getLoginUserID() == other.getLoginUserID()); } result = result && (hasConnID() == other.hasConnID()); if (hasConnID()) { result = result && (getConnID() == other.getConnID()); } result = result && (hasConnAESKey() == other.hasConnAESKey()); if (hasConnAESKey()) { result = result && getConnAESKey() .equals(other.getConnAESKey()); } result = result && (hasKeepAliveInterval() == other.hasKeepAliveInterval()); if (hasKeepAliveInterval()) { result = result && (getKeepAliveInterval() == other.getKeepAliveInterval()); } result = result && (hasAesCBCiv() == other.hasAesCBCiv()); if (hasAesCBCiv()) { result = result && getAesCBCiv() .equals(other.getAesCBCiv()); } result = result && (hasUserAttribution() == other.hasUserAttribution()); if (hasUserAttribution()) { result = result && (getUserAttribution() == other.getUserAttribution()); } 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 (hasServerVer()) { hash = (37 * hash) + SERVERVER_FIELD_NUMBER; hash = (53 * hash) + getServerVer(); } if (hasLoginUserID()) { hash = (37 * hash) + LOGINUSERID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLoginUserID()); } if (hasConnID()) { hash = (37 * hash) + CONNID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConnID()); } if (hasConnAESKey()) { hash = (37 * hash) + CONNAESKEY_FIELD_NUMBER; hash = (53 * hash) + getConnAESKey().hashCode(); } if (hasKeepAliveInterval()) { hash = (37 * hash) + KEEPALIVEINTERVAL_FIELD_NUMBER; hash = (53 * hash) + getKeepAliveInterval(); } if (hasAesCBCiv()) { hash = (37 * hash) + AESCBCIV_FIELD_NUMBER; hash = (53 * hash) + getAesCBCiv().hashCode(); } if (hasUserAttribution()) { hash = (37 * hash) + USERATTRIBUTION_FIELD_NUMBER; hash = (53 * hash) + getUserAttribution(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.InitConnect.S2C parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.S2C parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.S2C parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.S2C parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.S2C parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.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.InitConnect.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.InitConnect.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 InitConnect.S2C} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:InitConnect.S2C) com.moomoo.openapi.pb.InitConnect.S2COrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.S2C.class, com.moomoo.openapi.pb.InitConnect.S2C.Builder.class); } // Construct using com.moomoo.openapi.pb.InitConnect.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) { } } public Builder clear() { super.clear(); serverVer_ = 0; bitField0_ = (bitField0_ & ~0x00000001); loginUserID_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); connID_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); connAESKey_ = ""; bitField0_ = (bitField0_ & ~0x00000008); keepAliveInterval_ = 0; bitField0_ = (bitField0_ & ~0x00000010); aesCBCiv_ = ""; bitField0_ = (bitField0_ & ~0x00000020); userAttribution_ = 0; bitField0_ = (bitField0_ & ~0x00000040); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_S2C_descriptor; } public com.moomoo.openapi.pb.InitConnect.S2C getDefaultInstanceForType() { return com.moomoo.openapi.pb.InitConnect.S2C.getDefaultInstance(); } public com.moomoo.openapi.pb.InitConnect.S2C build() { com.moomoo.openapi.pb.InitConnect.S2C result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.InitConnect.S2C buildPartial() { com.moomoo.openapi.pb.InitConnect.S2C result = new com.moomoo.openapi.pb.InitConnect.S2C(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.serverVer_ = serverVer_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.loginUserID_ = loginUserID_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.connID_ = connID_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.connAESKey_ = connAESKey_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.keepAliveInterval_ = keepAliveInterval_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.aesCBCiv_ = aesCBCiv_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.userAttribution_ = userAttribution_; 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.InitConnect.S2C) { return mergeFrom((com.moomoo.openapi.pb.InitConnect.S2C)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.InitConnect.S2C other) { if (other == com.moomoo.openapi.pb.InitConnect.S2C.getDefaultInstance()) return this; if (other.hasServerVer()) { setServerVer(other.getServerVer()); } if (other.hasLoginUserID()) { setLoginUserID(other.getLoginUserID()); } if (other.hasConnID()) { setConnID(other.getConnID()); } if (other.hasConnAESKey()) { bitField0_ |= 0x00000008; connAESKey_ = other.connAESKey_; onChanged(); } if (other.hasKeepAliveInterval()) { setKeepAliveInterval(other.getKeepAliveInterval()); } if (other.hasAesCBCiv()) { bitField0_ |= 0x00000020; aesCBCiv_ = other.aesCBCiv_; onChanged(); } if (other.hasUserAttribution()) { setUserAttribution(other.getUserAttribution()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasServerVer()) { return false; } if (!hasLoginUserID()) { return false; } if (!hasConnID()) { return false; } if (!hasConnAESKey()) { return false; } if (!hasKeepAliveInterval()) { 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.InitConnect.S2C parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.InitConnect.S2C) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int serverVer_ ; /** *
       *FutuOpenD的版本号
       * 
* * required int32 serverVer = 1; */ public boolean hasServerVer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *FutuOpenD的版本号
       * 
* * required int32 serverVer = 1; */ public int getServerVer() { return serverVer_; } /** *
       *FutuOpenD的版本号
       * 
* * required int32 serverVer = 1; */ public Builder setServerVer(int value) { bitField0_ |= 0x00000001; serverVer_ = value; onChanged(); return this; } /** *
       *FutuOpenD的版本号
       * 
* * required int32 serverVer = 1; */ public Builder clearServerVer() { bitField0_ = (bitField0_ & ~0x00000001); serverVer_ = 0; onChanged(); return this; } private long loginUserID_ ; /** *
       *FutuOpenD登陆的牛牛用户ID
       * 
* * required uint64 loginUserID = 2; */ public boolean hasLoginUserID() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *FutuOpenD登陆的牛牛用户ID
       * 
* * required uint64 loginUserID = 2; */ public long getLoginUserID() { return loginUserID_; } /** *
       *FutuOpenD登陆的牛牛用户ID
       * 
* * required uint64 loginUserID = 2; */ public Builder setLoginUserID(long value) { bitField0_ |= 0x00000002; loginUserID_ = value; onChanged(); return this; } /** *
       *FutuOpenD登陆的牛牛用户ID
       * 
* * required uint64 loginUserID = 2; */ public Builder clearLoginUserID() { bitField0_ = (bitField0_ & ~0x00000002); loginUserID_ = 0L; onChanged(); return this; } private long connID_ ; /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * required uint64 connID = 3; */ public boolean hasConnID() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * required uint64 connID = 3; */ public long getConnID() { return connID_; } /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * required uint64 connID = 3; */ public Builder setConnID(long value) { bitField0_ |= 0x00000004; connID_ = value; onChanged(); return this; } /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * required uint64 connID = 3; */ public Builder clearConnID() { bitField0_ = (bitField0_ & ~0x00000004); connID_ = 0L; onChanged(); return this; } private java.lang.Object connAESKey_ = ""; /** *
       *此连接后续AES加密通信的Key,固定为16字节长字符串
       * 
* * required string connAESKey = 4; */ public boolean hasConnAESKey() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       *此连接后续AES加密通信的Key,固定为16字节长字符串
       * 
* * required string connAESKey = 4; */ public java.lang.String getConnAESKey() { java.lang.Object ref = connAESKey_; 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()) { connAESKey_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *此连接后续AES加密通信的Key,固定为16字节长字符串
       * 
* * required string connAESKey = 4; */ public com.google.protobuf.ByteString getConnAESKeyBytes() { java.lang.Object ref = connAESKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connAESKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *此连接后续AES加密通信的Key,固定为16字节长字符串
       * 
* * required string connAESKey = 4; */ public Builder setConnAESKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; connAESKey_ = value; onChanged(); return this; } /** *
       *此连接后续AES加密通信的Key,固定为16字节长字符串
       * 
* * required string connAESKey = 4; */ public Builder clearConnAESKey() { bitField0_ = (bitField0_ & ~0x00000008); connAESKey_ = getDefaultInstance().getConnAESKey(); onChanged(); return this; } /** *
       *此连接后续AES加密通信的Key,固定为16字节长字符串
       * 
* * required string connAESKey = 4; */ public Builder setConnAESKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; connAESKey_ = value; onChanged(); return this; } private int keepAliveInterval_ ; /** *
       *心跳保活间隔
       * 
* * required int32 keepAliveInterval = 5; */ public boolean hasKeepAliveInterval() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       *心跳保活间隔
       * 
* * required int32 keepAliveInterval = 5; */ public int getKeepAliveInterval() { return keepAliveInterval_; } /** *
       *心跳保活间隔
       * 
* * required int32 keepAliveInterval = 5; */ public Builder setKeepAliveInterval(int value) { bitField0_ |= 0x00000010; keepAliveInterval_ = value; onChanged(); return this; } /** *
       *心跳保活间隔
       * 
* * required int32 keepAliveInterval = 5; */ public Builder clearKeepAliveInterval() { bitField0_ = (bitField0_ & ~0x00000010); keepAliveInterval_ = 0; onChanged(); return this; } private java.lang.Object aesCBCiv_ = ""; /** *
       *AES加密通信CBC加密模式的iv,固定为16字节长字符串
       * 
* * optional string aesCBCiv = 6; */ public boolean hasAesCBCiv() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       *AES加密通信CBC加密模式的iv,固定为16字节长字符串
       * 
* * optional string aesCBCiv = 6; */ public java.lang.String getAesCBCiv() { java.lang.Object ref = aesCBCiv_; 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()) { aesCBCiv_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *AES加密通信CBC加密模式的iv,固定为16字节长字符串
       * 
* * optional string aesCBCiv = 6; */ public com.google.protobuf.ByteString getAesCBCivBytes() { java.lang.Object ref = aesCBCiv_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aesCBCiv_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *AES加密通信CBC加密模式的iv,固定为16字节长字符串
       * 
* * optional string aesCBCiv = 6; */ public Builder setAesCBCiv( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; aesCBCiv_ = value; onChanged(); return this; } /** *
       *AES加密通信CBC加密模式的iv,固定为16字节长字符串
       * 
* * optional string aesCBCiv = 6; */ public Builder clearAesCBCiv() { bitField0_ = (bitField0_ & ~0x00000020); aesCBCiv_ = getDefaultInstance().getAesCBCiv(); onChanged(); return this; } /** *
       *AES加密通信CBC加密模式的iv,固定为16字节长字符串
       * 
* * optional string aesCBCiv = 6; */ public Builder setAesCBCivBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; aesCBCiv_ = value; onChanged(); return this; } private int userAttribution_ ; /** *
       *用户类型,牛牛用户或MooMoo用户
       * 
* * optional int32 userAttribution = 7; */ public boolean hasUserAttribution() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       *用户类型,牛牛用户或MooMoo用户
       * 
* * optional int32 userAttribution = 7; */ public int getUserAttribution() { return userAttribution_; } /** *
       *用户类型,牛牛用户或MooMoo用户
       * 
* * optional int32 userAttribution = 7; */ public Builder setUserAttribution(int value) { bitField0_ |= 0x00000040; userAttribution_ = value; onChanged(); return this; } /** *
       *用户类型,牛牛用户或MooMoo用户
       * 
* * optional int32 userAttribution = 7; */ public Builder clearUserAttribution() { bitField0_ = (bitField0_ & ~0x00000040); userAttribution_ = 0; 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:InitConnect.S2C) } // @@protoc_insertion_point(class_scope:InitConnect.S2C) private static final com.moomoo.openapi.pb.InitConnect.S2C DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.InitConnect.S2C(); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.S2C getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:InitConnect.Request) com.google.protobuf.MessageOrBuilder { /** * required .InitConnect.C2S c2s = 1; */ boolean hasC2S(); /** * required .InitConnect.C2S c2s = 1; */ com.moomoo.openapi.pb.InitConnect.C2S getC2S(); /** * required .InitConnect.C2S c2s = 1; */ com.moomoo.openapi.pb.InitConnect.C2SOrBuilder getC2SOrBuilder(); } /** * Protobuf type {@code InitConnect.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:InitConnect.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.InitConnect.C2S.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = c2S_.toBuilder(); } c2S_ = input.readMessage(com.moomoo.openapi.pb.InitConnect.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.InitConnect.internal_static_InitConnect_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.Request.class, com.moomoo.openapi.pb.InitConnect.Request.Builder.class); } private int bitField0_; public static final int C2S_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.InitConnect.C2S c2S_; /** * required .InitConnect.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .InitConnect.C2S c2s = 1; */ public com.moomoo.openapi.pb.InitConnect.C2S getC2S() { return c2S_ == null ? com.moomoo.openapi.pb.InitConnect.C2S.getDefaultInstance() : c2S_; } /** * required .InitConnect.C2S c2s = 1; */ public com.moomoo.openapi.pb.InitConnect.C2SOrBuilder getC2SOrBuilder() { return c2S_ == null ? com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request)) { return super.equals(obj); } com.moomoo.openapi.pb.InitConnect.Request other = (com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.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.InitConnect.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.InitConnect.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 InitConnect.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:InitConnect.Request) com.moomoo.openapi.pb.InitConnect.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.Request.class, com.moomoo.openapi.pb.InitConnect.Request.Builder.class); } // Construct using com.moomoo.openapi.pb.InitConnect.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.InitConnect.internal_static_InitConnect_Request_descriptor; } public com.moomoo.openapi.pb.InitConnect.Request getDefaultInstanceForType() { return com.moomoo.openapi.pb.InitConnect.Request.getDefaultInstance(); } public com.moomoo.openapi.pb.InitConnect.Request build() { com.moomoo.openapi.pb.InitConnect.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.InitConnect.Request buildPartial() { com.moomoo.openapi.pb.InitConnect.Request result = new com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request) { return mergeFrom((com.moomoo.openapi.pb.InitConnect.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.InitConnect.Request other) { if (other == com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.InitConnect.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.InitConnect.C2S c2S_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.InitConnect.C2S, com.moomoo.openapi.pb.InitConnect.C2S.Builder, com.moomoo.openapi.pb.InitConnect.C2SOrBuilder> c2SBuilder_; /** * required .InitConnect.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .InitConnect.C2S c2s = 1; */ public com.moomoo.openapi.pb.InitConnect.C2S getC2S() { if (c2SBuilder_ == null) { return c2S_ == null ? com.moomoo.openapi.pb.InitConnect.C2S.getDefaultInstance() : c2S_; } else { return c2SBuilder_.getMessage(); } } /** * required .InitConnect.C2S c2s = 1; */ public Builder setC2S(com.moomoo.openapi.pb.InitConnect.C2S value) { if (c2SBuilder_ == null) { if (value == null) { throw new NullPointerException(); } c2S_ = value; onChanged(); } else { c2SBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .InitConnect.C2S c2s = 1; */ public Builder setC2S( com.moomoo.openapi.pb.InitConnect.C2S.Builder builderForValue) { if (c2SBuilder_ == null) { c2S_ = builderForValue.build(); onChanged(); } else { c2SBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .InitConnect.C2S c2s = 1; */ public Builder mergeC2S(com.moomoo.openapi.pb.InitConnect.C2S value) { if (c2SBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && c2S_ != null && c2S_ != com.moomoo.openapi.pb.InitConnect.C2S.getDefaultInstance()) { c2S_ = com.moomoo.openapi.pb.InitConnect.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial(); } else { c2S_ = value; } onChanged(); } else { c2SBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .InitConnect.C2S c2s = 1; */ public Builder clearC2S() { if (c2SBuilder_ == null) { c2S_ = null; onChanged(); } else { c2SBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .InitConnect.C2S c2s = 1; */ public com.moomoo.openapi.pb.InitConnect.C2S.Builder getC2SBuilder() { bitField0_ |= 0x00000001; onChanged(); return getC2SFieldBuilder().getBuilder(); } /** * required .InitConnect.C2S c2s = 1; */ public com.moomoo.openapi.pb.InitConnect.C2SOrBuilder getC2SOrBuilder() { if (c2SBuilder_ != null) { return c2SBuilder_.getMessageOrBuilder(); } else { return c2S_ == null ? com.moomoo.openapi.pb.InitConnect.C2S.getDefaultInstance() : c2S_; } } /** * required .InitConnect.C2S c2s = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.InitConnect.C2S, com.moomoo.openapi.pb.InitConnect.C2S.Builder, com.moomoo.openapi.pb.InitConnect.C2SOrBuilder> getC2SFieldBuilder() { if (c2SBuilder_ == null) { c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.InitConnect.C2S, com.moomoo.openapi.pb.InitConnect.C2S.Builder, com.moomoo.openapi.pb.InitConnect.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:InitConnect.Request) } // @@protoc_insertion_point(class_scope:InitConnect.Request) private static final com.moomoo.openapi.pb.InitConnect.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.InitConnect.Request(); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:InitConnect.Response) com.google.protobuf.MessageOrBuilder { /** *
     *返回结果,参见Common.RetType的枚举定义
     * 
* * required int32 retType = 1 [default = -400]; */ boolean hasRetType(); /** *
     *返回结果,参见Common.RetType的枚举定义
     * 
* * required int32 retType = 1 [default = -400]; */ int getRetType(); /** *
     *返回结果描述
     * 
* * optional string retMsg = 2; */ boolean hasRetMsg(); /** *
     *返回结果描述
     * 
* * optional string retMsg = 2; */ java.lang.String getRetMsg(); /** *
     *返回结果描述
     * 
* * optional string retMsg = 2; */ com.google.protobuf.ByteString getRetMsgBytes(); /** *
     *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
     * 
* * optional int32 errCode = 3; */ boolean hasErrCode(); /** *
     *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
     * 
* * optional int32 errCode = 3; */ int getErrCode(); /** * optional .InitConnect.S2C s2c = 4; */ boolean hasS2C(); /** * optional .InitConnect.S2C s2c = 4; */ com.moomoo.openapi.pb.InitConnect.S2C getS2C(); /** * optional .InitConnect.S2C s2c = 4; */ com.moomoo.openapi.pb.InitConnect.S2COrBuilder getS2COrBuilder(); } /** * Protobuf type {@code InitConnect.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:InitConnect.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.InitConnect.S2C.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = s2C_.toBuilder(); } s2C_ = input.readMessage(com.moomoo.openapi.pb.InitConnect.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.InitConnect.internal_static_InitConnect_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.Response.class, com.moomoo.openapi.pb.InitConnect.Response.Builder.class); } private int bitField0_; public static final int RETTYPE_FIELD_NUMBER = 1; private int retType_; /** *
     *返回结果,参见Common.RetType的枚举定义
     * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *返回结果,参见Common.RetType的枚举定义
     * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } public static final int RETMSG_FIELD_NUMBER = 2; private volatile java.lang.Object retMsg_; /** *
     *返回结果描述
     * 
* * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *返回结果描述
     * 
* * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } } /** *
     *返回结果描述
     * 
* * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERRCODE_FIELD_NUMBER = 3; private int errCode_; /** *
     *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
     * 
* * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
     * 
* * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } public static final int S2C_FIELD_NUMBER = 4; private com.moomoo.openapi.pb.InitConnect.S2C s2C_; /** * optional .InitConnect.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .InitConnect.S2C s2c = 4; */ public com.moomoo.openapi.pb.InitConnect.S2C getS2C() { return s2C_ == null ? com.moomoo.openapi.pb.InitConnect.S2C.getDefaultInstance() : s2C_; } /** * optional .InitConnect.S2C s2c = 4; */ public com.moomoo.openapi.pb.InitConnect.S2COrBuilder getS2COrBuilder() { return s2C_ == null ? com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response)) { return super.equals(obj); } com.moomoo.openapi.pb.InitConnect.Response other = (com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.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.InitConnect.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.InitConnect.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 InitConnect.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:InitConnect.Response) com.moomoo.openapi.pb.InitConnect.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.InitConnect.internal_static_InitConnect_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.InitConnect.Response.class, com.moomoo.openapi.pb.InitConnect.Response.Builder.class); } // Construct using com.moomoo.openapi.pb.InitConnect.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.InitConnect.internal_static_InitConnect_Response_descriptor; } public com.moomoo.openapi.pb.InitConnect.Response getDefaultInstanceForType() { return com.moomoo.openapi.pb.InitConnect.Response.getDefaultInstance(); } public com.moomoo.openapi.pb.InitConnect.Response build() { com.moomoo.openapi.pb.InitConnect.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.InitConnect.Response buildPartial() { com.moomoo.openapi.pb.InitConnect.Response result = new com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response) { return mergeFrom((com.moomoo.openapi.pb.InitConnect.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.InitConnect.Response other) { if (other == com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.InitConnect.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int retType_ = -400; /** *
       *返回结果,参见Common.RetType的枚举定义
       * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *返回结果,参见Common.RetType的枚举定义
       * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } /** *
       *返回结果,参见Common.RetType的枚举定义
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder setRetType(int value) { bitField0_ |= 0x00000001; retType_ = value; onChanged(); return this; } /** *
       *返回结果,参见Common.RetType的枚举定义
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000001); retType_ = -400; onChanged(); return this; } private java.lang.Object retMsg_ = ""; /** *
       *返回结果描述
       * 
* * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *返回结果描述
       * 
* * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *返回结果描述
       * 
* * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *返回结果描述
       * 
* * optional string retMsg = 2; */ public Builder setRetMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } /** *
       *返回结果描述
       * 
* * optional string retMsg = 2; */ public Builder clearRetMsg() { bitField0_ = (bitField0_ & ~0x00000002); retMsg_ = getDefaultInstance().getRetMsg(); onChanged(); return this; } /** *
       *返回结果描述
       * 
* * optional string retMsg = 2; */ public Builder setRetMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } private int errCode_ ; /** *
       *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
       * 
* * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
       * 
* * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } /** *
       *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
       * 
* * optional int32 errCode = 3; */ public Builder setErrCode(int value) { bitField0_ |= 0x00000004; errCode_ = value; onChanged(); return this; } /** *
       *错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
       * 
* * optional int32 errCode = 3; */ public Builder clearErrCode() { bitField0_ = (bitField0_ & ~0x00000004); errCode_ = 0; onChanged(); return this; } private com.moomoo.openapi.pb.InitConnect.S2C s2C_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.InitConnect.S2C, com.moomoo.openapi.pb.InitConnect.S2C.Builder, com.moomoo.openapi.pb.InitConnect.S2COrBuilder> s2CBuilder_; /** * optional .InitConnect.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .InitConnect.S2C s2c = 4; */ public com.moomoo.openapi.pb.InitConnect.S2C getS2C() { if (s2CBuilder_ == null) { return s2C_ == null ? com.moomoo.openapi.pb.InitConnect.S2C.getDefaultInstance() : s2C_; } else { return s2CBuilder_.getMessage(); } } /** * optional .InitConnect.S2C s2c = 4; */ public Builder setS2C(com.moomoo.openapi.pb.InitConnect.S2C value) { if (s2CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } s2C_ = value; onChanged(); } else { s2CBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .InitConnect.S2C s2c = 4; */ public Builder setS2C( com.moomoo.openapi.pb.InitConnect.S2C.Builder builderForValue) { if (s2CBuilder_ == null) { s2C_ = builderForValue.build(); onChanged(); } else { s2CBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .InitConnect.S2C s2c = 4; */ public Builder mergeS2C(com.moomoo.openapi.pb.InitConnect.S2C value) { if (s2CBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && s2C_ != null && s2C_ != com.moomoo.openapi.pb.InitConnect.S2C.getDefaultInstance()) { s2C_ = com.moomoo.openapi.pb.InitConnect.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial(); } else { s2C_ = value; } onChanged(); } else { s2CBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .InitConnect.S2C s2c = 4; */ public Builder clearS2C() { if (s2CBuilder_ == null) { s2C_ = null; onChanged(); } else { s2CBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .InitConnect.S2C s2c = 4; */ public com.moomoo.openapi.pb.InitConnect.S2C.Builder getS2CBuilder() { bitField0_ |= 0x00000008; onChanged(); return getS2CFieldBuilder().getBuilder(); } /** * optional .InitConnect.S2C s2c = 4; */ public com.moomoo.openapi.pb.InitConnect.S2COrBuilder getS2COrBuilder() { if (s2CBuilder_ != null) { return s2CBuilder_.getMessageOrBuilder(); } else { return s2C_ == null ? com.moomoo.openapi.pb.InitConnect.S2C.getDefaultInstance() : s2C_; } } /** * optional .InitConnect.S2C s2c = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.InitConnect.S2C, com.moomoo.openapi.pb.InitConnect.S2C.Builder, com.moomoo.openapi.pb.InitConnect.S2COrBuilder> getS2CFieldBuilder() { if (s2CBuilder_ == null) { s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.InitConnect.S2C, com.moomoo.openapi.pb.InitConnect.S2C.Builder, com.moomoo.openapi.pb.InitConnect.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:InitConnect.Response) } // @@protoc_insertion_point(class_scope:InitConnect.Response) private static final com.moomoo.openapi.pb.InitConnect.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.InitConnect.Response(); } public static com.moomoo.openapi.pb.InitConnect.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.InitConnect.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_InitConnect_C2S_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_InitConnect_C2S_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_InitConnect_S2C_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_InitConnect_S2C_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_InitConnect_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_InitConnect_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_InitConnect_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_InitConnect_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\021InitConnect.proto\022\013InitConnect\032\014Common" + ".proto\"\210\001\n\003C2S\022\021\n\tclientVer\030\001 \002(\005\022\020\n\010cli" + "entID\030\002 \002(\t\022\022\n\nrecvNotify\030\003 \001(\010\022\025\n\rpacke" + "tEncAlgo\030\004 \001(\005\022\024\n\014pushProtoFmt\030\005 \001(\005\022\033\n\023" + "programmingLanguage\030\006 \001(\t\"\227\001\n\003S2C\022\021\n\tser" + "verVer\030\001 \002(\005\022\023\n\013loginUserID\030\002 \002(\004\022\016\n\006con" + "nID\030\003 \002(\004\022\022\n\nconnAESKey\030\004 \002(\t\022\031\n\021keepAli" + "veInterval\030\005 \002(\005\022\020\n\010aesCBCiv\030\006 \001(\t\022\027\n\017us" + "erAttribution\030\007 \001(\005\"(\n\007Request\022\035\n\003c2s\030\001 " + "\002(\0132\020.InitConnect.C2S\"a\n\010Response\022\025\n\007ret" + "Type\030\001 \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errC" + "ode\030\003 \001(\005\022\035\n\003s2c\030\004 \001(\0132\020.InitConnect.S2C" + "BD\n\025com.moomoo.openapi.pbZ+github.com/fu" + "tuopen/ftapi4go/pb/initconnect" }; 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(), }, assigner); internal_static_InitConnect_C2S_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_InitConnect_C2S_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_InitConnect_C2S_descriptor, new java.lang.String[] { "ClientVer", "ClientID", "RecvNotify", "PacketEncAlgo", "PushProtoFmt", "ProgrammingLanguage", }); internal_static_InitConnect_S2C_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_InitConnect_S2C_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_InitConnect_S2C_descriptor, new java.lang.String[] { "ServerVer", "LoginUserID", "ConnID", "ConnAESKey", "KeepAliveInterval", "AesCBCiv", "UserAttribution", }); internal_static_InitConnect_Request_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_InitConnect_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_InitConnect_Request_descriptor, new java.lang.String[] { "C2S", }); internal_static_InitConnect_Response_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_InitConnect_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_InitConnect_Response_descriptor, new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", }); com.moomoo.openapi.pb.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy