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

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

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

package com.moomoo.openapi.pb;

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

    /**
     * 
     *历史原因,目前已废弃,填0即可
     * 
* * required uint64 userID = 1; */ boolean hasUserID(); /** *
     *历史原因,目前已废弃,填0即可
     * 
* * required uint64 userID = 1; */ long getUserID(); } /** * Protobuf type {@code GetGlobalState.C2S} */ public static final class C2S extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:GetGlobalState.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() { userID_ = 0L; } @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; userID_ = input.readUInt64(); 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.GetGlobalState.internal_static_GetGlobalState_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.C2S.class, com.moomoo.openapi.pb.GetGlobalState.C2S.Builder.class); } private int bitField0_; public static final int USERID_FIELD_NUMBER = 1; private long userID_; /** *
     *历史原因,目前已废弃,填0即可
     * 
* * required uint64 userID = 1; */ public boolean hasUserID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *历史原因,目前已废弃,填0即可
     * 
* * required uint64 userID = 1; */ public long getUserID() { return userID_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasUserID()) { 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.writeUInt64(1, userID_); } 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 .computeUInt64Size(1, userID_); } 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.GetGlobalState.C2S)) { return super.equals(obj); } com.moomoo.openapi.pb.GetGlobalState.C2S other = (com.moomoo.openapi.pb.GetGlobalState.C2S) obj; boolean result = true; result = result && (hasUserID() == other.hasUserID()); if (hasUserID()) { result = result && (getUserID() == other.getUserID()); } 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 (hasUserID()) { hash = (37 * hash) + USERID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUserID()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.GetGlobalState.C2S parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.C2S parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.C2S parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.C2S parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.C2S parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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 GetGlobalState.C2S} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:GetGlobalState.C2S) com.moomoo.openapi.pb.GetGlobalState.C2SOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.C2S.class, com.moomoo.openapi.pb.GetGlobalState.C2S.Builder.class); } // Construct using com.moomoo.openapi.pb.GetGlobalState.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(); userID_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_C2S_descriptor; } public com.moomoo.openapi.pb.GetGlobalState.C2S getDefaultInstanceForType() { return com.moomoo.openapi.pb.GetGlobalState.C2S.getDefaultInstance(); } public com.moomoo.openapi.pb.GetGlobalState.C2S build() { com.moomoo.openapi.pb.GetGlobalState.C2S result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.GetGlobalState.C2S buildPartial() { com.moomoo.openapi.pb.GetGlobalState.C2S result = new com.moomoo.openapi.pb.GetGlobalState.C2S(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.userID_ = userID_; 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.GetGlobalState.C2S) { return mergeFrom((com.moomoo.openapi.pb.GetGlobalState.C2S)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.GetGlobalState.C2S other) { if (other == com.moomoo.openapi.pb.GetGlobalState.C2S.getDefaultInstance()) return this; if (other.hasUserID()) { setUserID(other.getUserID()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasUserID()) { 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.GetGlobalState.C2S parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.GetGlobalState.C2S) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long userID_ ; /** *
       *历史原因,目前已废弃,填0即可
       * 
* * required uint64 userID = 1; */ public boolean hasUserID() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *历史原因,目前已废弃,填0即可
       * 
* * required uint64 userID = 1; */ public long getUserID() { return userID_; } /** *
       *历史原因,目前已废弃,填0即可
       * 
* * required uint64 userID = 1; */ public Builder setUserID(long value) { bitField0_ |= 0x00000001; userID_ = value; onChanged(); return this; } /** *
       *历史原因,目前已废弃,填0即可
       * 
* * required uint64 userID = 1; */ public Builder clearUserID() { bitField0_ = (bitField0_ & ~0x00000001); userID_ = 0L; 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:GetGlobalState.C2S) } // @@protoc_insertion_point(class_scope:GetGlobalState.C2S) private static final com.moomoo.openapi.pb.GetGlobalState.C2S DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetGlobalState.C2S(); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.C2S getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface S2COrBuilder extends // @@protoc_insertion_point(interface_extends:GetGlobalState.S2C) com.google.protobuf.MessageOrBuilder { /** *
     *Qot_Common.QotMarketState,港股主板市场状态 
     * 
* * required int32 marketHK = 1; */ boolean hasMarketHK(); /** *
     *Qot_Common.QotMarketState,港股主板市场状态 
     * 
* * required int32 marketHK = 1; */ int getMarketHK(); /** *
     *Qot_Common.QotMarketState,美股Nasdaq市场状态 
     * 
* * required int32 marketUS = 2; */ boolean hasMarketUS(); /** *
     *Qot_Common.QotMarketState,美股Nasdaq市场状态 
     * 
* * required int32 marketUS = 2; */ int getMarketUS(); /** *
     *Qot_Common.QotMarketState,沪市状态 
     * 
* * required int32 marketSH = 3; */ boolean hasMarketSH(); /** *
     *Qot_Common.QotMarketState,沪市状态 
     * 
* * required int32 marketSH = 3; */ int getMarketSH(); /** *
     *Qot_Common.QotMarketState,深市状态 
     * 
* * required int32 marketSZ = 4; */ boolean hasMarketSZ(); /** *
     *Qot_Common.QotMarketState,深市状态 
     * 
* * required int32 marketSZ = 4; */ int getMarketSZ(); /** *
     *Qot_Common.QotMarketState,港股期货市场状态 
     * 
* * required int32 marketHKFuture = 5; */ boolean hasMarketHKFuture(); /** *
     *Qot_Common.QotMarketState,港股期货市场状态 
     * 
* * required int32 marketHKFuture = 5; */ int getMarketHKFuture(); /** *
     *Qot_Common.QotMarketState,美国期货市场状态 
     * 
* * optional int32 marketUSFuture = 15; */ boolean hasMarketUSFuture(); /** *
     *Qot_Common.QotMarketState,美国期货市场状态 
     * 
* * optional int32 marketUSFuture = 15; */ int getMarketUSFuture(); /** *
     *Qot_Common.QotMarketState,新加坡期货市场状态 
     * 
* * optional int32 marketSGFuture = 17; */ boolean hasMarketSGFuture(); /** *
     *Qot_Common.QotMarketState,新加坡期货市场状态 
     * 
* * optional int32 marketSGFuture = 17; */ int getMarketSGFuture(); /** *
     *Qot_Common.QotMarketState,日本期货市场状态
     * 
* * optional int32 marketJPFuture = 18; */ boolean hasMarketJPFuture(); /** *
     *Qot_Common.QotMarketState,日本期货市场状态
     * 
* * optional int32 marketJPFuture = 18; */ int getMarketJPFuture(); /** *
     *是否登陆行情服务器
     * 
* * required bool qotLogined = 6; */ boolean hasQotLogined(); /** *
     *是否登陆行情服务器
     * 
* * required bool qotLogined = 6; */ boolean getQotLogined(); /** *
     *是否登陆交易服务器
     * 
* * required bool trdLogined = 7; */ boolean hasTrdLogined(); /** *
     *是否登陆交易服务器
     * 
* * required bool trdLogined = 7; */ boolean getTrdLogined(); /** *
     *版本号
     * 
* * required int32 serverVer = 8; */ boolean hasServerVer(); /** *
     *版本号
     * 
* * required int32 serverVer = 8; */ int getServerVer(); /** *
     *buildNo
     * 
* * required int32 serverBuildNo = 9; */ boolean hasServerBuildNo(); /** *
     *buildNo
     * 
* * required int32 serverBuildNo = 9; */ int getServerBuildNo(); /** *
     *当前服务器时间
     * 
* * required int64 time = 10; */ boolean hasTime(); /** *
     *当前服务器时间
     * 
* * required int64 time = 10; */ long getTime(); /** *
     *当前本地时间
     * 
* * optional double localTime = 11; */ boolean hasLocalTime(); /** *
     *当前本地时间
     * 
* * optional double localTime = 11; */ double getLocalTime(); /** *
     *当前程序状态
     * 
* * optional .Common.ProgramStatus programStatus = 12; */ boolean hasProgramStatus(); /** *
     *当前程序状态
     * 
* * optional .Common.ProgramStatus programStatus = 12; */ com.moomoo.openapi.pb.Common.ProgramStatus getProgramStatus(); /** *
     *当前程序状态
     * 
* * optional .Common.ProgramStatus programStatus = 12; */ com.moomoo.openapi.pb.Common.ProgramStatusOrBuilder getProgramStatusOrBuilder(); /** * optional string qotSvrIpAddr = 13; */ boolean hasQotSvrIpAddr(); /** * optional string qotSvrIpAddr = 13; */ java.lang.String getQotSvrIpAddr(); /** * optional string qotSvrIpAddr = 13; */ com.google.protobuf.ByteString getQotSvrIpAddrBytes(); /** * optional string trdSvrIpAddr = 14; */ boolean hasTrdSvrIpAddr(); /** * optional string trdSvrIpAddr = 14; */ java.lang.String getTrdSvrIpAddr(); /** * optional string trdSvrIpAddr = 14; */ com.google.protobuf.ByteString getTrdSvrIpAddrBytes(); /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * optional uint64 connID = 16; */ boolean hasConnID(); /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * optional uint64 connID = 16; */ long getConnID(); } /** * Protobuf type {@code GetGlobalState.S2C} */ public static final class S2C extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:GetGlobalState.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() { marketHK_ = 0; marketUS_ = 0; marketSH_ = 0; marketSZ_ = 0; marketHKFuture_ = 0; marketUSFuture_ = 0; marketSGFuture_ = 0; marketJPFuture_ = 0; qotLogined_ = false; trdLogined_ = false; serverVer_ = 0; serverBuildNo_ = 0; time_ = 0L; localTime_ = 0D; qotSvrIpAddr_ = ""; trdSvrIpAddr_ = ""; connID_ = 0L; } @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; marketHK_ = input.readInt32(); break; } case 16: { bitField0_ |= 0x00000002; marketUS_ = input.readInt32(); break; } case 24: { bitField0_ |= 0x00000004; marketSH_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; marketSZ_ = input.readInt32(); break; } case 40: { bitField0_ |= 0x00000010; marketHKFuture_ = input.readInt32(); break; } case 48: { bitField0_ |= 0x00000100; qotLogined_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000200; trdLogined_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000400; serverVer_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000800; serverBuildNo_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00001000; time_ = input.readInt64(); break; } case 89: { bitField0_ |= 0x00002000; localTime_ = input.readDouble(); break; } case 98: { com.moomoo.openapi.pb.Common.ProgramStatus.Builder subBuilder = null; if (((bitField0_ & 0x00004000) == 0x00004000)) { subBuilder = programStatus_.toBuilder(); } programStatus_ = input.readMessage(com.moomoo.openapi.pb.Common.ProgramStatus.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(programStatus_); programStatus_ = subBuilder.buildPartial(); } bitField0_ |= 0x00004000; break; } case 106: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00008000; qotSvrIpAddr_ = bs; break; } case 114: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00010000; trdSvrIpAddr_ = bs; break; } case 120: { bitField0_ |= 0x00000020; marketUSFuture_ = input.readInt32(); break; } case 128: { bitField0_ |= 0x00020000; connID_ = input.readUInt64(); break; } case 136: { bitField0_ |= 0x00000040; marketSGFuture_ = input.readInt32(); break; } case 144: { bitField0_ |= 0x00000080; marketJPFuture_ = 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.GetGlobalState.internal_static_GetGlobalState_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.S2C.class, com.moomoo.openapi.pb.GetGlobalState.S2C.Builder.class); } private int bitField0_; public static final int MARKETHK_FIELD_NUMBER = 1; private int marketHK_; /** *
     *Qot_Common.QotMarketState,港股主板市场状态 
     * 
* * required int32 marketHK = 1; */ public boolean hasMarketHK() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *Qot_Common.QotMarketState,港股主板市场状态 
     * 
* * required int32 marketHK = 1; */ public int getMarketHK() { return marketHK_; } public static final int MARKETUS_FIELD_NUMBER = 2; private int marketUS_; /** *
     *Qot_Common.QotMarketState,美股Nasdaq市场状态 
     * 
* * required int32 marketUS = 2; */ public boolean hasMarketUS() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *Qot_Common.QotMarketState,美股Nasdaq市场状态 
     * 
* * required int32 marketUS = 2; */ public int getMarketUS() { return marketUS_; } public static final int MARKETSH_FIELD_NUMBER = 3; private int marketSH_; /** *
     *Qot_Common.QotMarketState,沪市状态 
     * 
* * required int32 marketSH = 3; */ public boolean hasMarketSH() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *Qot_Common.QotMarketState,沪市状态 
     * 
* * required int32 marketSH = 3; */ public int getMarketSH() { return marketSH_; } public static final int MARKETSZ_FIELD_NUMBER = 4; private int marketSZ_; /** *
     *Qot_Common.QotMarketState,深市状态 
     * 
* * required int32 marketSZ = 4; */ public boolean hasMarketSZ() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     *Qot_Common.QotMarketState,深市状态 
     * 
* * required int32 marketSZ = 4; */ public int getMarketSZ() { return marketSZ_; } public static final int MARKETHKFUTURE_FIELD_NUMBER = 5; private int marketHKFuture_; /** *
     *Qot_Common.QotMarketState,港股期货市场状态 
     * 
* * required int32 marketHKFuture = 5; */ public boolean hasMarketHKFuture() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     *Qot_Common.QotMarketState,港股期货市场状态 
     * 
* * required int32 marketHKFuture = 5; */ public int getMarketHKFuture() { return marketHKFuture_; } public static final int MARKETUSFUTURE_FIELD_NUMBER = 15; private int marketUSFuture_; /** *
     *Qot_Common.QotMarketState,美国期货市场状态 
     * 
* * optional int32 marketUSFuture = 15; */ public boolean hasMarketUSFuture() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     *Qot_Common.QotMarketState,美国期货市场状态 
     * 
* * optional int32 marketUSFuture = 15; */ public int getMarketUSFuture() { return marketUSFuture_; } public static final int MARKETSGFUTURE_FIELD_NUMBER = 17; private int marketSGFuture_; /** *
     *Qot_Common.QotMarketState,新加坡期货市场状态 
     * 
* * optional int32 marketSGFuture = 17; */ public boolean hasMarketSGFuture() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     *Qot_Common.QotMarketState,新加坡期货市场状态 
     * 
* * optional int32 marketSGFuture = 17; */ public int getMarketSGFuture() { return marketSGFuture_; } public static final int MARKETJPFUTURE_FIELD_NUMBER = 18; private int marketJPFuture_; /** *
     *Qot_Common.QotMarketState,日本期货市场状态
     * 
* * optional int32 marketJPFuture = 18; */ public boolean hasMarketJPFuture() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
     *Qot_Common.QotMarketState,日本期货市场状态
     * 
* * optional int32 marketJPFuture = 18; */ public int getMarketJPFuture() { return marketJPFuture_; } public static final int QOTLOGINED_FIELD_NUMBER = 6; private boolean qotLogined_; /** *
     *是否登陆行情服务器
     * 
* * required bool qotLogined = 6; */ public boolean hasQotLogined() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
     *是否登陆行情服务器
     * 
* * required bool qotLogined = 6; */ public boolean getQotLogined() { return qotLogined_; } public static final int TRDLOGINED_FIELD_NUMBER = 7; private boolean trdLogined_; /** *
     *是否登陆交易服务器
     * 
* * required bool trdLogined = 7; */ public boolean hasTrdLogined() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
     *是否登陆交易服务器
     * 
* * required bool trdLogined = 7; */ public boolean getTrdLogined() { return trdLogined_; } public static final int SERVERVER_FIELD_NUMBER = 8; private int serverVer_; /** *
     *版本号
     * 
* * required int32 serverVer = 8; */ public boolean hasServerVer() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
     *版本号
     * 
* * required int32 serverVer = 8; */ public int getServerVer() { return serverVer_; } public static final int SERVERBUILDNO_FIELD_NUMBER = 9; private int serverBuildNo_; /** *
     *buildNo
     * 
* * required int32 serverBuildNo = 9; */ public boolean hasServerBuildNo() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
     *buildNo
     * 
* * required int32 serverBuildNo = 9; */ public int getServerBuildNo() { return serverBuildNo_; } public static final int TIME_FIELD_NUMBER = 10; private long time_; /** *
     *当前服务器时间
     * 
* * required int64 time = 10; */ public boolean hasTime() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
     *当前服务器时间
     * 
* * required int64 time = 10; */ public long getTime() { return time_; } public static final int LOCALTIME_FIELD_NUMBER = 11; private double localTime_; /** *
     *当前本地时间
     * 
* * optional double localTime = 11; */ public boolean hasLocalTime() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
     *当前本地时间
     * 
* * optional double localTime = 11; */ public double getLocalTime() { return localTime_; } public static final int PROGRAMSTATUS_FIELD_NUMBER = 12; private com.moomoo.openapi.pb.Common.ProgramStatus programStatus_; /** *
     *当前程序状态
     * 
* * optional .Common.ProgramStatus programStatus = 12; */ public boolean hasProgramStatus() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
     *当前程序状态
     * 
* * optional .Common.ProgramStatus programStatus = 12; */ public com.moomoo.openapi.pb.Common.ProgramStatus getProgramStatus() { return programStatus_ == null ? com.moomoo.openapi.pb.Common.ProgramStatus.getDefaultInstance() : programStatus_; } /** *
     *当前程序状态
     * 
* * optional .Common.ProgramStatus programStatus = 12; */ public com.moomoo.openapi.pb.Common.ProgramStatusOrBuilder getProgramStatusOrBuilder() { return programStatus_ == null ? com.moomoo.openapi.pb.Common.ProgramStatus.getDefaultInstance() : programStatus_; } public static final int QOTSVRIPADDR_FIELD_NUMBER = 13; private volatile java.lang.Object qotSvrIpAddr_; /** * optional string qotSvrIpAddr = 13; */ public boolean hasQotSvrIpAddr() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional string qotSvrIpAddr = 13; */ public java.lang.String getQotSvrIpAddr() { java.lang.Object ref = qotSvrIpAddr_; 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()) { qotSvrIpAddr_ = s; } return s; } } /** * optional string qotSvrIpAddr = 13; */ public com.google.protobuf.ByteString getQotSvrIpAddrBytes() { java.lang.Object ref = qotSvrIpAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qotSvrIpAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TRDSVRIPADDR_FIELD_NUMBER = 14; private volatile java.lang.Object trdSvrIpAddr_; /** * optional string trdSvrIpAddr = 14; */ public boolean hasTrdSvrIpAddr() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional string trdSvrIpAddr = 14; */ public java.lang.String getTrdSvrIpAddr() { java.lang.Object ref = trdSvrIpAddr_; 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()) { trdSvrIpAddr_ = s; } return s; } } /** * optional string trdSvrIpAddr = 14; */ public com.google.protobuf.ByteString getTrdSvrIpAddrBytes() { java.lang.Object ref = trdSvrIpAddr_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trdSvrIpAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CONNID_FIELD_NUMBER = 16; private long connID_; /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * optional uint64 connID = 16; */ public boolean hasConnID() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** *
     *此连接的连接ID,连接的唯一标识
     * 
* * optional uint64 connID = 16; */ public long getConnID() { return connID_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasMarketHK()) { memoizedIsInitialized = 0; return false; } if (!hasMarketUS()) { memoizedIsInitialized = 0; return false; } if (!hasMarketSH()) { memoizedIsInitialized = 0; return false; } if (!hasMarketSZ()) { memoizedIsInitialized = 0; return false; } if (!hasMarketHKFuture()) { memoizedIsInitialized = 0; return false; } if (!hasQotLogined()) { memoizedIsInitialized = 0; return false; } if (!hasTrdLogined()) { memoizedIsInitialized = 0; return false; } if (!hasServerVer()) { memoizedIsInitialized = 0; return false; } if (!hasServerBuildNo()) { memoizedIsInitialized = 0; return false; } if (!hasTime()) { memoizedIsInitialized = 0; return false; } if (hasProgramStatus()) { if (!getProgramStatus().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, marketHK_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, marketUS_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, marketSH_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, marketSZ_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, marketHKFuture_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(6, qotLogined_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(7, trdLogined_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(8, serverVer_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(9, serverBuildNo_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt64(10, time_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeDouble(11, localTime_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeMessage(12, getProgramStatus()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, qotSvrIpAddr_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, trdSvrIpAddr_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeInt32(15, marketUSFuture_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeUInt64(16, connID_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeInt32(17, marketSGFuture_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(18, marketJPFuture_); } 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, marketHK_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, marketUS_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, marketSH_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, marketSZ_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, marketHKFuture_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, qotLogined_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, trdLogined_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, serverVer_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, serverBuildNo_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(10, time_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(11, localTime_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getProgramStatus()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, qotSvrIpAddr_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, trdSvrIpAddr_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(15, marketUSFuture_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(16, connID_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, marketSGFuture_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(18, marketJPFuture_); } 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.GetGlobalState.S2C)) { return super.equals(obj); } com.moomoo.openapi.pb.GetGlobalState.S2C other = (com.moomoo.openapi.pb.GetGlobalState.S2C) obj; boolean result = true; result = result && (hasMarketHK() == other.hasMarketHK()); if (hasMarketHK()) { result = result && (getMarketHK() == other.getMarketHK()); } result = result && (hasMarketUS() == other.hasMarketUS()); if (hasMarketUS()) { result = result && (getMarketUS() == other.getMarketUS()); } result = result && (hasMarketSH() == other.hasMarketSH()); if (hasMarketSH()) { result = result && (getMarketSH() == other.getMarketSH()); } result = result && (hasMarketSZ() == other.hasMarketSZ()); if (hasMarketSZ()) { result = result && (getMarketSZ() == other.getMarketSZ()); } result = result && (hasMarketHKFuture() == other.hasMarketHKFuture()); if (hasMarketHKFuture()) { result = result && (getMarketHKFuture() == other.getMarketHKFuture()); } result = result && (hasMarketUSFuture() == other.hasMarketUSFuture()); if (hasMarketUSFuture()) { result = result && (getMarketUSFuture() == other.getMarketUSFuture()); } result = result && (hasMarketSGFuture() == other.hasMarketSGFuture()); if (hasMarketSGFuture()) { result = result && (getMarketSGFuture() == other.getMarketSGFuture()); } result = result && (hasMarketJPFuture() == other.hasMarketJPFuture()); if (hasMarketJPFuture()) { result = result && (getMarketJPFuture() == other.getMarketJPFuture()); } result = result && (hasQotLogined() == other.hasQotLogined()); if (hasQotLogined()) { result = result && (getQotLogined() == other.getQotLogined()); } result = result && (hasTrdLogined() == other.hasTrdLogined()); if (hasTrdLogined()) { result = result && (getTrdLogined() == other.getTrdLogined()); } result = result && (hasServerVer() == other.hasServerVer()); if (hasServerVer()) { result = result && (getServerVer() == other.getServerVer()); } result = result && (hasServerBuildNo() == other.hasServerBuildNo()); if (hasServerBuildNo()) { result = result && (getServerBuildNo() == other.getServerBuildNo()); } result = result && (hasTime() == other.hasTime()); if (hasTime()) { result = result && (getTime() == other.getTime()); } result = result && (hasLocalTime() == other.hasLocalTime()); if (hasLocalTime()) { result = result && ( java.lang.Double.doubleToLongBits(getLocalTime()) == java.lang.Double.doubleToLongBits( other.getLocalTime())); } result = result && (hasProgramStatus() == other.hasProgramStatus()); if (hasProgramStatus()) { result = result && getProgramStatus() .equals(other.getProgramStatus()); } result = result && (hasQotSvrIpAddr() == other.hasQotSvrIpAddr()); if (hasQotSvrIpAddr()) { result = result && getQotSvrIpAddr() .equals(other.getQotSvrIpAddr()); } result = result && (hasTrdSvrIpAddr() == other.hasTrdSvrIpAddr()); if (hasTrdSvrIpAddr()) { result = result && getTrdSvrIpAddr() .equals(other.getTrdSvrIpAddr()); } result = result && (hasConnID() == other.hasConnID()); if (hasConnID()) { result = result && (getConnID() == other.getConnID()); } 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 (hasMarketHK()) { hash = (37 * hash) + MARKETHK_FIELD_NUMBER; hash = (53 * hash) + getMarketHK(); } if (hasMarketUS()) { hash = (37 * hash) + MARKETUS_FIELD_NUMBER; hash = (53 * hash) + getMarketUS(); } if (hasMarketSH()) { hash = (37 * hash) + MARKETSH_FIELD_NUMBER; hash = (53 * hash) + getMarketSH(); } if (hasMarketSZ()) { hash = (37 * hash) + MARKETSZ_FIELD_NUMBER; hash = (53 * hash) + getMarketSZ(); } if (hasMarketHKFuture()) { hash = (37 * hash) + MARKETHKFUTURE_FIELD_NUMBER; hash = (53 * hash) + getMarketHKFuture(); } if (hasMarketUSFuture()) { hash = (37 * hash) + MARKETUSFUTURE_FIELD_NUMBER; hash = (53 * hash) + getMarketUSFuture(); } if (hasMarketSGFuture()) { hash = (37 * hash) + MARKETSGFUTURE_FIELD_NUMBER; hash = (53 * hash) + getMarketSGFuture(); } if (hasMarketJPFuture()) { hash = (37 * hash) + MARKETJPFUTURE_FIELD_NUMBER; hash = (53 * hash) + getMarketJPFuture(); } if (hasQotLogined()) { hash = (37 * hash) + QOTLOGINED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getQotLogined()); } if (hasTrdLogined()) { hash = (37 * hash) + TRDLOGINED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTrdLogined()); } if (hasServerVer()) { hash = (37 * hash) + SERVERVER_FIELD_NUMBER; hash = (53 * hash) + getServerVer(); } if (hasServerBuildNo()) { hash = (37 * hash) + SERVERBUILDNO_FIELD_NUMBER; hash = (53 * hash) + getServerBuildNo(); } if (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTime()); } if (hasLocalTime()) { hash = (37 * hash) + LOCALTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getLocalTime())); } if (hasProgramStatus()) { hash = (37 * hash) + PROGRAMSTATUS_FIELD_NUMBER; hash = (53 * hash) + getProgramStatus().hashCode(); } if (hasQotSvrIpAddr()) { hash = (37 * hash) + QOTSVRIPADDR_FIELD_NUMBER; hash = (53 * hash) + getQotSvrIpAddr().hashCode(); } if (hasTrdSvrIpAddr()) { hash = (37 * hash) + TRDSVRIPADDR_FIELD_NUMBER; hash = (53 * hash) + getTrdSvrIpAddr().hashCode(); } if (hasConnID()) { hash = (37 * hash) + CONNID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getConnID()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.GetGlobalState.S2C parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.S2C parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.S2C parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.S2C parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.S2C parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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 GetGlobalState.S2C} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:GetGlobalState.S2C) com.moomoo.openapi.pb.GetGlobalState.S2COrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.S2C.class, com.moomoo.openapi.pb.GetGlobalState.S2C.Builder.class); } // Construct using com.moomoo.openapi.pb.GetGlobalState.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) { getProgramStatusFieldBuilder(); } } public Builder clear() { super.clear(); marketHK_ = 0; bitField0_ = (bitField0_ & ~0x00000001); marketUS_ = 0; bitField0_ = (bitField0_ & ~0x00000002); marketSH_ = 0; bitField0_ = (bitField0_ & ~0x00000004); marketSZ_ = 0; bitField0_ = (bitField0_ & ~0x00000008); marketHKFuture_ = 0; bitField0_ = (bitField0_ & ~0x00000010); marketUSFuture_ = 0; bitField0_ = (bitField0_ & ~0x00000020); marketSGFuture_ = 0; bitField0_ = (bitField0_ & ~0x00000040); marketJPFuture_ = 0; bitField0_ = (bitField0_ & ~0x00000080); qotLogined_ = false; bitField0_ = (bitField0_ & ~0x00000100); trdLogined_ = false; bitField0_ = (bitField0_ & ~0x00000200); serverVer_ = 0; bitField0_ = (bitField0_ & ~0x00000400); serverBuildNo_ = 0; bitField0_ = (bitField0_ & ~0x00000800); time_ = 0L; bitField0_ = (bitField0_ & ~0x00001000); localTime_ = 0D; bitField0_ = (bitField0_ & ~0x00002000); if (programStatusBuilder_ == null) { programStatus_ = null; } else { programStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); qotSvrIpAddr_ = ""; bitField0_ = (bitField0_ & ~0x00008000); trdSvrIpAddr_ = ""; bitField0_ = (bitField0_ & ~0x00010000); connID_ = 0L; bitField0_ = (bitField0_ & ~0x00020000); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_S2C_descriptor; } public com.moomoo.openapi.pb.GetGlobalState.S2C getDefaultInstanceForType() { return com.moomoo.openapi.pb.GetGlobalState.S2C.getDefaultInstance(); } public com.moomoo.openapi.pb.GetGlobalState.S2C build() { com.moomoo.openapi.pb.GetGlobalState.S2C result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.GetGlobalState.S2C buildPartial() { com.moomoo.openapi.pb.GetGlobalState.S2C result = new com.moomoo.openapi.pb.GetGlobalState.S2C(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.marketHK_ = marketHK_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.marketUS_ = marketUS_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.marketSH_ = marketSH_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.marketSZ_ = marketSZ_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.marketHKFuture_ = marketHKFuture_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.marketUSFuture_ = marketUSFuture_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.marketSGFuture_ = marketSGFuture_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.marketJPFuture_ = marketJPFuture_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.qotLogined_ = qotLogined_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.trdLogined_ = trdLogined_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.serverVer_ = serverVer_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.serverBuildNo_ = serverBuildNo_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.time_ = time_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.localTime_ = localTime_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } if (programStatusBuilder_ == null) { result.programStatus_ = programStatus_; } else { result.programStatus_ = programStatusBuilder_.build(); } if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.qotSvrIpAddr_ = qotSvrIpAddr_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.trdSvrIpAddr_ = trdSvrIpAddr_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.connID_ = connID_; 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.GetGlobalState.S2C) { return mergeFrom((com.moomoo.openapi.pb.GetGlobalState.S2C)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.GetGlobalState.S2C other) { if (other == com.moomoo.openapi.pb.GetGlobalState.S2C.getDefaultInstance()) return this; if (other.hasMarketHK()) { setMarketHK(other.getMarketHK()); } if (other.hasMarketUS()) { setMarketUS(other.getMarketUS()); } if (other.hasMarketSH()) { setMarketSH(other.getMarketSH()); } if (other.hasMarketSZ()) { setMarketSZ(other.getMarketSZ()); } if (other.hasMarketHKFuture()) { setMarketHKFuture(other.getMarketHKFuture()); } if (other.hasMarketUSFuture()) { setMarketUSFuture(other.getMarketUSFuture()); } if (other.hasMarketSGFuture()) { setMarketSGFuture(other.getMarketSGFuture()); } if (other.hasMarketJPFuture()) { setMarketJPFuture(other.getMarketJPFuture()); } if (other.hasQotLogined()) { setQotLogined(other.getQotLogined()); } if (other.hasTrdLogined()) { setTrdLogined(other.getTrdLogined()); } if (other.hasServerVer()) { setServerVer(other.getServerVer()); } if (other.hasServerBuildNo()) { setServerBuildNo(other.getServerBuildNo()); } if (other.hasTime()) { setTime(other.getTime()); } if (other.hasLocalTime()) { setLocalTime(other.getLocalTime()); } if (other.hasProgramStatus()) { mergeProgramStatus(other.getProgramStatus()); } if (other.hasQotSvrIpAddr()) { bitField0_ |= 0x00008000; qotSvrIpAddr_ = other.qotSvrIpAddr_; onChanged(); } if (other.hasTrdSvrIpAddr()) { bitField0_ |= 0x00010000; trdSvrIpAddr_ = other.trdSvrIpAddr_; onChanged(); } if (other.hasConnID()) { setConnID(other.getConnID()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasMarketHK()) { return false; } if (!hasMarketUS()) { return false; } if (!hasMarketSH()) { return false; } if (!hasMarketSZ()) { return false; } if (!hasMarketHKFuture()) { return false; } if (!hasQotLogined()) { return false; } if (!hasTrdLogined()) { return false; } if (!hasServerVer()) { return false; } if (!hasServerBuildNo()) { return false; } if (!hasTime()) { return false; } if (hasProgramStatus()) { if (!getProgramStatus().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.GetGlobalState.S2C parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.GetGlobalState.S2C) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int marketHK_ ; /** *
       *Qot_Common.QotMarketState,港股主板市场状态 
       * 
* * required int32 marketHK = 1; */ public boolean hasMarketHK() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *Qot_Common.QotMarketState,港股主板市场状态 
       * 
* * required int32 marketHK = 1; */ public int getMarketHK() { return marketHK_; } /** *
       *Qot_Common.QotMarketState,港股主板市场状态 
       * 
* * required int32 marketHK = 1; */ public Builder setMarketHK(int value) { bitField0_ |= 0x00000001; marketHK_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,港股主板市场状态 
       * 
* * required int32 marketHK = 1; */ public Builder clearMarketHK() { bitField0_ = (bitField0_ & ~0x00000001); marketHK_ = 0; onChanged(); return this; } private int marketUS_ ; /** *
       *Qot_Common.QotMarketState,美股Nasdaq市场状态 
       * 
* * required int32 marketUS = 2; */ public boolean hasMarketUS() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *Qot_Common.QotMarketState,美股Nasdaq市场状态 
       * 
* * required int32 marketUS = 2; */ public int getMarketUS() { return marketUS_; } /** *
       *Qot_Common.QotMarketState,美股Nasdaq市场状态 
       * 
* * required int32 marketUS = 2; */ public Builder setMarketUS(int value) { bitField0_ |= 0x00000002; marketUS_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,美股Nasdaq市场状态 
       * 
* * required int32 marketUS = 2; */ public Builder clearMarketUS() { bitField0_ = (bitField0_ & ~0x00000002); marketUS_ = 0; onChanged(); return this; } private int marketSH_ ; /** *
       *Qot_Common.QotMarketState,沪市状态 
       * 
* * required int32 marketSH = 3; */ public boolean hasMarketSH() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *Qot_Common.QotMarketState,沪市状态 
       * 
* * required int32 marketSH = 3; */ public int getMarketSH() { return marketSH_; } /** *
       *Qot_Common.QotMarketState,沪市状态 
       * 
* * required int32 marketSH = 3; */ public Builder setMarketSH(int value) { bitField0_ |= 0x00000004; marketSH_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,沪市状态 
       * 
* * required int32 marketSH = 3; */ public Builder clearMarketSH() { bitField0_ = (bitField0_ & ~0x00000004); marketSH_ = 0; onChanged(); return this; } private int marketSZ_ ; /** *
       *Qot_Common.QotMarketState,深市状态 
       * 
* * required int32 marketSZ = 4; */ public boolean hasMarketSZ() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       *Qot_Common.QotMarketState,深市状态 
       * 
* * required int32 marketSZ = 4; */ public int getMarketSZ() { return marketSZ_; } /** *
       *Qot_Common.QotMarketState,深市状态 
       * 
* * required int32 marketSZ = 4; */ public Builder setMarketSZ(int value) { bitField0_ |= 0x00000008; marketSZ_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,深市状态 
       * 
* * required int32 marketSZ = 4; */ public Builder clearMarketSZ() { bitField0_ = (bitField0_ & ~0x00000008); marketSZ_ = 0; onChanged(); return this; } private int marketHKFuture_ ; /** *
       *Qot_Common.QotMarketState,港股期货市场状态 
       * 
* * required int32 marketHKFuture = 5; */ public boolean hasMarketHKFuture() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       *Qot_Common.QotMarketState,港股期货市场状态 
       * 
* * required int32 marketHKFuture = 5; */ public int getMarketHKFuture() { return marketHKFuture_; } /** *
       *Qot_Common.QotMarketState,港股期货市场状态 
       * 
* * required int32 marketHKFuture = 5; */ public Builder setMarketHKFuture(int value) { bitField0_ |= 0x00000010; marketHKFuture_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,港股期货市场状态 
       * 
* * required int32 marketHKFuture = 5; */ public Builder clearMarketHKFuture() { bitField0_ = (bitField0_ & ~0x00000010); marketHKFuture_ = 0; onChanged(); return this; } private int marketUSFuture_ ; /** *
       *Qot_Common.QotMarketState,美国期货市场状态 
       * 
* * optional int32 marketUSFuture = 15; */ public boolean hasMarketUSFuture() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       *Qot_Common.QotMarketState,美国期货市场状态 
       * 
* * optional int32 marketUSFuture = 15; */ public int getMarketUSFuture() { return marketUSFuture_; } /** *
       *Qot_Common.QotMarketState,美国期货市场状态 
       * 
* * optional int32 marketUSFuture = 15; */ public Builder setMarketUSFuture(int value) { bitField0_ |= 0x00000020; marketUSFuture_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,美国期货市场状态 
       * 
* * optional int32 marketUSFuture = 15; */ public Builder clearMarketUSFuture() { bitField0_ = (bitField0_ & ~0x00000020); marketUSFuture_ = 0; onChanged(); return this; } private int marketSGFuture_ ; /** *
       *Qot_Common.QotMarketState,新加坡期货市场状态 
       * 
* * optional int32 marketSGFuture = 17; */ public boolean hasMarketSGFuture() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       *Qot_Common.QotMarketState,新加坡期货市场状态 
       * 
* * optional int32 marketSGFuture = 17; */ public int getMarketSGFuture() { return marketSGFuture_; } /** *
       *Qot_Common.QotMarketState,新加坡期货市场状态 
       * 
* * optional int32 marketSGFuture = 17; */ public Builder setMarketSGFuture(int value) { bitField0_ |= 0x00000040; marketSGFuture_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,新加坡期货市场状态 
       * 
* * optional int32 marketSGFuture = 17; */ public Builder clearMarketSGFuture() { bitField0_ = (bitField0_ & ~0x00000040); marketSGFuture_ = 0; onChanged(); return this; } private int marketJPFuture_ ; /** *
       *Qot_Common.QotMarketState,日本期货市场状态
       * 
* * optional int32 marketJPFuture = 18; */ public boolean hasMarketJPFuture() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       *Qot_Common.QotMarketState,日本期货市场状态
       * 
* * optional int32 marketJPFuture = 18; */ public int getMarketJPFuture() { return marketJPFuture_; } /** *
       *Qot_Common.QotMarketState,日本期货市场状态
       * 
* * optional int32 marketJPFuture = 18; */ public Builder setMarketJPFuture(int value) { bitField0_ |= 0x00000080; marketJPFuture_ = value; onChanged(); return this; } /** *
       *Qot_Common.QotMarketState,日本期货市场状态
       * 
* * optional int32 marketJPFuture = 18; */ public Builder clearMarketJPFuture() { bitField0_ = (bitField0_ & ~0x00000080); marketJPFuture_ = 0; onChanged(); return this; } private boolean qotLogined_ ; /** *
       *是否登陆行情服务器
       * 
* * required bool qotLogined = 6; */ public boolean hasQotLogined() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       *是否登陆行情服务器
       * 
* * required bool qotLogined = 6; */ public boolean getQotLogined() { return qotLogined_; } /** *
       *是否登陆行情服务器
       * 
* * required bool qotLogined = 6; */ public Builder setQotLogined(boolean value) { bitField0_ |= 0x00000100; qotLogined_ = value; onChanged(); return this; } /** *
       *是否登陆行情服务器
       * 
* * required bool qotLogined = 6; */ public Builder clearQotLogined() { bitField0_ = (bitField0_ & ~0x00000100); qotLogined_ = false; onChanged(); return this; } private boolean trdLogined_ ; /** *
       *是否登陆交易服务器
       * 
* * required bool trdLogined = 7; */ public boolean hasTrdLogined() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** *
       *是否登陆交易服务器
       * 
* * required bool trdLogined = 7; */ public boolean getTrdLogined() { return trdLogined_; } /** *
       *是否登陆交易服务器
       * 
* * required bool trdLogined = 7; */ public Builder setTrdLogined(boolean value) { bitField0_ |= 0x00000200; trdLogined_ = value; onChanged(); return this; } /** *
       *是否登陆交易服务器
       * 
* * required bool trdLogined = 7; */ public Builder clearTrdLogined() { bitField0_ = (bitField0_ & ~0x00000200); trdLogined_ = false; onChanged(); return this; } private int serverVer_ ; /** *
       *版本号
       * 
* * required int32 serverVer = 8; */ public boolean hasServerVer() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
       *版本号
       * 
* * required int32 serverVer = 8; */ public int getServerVer() { return serverVer_; } /** *
       *版本号
       * 
* * required int32 serverVer = 8; */ public Builder setServerVer(int value) { bitField0_ |= 0x00000400; serverVer_ = value; onChanged(); return this; } /** *
       *版本号
       * 
* * required int32 serverVer = 8; */ public Builder clearServerVer() { bitField0_ = (bitField0_ & ~0x00000400); serverVer_ = 0; onChanged(); return this; } private int serverBuildNo_ ; /** *
       *buildNo
       * 
* * required int32 serverBuildNo = 9; */ public boolean hasServerBuildNo() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** *
       *buildNo
       * 
* * required int32 serverBuildNo = 9; */ public int getServerBuildNo() { return serverBuildNo_; } /** *
       *buildNo
       * 
* * required int32 serverBuildNo = 9; */ public Builder setServerBuildNo(int value) { bitField0_ |= 0x00000800; serverBuildNo_ = value; onChanged(); return this; } /** *
       *buildNo
       * 
* * required int32 serverBuildNo = 9; */ public Builder clearServerBuildNo() { bitField0_ = (bitField0_ & ~0x00000800); serverBuildNo_ = 0; onChanged(); return this; } private long time_ ; /** *
       *当前服务器时间
       * 
* * required int64 time = 10; */ public boolean hasTime() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** *
       *当前服务器时间
       * 
* * required int64 time = 10; */ public long getTime() { return time_; } /** *
       *当前服务器时间
       * 
* * required int64 time = 10; */ public Builder setTime(long value) { bitField0_ |= 0x00001000; time_ = value; onChanged(); return this; } /** *
       *当前服务器时间
       * 
* * required int64 time = 10; */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00001000); time_ = 0L; onChanged(); return this; } private double localTime_ ; /** *
       *当前本地时间
       * 
* * optional double localTime = 11; */ public boolean hasLocalTime() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** *
       *当前本地时间
       * 
* * optional double localTime = 11; */ public double getLocalTime() { return localTime_; } /** *
       *当前本地时间
       * 
* * optional double localTime = 11; */ public Builder setLocalTime(double value) { bitField0_ |= 0x00002000; localTime_ = value; onChanged(); return this; } /** *
       *当前本地时间
       * 
* * optional double localTime = 11; */ public Builder clearLocalTime() { bitField0_ = (bitField0_ & ~0x00002000); localTime_ = 0D; onChanged(); return this; } private com.moomoo.openapi.pb.Common.ProgramStatus programStatus_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.Common.ProgramStatus, com.moomoo.openapi.pb.Common.ProgramStatus.Builder, com.moomoo.openapi.pb.Common.ProgramStatusOrBuilder> programStatusBuilder_; /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public boolean hasProgramStatus() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public com.moomoo.openapi.pb.Common.ProgramStatus getProgramStatus() { if (programStatusBuilder_ == null) { return programStatus_ == null ? com.moomoo.openapi.pb.Common.ProgramStatus.getDefaultInstance() : programStatus_; } else { return programStatusBuilder_.getMessage(); } } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public Builder setProgramStatus(com.moomoo.openapi.pb.Common.ProgramStatus value) { if (programStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } programStatus_ = value; onChanged(); } else { programStatusBuilder_.setMessage(value); } bitField0_ |= 0x00004000; return this; } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public Builder setProgramStatus( com.moomoo.openapi.pb.Common.ProgramStatus.Builder builderForValue) { if (programStatusBuilder_ == null) { programStatus_ = builderForValue.build(); onChanged(); } else { programStatusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; return this; } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public Builder mergeProgramStatus(com.moomoo.openapi.pb.Common.ProgramStatus value) { if (programStatusBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000) && programStatus_ != null && programStatus_ != com.moomoo.openapi.pb.Common.ProgramStatus.getDefaultInstance()) { programStatus_ = com.moomoo.openapi.pb.Common.ProgramStatus.newBuilder(programStatus_).mergeFrom(value).buildPartial(); } else { programStatus_ = value; } onChanged(); } else { programStatusBuilder_.mergeFrom(value); } bitField0_ |= 0x00004000; return this; } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public Builder clearProgramStatus() { if (programStatusBuilder_ == null) { programStatus_ = null; onChanged(); } else { programStatusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00004000); return this; } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public com.moomoo.openapi.pb.Common.ProgramStatus.Builder getProgramStatusBuilder() { bitField0_ |= 0x00004000; onChanged(); return getProgramStatusFieldBuilder().getBuilder(); } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ public com.moomoo.openapi.pb.Common.ProgramStatusOrBuilder getProgramStatusOrBuilder() { if (programStatusBuilder_ != null) { return programStatusBuilder_.getMessageOrBuilder(); } else { return programStatus_ == null ? com.moomoo.openapi.pb.Common.ProgramStatus.getDefaultInstance() : programStatus_; } } /** *
       *当前程序状态
       * 
* * optional .Common.ProgramStatus programStatus = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.Common.ProgramStatus, com.moomoo.openapi.pb.Common.ProgramStatus.Builder, com.moomoo.openapi.pb.Common.ProgramStatusOrBuilder> getProgramStatusFieldBuilder() { if (programStatusBuilder_ == null) { programStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.Common.ProgramStatus, com.moomoo.openapi.pb.Common.ProgramStatus.Builder, com.moomoo.openapi.pb.Common.ProgramStatusOrBuilder>( getProgramStatus(), getParentForChildren(), isClean()); programStatus_ = null; } return programStatusBuilder_; } private java.lang.Object qotSvrIpAddr_ = ""; /** * optional string qotSvrIpAddr = 13; */ public boolean hasQotSvrIpAddr() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * optional string qotSvrIpAddr = 13; */ public java.lang.String getQotSvrIpAddr() { java.lang.Object ref = qotSvrIpAddr_; 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()) { qotSvrIpAddr_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string qotSvrIpAddr = 13; */ public com.google.protobuf.ByteString getQotSvrIpAddrBytes() { java.lang.Object ref = qotSvrIpAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); qotSvrIpAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string qotSvrIpAddr = 13; */ public Builder setQotSvrIpAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; qotSvrIpAddr_ = value; onChanged(); return this; } /** * optional string qotSvrIpAddr = 13; */ public Builder clearQotSvrIpAddr() { bitField0_ = (bitField0_ & ~0x00008000); qotSvrIpAddr_ = getDefaultInstance().getQotSvrIpAddr(); onChanged(); return this; } /** * optional string qotSvrIpAddr = 13; */ public Builder setQotSvrIpAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00008000; qotSvrIpAddr_ = value; onChanged(); return this; } private java.lang.Object trdSvrIpAddr_ = ""; /** * optional string trdSvrIpAddr = 14; */ public boolean hasTrdSvrIpAddr() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * optional string trdSvrIpAddr = 14; */ public java.lang.String getTrdSvrIpAddr() { java.lang.Object ref = trdSvrIpAddr_; 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()) { trdSvrIpAddr_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string trdSvrIpAddr = 14; */ public com.google.protobuf.ByteString getTrdSvrIpAddrBytes() { java.lang.Object ref = trdSvrIpAddr_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trdSvrIpAddr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string trdSvrIpAddr = 14; */ public Builder setTrdSvrIpAddr( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; trdSvrIpAddr_ = value; onChanged(); return this; } /** * optional string trdSvrIpAddr = 14; */ public Builder clearTrdSvrIpAddr() { bitField0_ = (bitField0_ & ~0x00010000); trdSvrIpAddr_ = getDefaultInstance().getTrdSvrIpAddr(); onChanged(); return this; } /** * optional string trdSvrIpAddr = 14; */ public Builder setTrdSvrIpAddrBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00010000; trdSvrIpAddr_ = value; onChanged(); return this; } private long connID_ ; /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * optional uint64 connID = 16; */ public boolean hasConnID() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * optional uint64 connID = 16; */ public long getConnID() { return connID_; } /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * optional uint64 connID = 16; */ public Builder setConnID(long value) { bitField0_ |= 0x00020000; connID_ = value; onChanged(); return this; } /** *
       *此连接的连接ID,连接的唯一标识
       * 
* * optional uint64 connID = 16; */ public Builder clearConnID() { bitField0_ = (bitField0_ & ~0x00020000); connID_ = 0L; 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:GetGlobalState.S2C) } // @@protoc_insertion_point(class_scope:GetGlobalState.S2C) private static final com.moomoo.openapi.pb.GetGlobalState.S2C DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetGlobalState.S2C(); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.S2C getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:GetGlobalState.Request) com.google.protobuf.MessageOrBuilder { /** * required .GetGlobalState.C2S c2s = 1; */ boolean hasC2S(); /** * required .GetGlobalState.C2S c2s = 1; */ com.moomoo.openapi.pb.GetGlobalState.C2S getC2S(); /** * required .GetGlobalState.C2S c2s = 1; */ com.moomoo.openapi.pb.GetGlobalState.C2SOrBuilder getC2SOrBuilder(); } /** * Protobuf type {@code GetGlobalState.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:GetGlobalState.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.GetGlobalState.C2S.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = c2S_.toBuilder(); } c2S_ = input.readMessage(com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.internal_static_GetGlobalState_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.Request.class, com.moomoo.openapi.pb.GetGlobalState.Request.Builder.class); } private int bitField0_; public static final int C2S_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.GetGlobalState.C2S c2S_; /** * required .GetGlobalState.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .GetGlobalState.C2S c2s = 1; */ public com.moomoo.openapi.pb.GetGlobalState.C2S getC2S() { return c2S_ == null ? com.moomoo.openapi.pb.GetGlobalState.C2S.getDefaultInstance() : c2S_; } /** * required .GetGlobalState.C2S c2s = 1; */ public com.moomoo.openapi.pb.GetGlobalState.C2SOrBuilder getC2SOrBuilder() { return c2S_ == null ? com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request)) { return super.equals(obj); } com.moomoo.openapi.pb.GetGlobalState.Request other = (com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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 GetGlobalState.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:GetGlobalState.Request) com.moomoo.openapi.pb.GetGlobalState.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.Request.class, com.moomoo.openapi.pb.GetGlobalState.Request.Builder.class); } // Construct using com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.internal_static_GetGlobalState_Request_descriptor; } public com.moomoo.openapi.pb.GetGlobalState.Request getDefaultInstanceForType() { return com.moomoo.openapi.pb.GetGlobalState.Request.getDefaultInstance(); } public com.moomoo.openapi.pb.GetGlobalState.Request build() { com.moomoo.openapi.pb.GetGlobalState.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.GetGlobalState.Request buildPartial() { com.moomoo.openapi.pb.GetGlobalState.Request result = new com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request) { return mergeFrom((com.moomoo.openapi.pb.GetGlobalState.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.GetGlobalState.Request other) { if (other == com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.GetGlobalState.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.GetGlobalState.C2S c2S_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.GetGlobalState.C2S, com.moomoo.openapi.pb.GetGlobalState.C2S.Builder, com.moomoo.openapi.pb.GetGlobalState.C2SOrBuilder> c2SBuilder_; /** * required .GetGlobalState.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .GetGlobalState.C2S c2s = 1; */ public com.moomoo.openapi.pb.GetGlobalState.C2S getC2S() { if (c2SBuilder_ == null) { return c2S_ == null ? com.moomoo.openapi.pb.GetGlobalState.C2S.getDefaultInstance() : c2S_; } else { return c2SBuilder_.getMessage(); } } /** * required .GetGlobalState.C2S c2s = 1; */ public Builder setC2S(com.moomoo.openapi.pb.GetGlobalState.C2S value) { if (c2SBuilder_ == null) { if (value == null) { throw new NullPointerException(); } c2S_ = value; onChanged(); } else { c2SBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .GetGlobalState.C2S c2s = 1; */ public Builder setC2S( com.moomoo.openapi.pb.GetGlobalState.C2S.Builder builderForValue) { if (c2SBuilder_ == null) { c2S_ = builderForValue.build(); onChanged(); } else { c2SBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .GetGlobalState.C2S c2s = 1; */ public Builder mergeC2S(com.moomoo.openapi.pb.GetGlobalState.C2S value) { if (c2SBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && c2S_ != null && c2S_ != com.moomoo.openapi.pb.GetGlobalState.C2S.getDefaultInstance()) { c2S_ = com.moomoo.openapi.pb.GetGlobalState.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial(); } else { c2S_ = value; } onChanged(); } else { c2SBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .GetGlobalState.C2S c2s = 1; */ public Builder clearC2S() { if (c2SBuilder_ == null) { c2S_ = null; onChanged(); } else { c2SBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .GetGlobalState.C2S c2s = 1; */ public com.moomoo.openapi.pb.GetGlobalState.C2S.Builder getC2SBuilder() { bitField0_ |= 0x00000001; onChanged(); return getC2SFieldBuilder().getBuilder(); } /** * required .GetGlobalState.C2S c2s = 1; */ public com.moomoo.openapi.pb.GetGlobalState.C2SOrBuilder getC2SOrBuilder() { if (c2SBuilder_ != null) { return c2SBuilder_.getMessageOrBuilder(); } else { return c2S_ == null ? com.moomoo.openapi.pb.GetGlobalState.C2S.getDefaultInstance() : c2S_; } } /** * required .GetGlobalState.C2S c2s = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.GetGlobalState.C2S, com.moomoo.openapi.pb.GetGlobalState.C2S.Builder, com.moomoo.openapi.pb.GetGlobalState.C2SOrBuilder> getC2SFieldBuilder() { if (c2SBuilder_ == null) { c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.GetGlobalState.C2S, com.moomoo.openapi.pb.GetGlobalState.C2S.Builder, com.moomoo.openapi.pb.GetGlobalState.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:GetGlobalState.Request) } // @@protoc_insertion_point(class_scope:GetGlobalState.Request) private static final com.moomoo.openapi.pb.GetGlobalState.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetGlobalState.Request(); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:GetGlobalState.Response) com.google.protobuf.MessageOrBuilder { /** *
     *RetType,返回结果
     * 
* * required int32 retType = 1 [default = -400]; */ boolean hasRetType(); /** *
     *RetType,返回结果
     * 
* * required int32 retType = 1 [default = -400]; */ int getRetType(); /** * optional string retMsg = 2; */ boolean hasRetMsg(); /** * optional string retMsg = 2; */ java.lang.String getRetMsg(); /** * optional string retMsg = 2; */ com.google.protobuf.ByteString getRetMsgBytes(); /** * optional int32 errCode = 3; */ boolean hasErrCode(); /** * optional int32 errCode = 3; */ int getErrCode(); /** * optional .GetGlobalState.S2C s2c = 4; */ boolean hasS2C(); /** * optional .GetGlobalState.S2C s2c = 4; */ com.moomoo.openapi.pb.GetGlobalState.S2C getS2C(); /** * optional .GetGlobalState.S2C s2c = 4; */ com.moomoo.openapi.pb.GetGlobalState.S2COrBuilder getS2COrBuilder(); } /** * Protobuf type {@code GetGlobalState.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:GetGlobalState.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.GetGlobalState.S2C.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = s2C_.toBuilder(); } s2C_ = input.readMessage(com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.internal_static_GetGlobalState_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.Response.class, com.moomoo.openapi.pb.GetGlobalState.Response.Builder.class); } private int bitField0_; public static final int RETTYPE_FIELD_NUMBER = 1; private int retType_; /** *
     *RetType,返回结果
     * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *RetType,返回结果
     * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } public static final int RETMSG_FIELD_NUMBER = 2; private volatile java.lang.Object retMsg_; /** * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } } /** * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERRCODE_FIELD_NUMBER = 3; private int errCode_; /** * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } public static final int S2C_FIELD_NUMBER = 4; private com.moomoo.openapi.pb.GetGlobalState.S2C s2C_; /** * optional .GetGlobalState.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .GetGlobalState.S2C s2c = 4; */ public com.moomoo.openapi.pb.GetGlobalState.S2C getS2C() { return s2C_ == null ? com.moomoo.openapi.pb.GetGlobalState.S2C.getDefaultInstance() : s2C_; } /** * optional .GetGlobalState.S2C s2c = 4; */ public com.moomoo.openapi.pb.GetGlobalState.S2COrBuilder getS2COrBuilder() { return s2C_ == null ? com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response)) { return super.equals(obj); } com.moomoo.openapi.pb.GetGlobalState.Response other = (com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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.GetGlobalState.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 GetGlobalState.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:GetGlobalState.Response) com.moomoo.openapi.pb.GetGlobalState.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.GetGlobalState.internal_static_GetGlobalState_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.GetGlobalState.Response.class, com.moomoo.openapi.pb.GetGlobalState.Response.Builder.class); } // Construct using com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.internal_static_GetGlobalState_Response_descriptor; } public com.moomoo.openapi.pb.GetGlobalState.Response getDefaultInstanceForType() { return com.moomoo.openapi.pb.GetGlobalState.Response.getDefaultInstance(); } public com.moomoo.openapi.pb.GetGlobalState.Response build() { com.moomoo.openapi.pb.GetGlobalState.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.GetGlobalState.Response buildPartial() { com.moomoo.openapi.pb.GetGlobalState.Response result = new com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response) { return mergeFrom((com.moomoo.openapi.pb.GetGlobalState.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.GetGlobalState.Response other) { if (other == com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.GetGlobalState.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int retType_ = -400; /** *
       *RetType,返回结果
       * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *RetType,返回结果
       * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } /** *
       *RetType,返回结果
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder setRetType(int value) { bitField0_ |= 0x00000001; retType_ = value; onChanged(); return this; } /** *
       *RetType,返回结果
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000001); retType_ = -400; onChanged(); return this; } private java.lang.Object retMsg_ = ""; /** * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string retMsg = 2; */ public Builder setRetMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } /** * optional string retMsg = 2; */ public Builder clearRetMsg() { bitField0_ = (bitField0_ & ~0x00000002); retMsg_ = getDefaultInstance().getRetMsg(); onChanged(); return this; } /** * optional string retMsg = 2; */ public Builder setRetMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } private int errCode_ ; /** * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } /** * optional int32 errCode = 3; */ public Builder setErrCode(int value) { bitField0_ |= 0x00000004; errCode_ = value; onChanged(); return this; } /** * optional int32 errCode = 3; */ public Builder clearErrCode() { bitField0_ = (bitField0_ & ~0x00000004); errCode_ = 0; onChanged(); return this; } private com.moomoo.openapi.pb.GetGlobalState.S2C s2C_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.GetGlobalState.S2C, com.moomoo.openapi.pb.GetGlobalState.S2C.Builder, com.moomoo.openapi.pb.GetGlobalState.S2COrBuilder> s2CBuilder_; /** * optional .GetGlobalState.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .GetGlobalState.S2C s2c = 4; */ public com.moomoo.openapi.pb.GetGlobalState.S2C getS2C() { if (s2CBuilder_ == null) { return s2C_ == null ? com.moomoo.openapi.pb.GetGlobalState.S2C.getDefaultInstance() : s2C_; } else { return s2CBuilder_.getMessage(); } } /** * optional .GetGlobalState.S2C s2c = 4; */ public Builder setS2C(com.moomoo.openapi.pb.GetGlobalState.S2C value) { if (s2CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } s2C_ = value; onChanged(); } else { s2CBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .GetGlobalState.S2C s2c = 4; */ public Builder setS2C( com.moomoo.openapi.pb.GetGlobalState.S2C.Builder builderForValue) { if (s2CBuilder_ == null) { s2C_ = builderForValue.build(); onChanged(); } else { s2CBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .GetGlobalState.S2C s2c = 4; */ public Builder mergeS2C(com.moomoo.openapi.pb.GetGlobalState.S2C value) { if (s2CBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && s2C_ != null && s2C_ != com.moomoo.openapi.pb.GetGlobalState.S2C.getDefaultInstance()) { s2C_ = com.moomoo.openapi.pb.GetGlobalState.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial(); } else { s2C_ = value; } onChanged(); } else { s2CBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .GetGlobalState.S2C s2c = 4; */ public Builder clearS2C() { if (s2CBuilder_ == null) { s2C_ = null; onChanged(); } else { s2CBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .GetGlobalState.S2C s2c = 4; */ public com.moomoo.openapi.pb.GetGlobalState.S2C.Builder getS2CBuilder() { bitField0_ |= 0x00000008; onChanged(); return getS2CFieldBuilder().getBuilder(); } /** * optional .GetGlobalState.S2C s2c = 4; */ public com.moomoo.openapi.pb.GetGlobalState.S2COrBuilder getS2COrBuilder() { if (s2CBuilder_ != null) { return s2CBuilder_.getMessageOrBuilder(); } else { return s2C_ == null ? com.moomoo.openapi.pb.GetGlobalState.S2C.getDefaultInstance() : s2C_; } } /** * optional .GetGlobalState.S2C s2c = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.GetGlobalState.S2C, com.moomoo.openapi.pb.GetGlobalState.S2C.Builder, com.moomoo.openapi.pb.GetGlobalState.S2COrBuilder> getS2CFieldBuilder() { if (s2CBuilder_ == null) { s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.GetGlobalState.S2C, com.moomoo.openapi.pb.GetGlobalState.S2C.Builder, com.moomoo.openapi.pb.GetGlobalState.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:GetGlobalState.Response) } // @@protoc_insertion_point(class_scope:GetGlobalState.Response) private static final com.moomoo.openapi.pb.GetGlobalState.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetGlobalState.Response(); } public static com.moomoo.openapi.pb.GetGlobalState.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.GetGlobalState.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_GetGlobalState_C2S_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GetGlobalState_C2S_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_GetGlobalState_S2C_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GetGlobalState_S2C_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_GetGlobalState_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GetGlobalState_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_GetGlobalState_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_GetGlobalState_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\024GetGlobalState.proto\022\016GetGlobalState\032\014" + "Common.proto\032\020Qot_Common.proto\"\025\n\003C2S\022\016\n" + "\006userID\030\001 \002(\004\"\212\003\n\003S2C\022\020\n\010marketHK\030\001 \002(\005\022" + "\020\n\010marketUS\030\002 \002(\005\022\020\n\010marketSH\030\003 \002(\005\022\020\n\010m" + "arketSZ\030\004 \002(\005\022\026\n\016marketHKFuture\030\005 \002(\005\022\026\n" + "\016marketUSFuture\030\017 \001(\005\022\026\n\016marketSGFuture\030" + "\021 \001(\005\022\026\n\016marketJPFuture\030\022 \001(\005\022\022\n\nqotLogi" + "ned\030\006 \002(\010\022\022\n\ntrdLogined\030\007 \002(\010\022\021\n\tserverV" + "er\030\010 \002(\005\022\025\n\rserverBuildNo\030\t \002(\005\022\014\n\004time\030" + "\n \002(\003\022\021\n\tlocalTime\030\013 \001(\001\022,\n\rprogramStatu" + "s\030\014 \001(\0132\025.Common.ProgramStatus\022\024\n\014qotSvr" + "IpAddr\030\r \001(\t\022\024\n\014trdSvrIpAddr\030\016 \001(\t\022\016\n\006co" + "nnID\030\020 \001(\004\"+\n\007Request\022 \n\003c2s\030\001 \002(\0132\023.Get" + "GlobalState.C2S\"d\n\010Response\022\025\n\007retType\030\001" + " \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errCode\030\003 " + "\001(\005\022 \n\003s2c\030\004 \001(\0132\023.GetGlobalState.S2CBG\n" + "\025com.moomoo.openapi.pbZ.github.com/futuo" + "pen/ftapi4go/pb/getglobalstate" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.moomoo.openapi.pb.Common.getDescriptor(), com.moomoo.openapi.pb.QotCommon.getDescriptor(), }, assigner); internal_static_GetGlobalState_C2S_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_GetGlobalState_C2S_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_GetGlobalState_C2S_descriptor, new java.lang.String[] { "UserID", }); internal_static_GetGlobalState_S2C_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_GetGlobalState_S2C_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_GetGlobalState_S2C_descriptor, new java.lang.String[] { "MarketHK", "MarketUS", "MarketSH", "MarketSZ", "MarketHKFuture", "MarketUSFuture", "MarketSGFuture", "MarketJPFuture", "QotLogined", "TrdLogined", "ServerVer", "ServerBuildNo", "Time", "LocalTime", "ProgramStatus", "QotSvrIpAddr", "TrdSvrIpAddr", "ConnID", }); internal_static_GetGlobalState_Request_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_GetGlobalState_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_GetGlobalState_Request_descriptor, new java.lang.String[] { "C2S", }); internal_static_GetGlobalState_Response_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_GetGlobalState_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_GetGlobalState_Response_descriptor, new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", }); com.moomoo.openapi.pb.Common.getDescriptor(); com.moomoo.openapi.pb.QotCommon.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy