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

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

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

package com.moomoo.openapi.pb;

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

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

    /**
     * 
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ boolean hasHeader(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader(); /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder(); /** *
     *成交结构
     * 
* * required .Trd_Common.OrderFill orderFill = 2; */ boolean hasOrderFill(); /** *
     *成交结构
     * 
* * required .Trd_Common.OrderFill orderFill = 2; */ com.moomoo.openapi.pb.TrdCommon.OrderFill getOrderFill(); /** *
     *成交结构
     * 
* * required .Trd_Common.OrderFill orderFill = 2; */ com.moomoo.openapi.pb.TrdCommon.OrderFillOrBuilder getOrderFillOrBuilder(); } /** * Protobuf type {@code Trd_UpdateOrderFill.S2C} */ public static final class S2C extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Trd_UpdateOrderFill.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() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private S2C( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(com.moomoo.openapi.pb.TrdCommon.TrdHeader.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.moomoo.openapi.pb.TrdCommon.OrderFill.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = orderFill_.toBuilder(); } orderFill_ = input.readMessage(com.moomoo.openapi.pb.TrdCommon.OrderFill.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(orderFill_); orderFill_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; 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.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.class, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder.class); } private int bitField0_; public static final int HEADER_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_; /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } /** *
     *交易公共参数头
     * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } public static final int ORDERFILL_FIELD_NUMBER = 2; private com.moomoo.openapi.pb.TrdCommon.OrderFill orderFill_; /** *
     *成交结构
     * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public boolean hasOrderFill() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *成交结构
     * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public com.moomoo.openapi.pb.TrdCommon.OrderFill getOrderFill() { return orderFill_ == null ? com.moomoo.openapi.pb.TrdCommon.OrderFill.getDefaultInstance() : orderFill_; } /** *
     *成交结构
     * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public com.moomoo.openapi.pb.TrdCommon.OrderFillOrBuilder getOrderFillOrBuilder() { return orderFill_ == null ? com.moomoo.openapi.pb.TrdCommon.OrderFill.getDefaultInstance() : orderFill_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasHeader()) { memoizedIsInitialized = 0; return false; } if (!hasOrderFill()) { memoizedIsInitialized = 0; return false; } if (!getHeader().isInitialized()) { memoizedIsInitialized = 0; return false; } if (!getOrderFill().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getHeader()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, getOrderFill()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHeader()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOrderFill()); } 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.TrdUpdateOrderFill.S2C)) { return super.equals(obj); } com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C other = (com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C) obj; boolean result = true; result = result && (hasHeader() == other.hasHeader()); if (hasHeader()) { result = result && getHeader() .equals(other.getHeader()); } result = result && (hasOrderFill() == other.hasOrderFill()); if (hasOrderFill()) { result = result && getOrderFill() .equals(other.getOrderFill()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } if (hasOrderFill()) { hash = (37 * hash) + ORDERFILL_FIELD_NUMBER; hash = (53 * hash) + getOrderFill().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.S2C parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.S2C parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.S2C parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.S2C parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.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.TrdUpdateOrderFill.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.TrdUpdateOrderFill.S2C prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Trd_UpdateOrderFill.S2C} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Trd_UpdateOrderFill.S2C) com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.class, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder.class); } // Construct using com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getHeaderFieldBuilder(); getOrderFillFieldBuilder(); } } public Builder clear() { super.clear(); if (headerBuilder_ == null) { header_ = null; } else { headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (orderFillBuilder_ == null) { orderFill_ = null; } else { orderFillBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_S2C_descriptor; } public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C getDefaultInstanceForType() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.getDefaultInstance(); } public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C build() { com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C buildPartial() { com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C result = new com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (orderFillBuilder_ == null) { result.orderFill_ = orderFill_; } else { result.orderFill_ = orderFillBuilder_.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.TrdUpdateOrderFill.S2C) { return mergeFrom((com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C other) { if (other == com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.getDefaultInstance()) return this; if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.hasOrderFill()) { mergeOrderFill(other.getOrderFill()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasHeader()) { return false; } if (!hasOrderFill()) { return false; } if (!getHeader().isInitialized()) { return false; } if (!getOrderFill().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.TrdUpdateOrderFill.S2C parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> headerBuilder_; /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public boolean hasHeader() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() { if (headerBuilder_ == null) { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder setHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder setHeader( com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder mergeHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) { if (headerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && header_ != null && header_ != com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance()) { header_ = com.moomoo.openapi.pb.TrdCommon.TrdHeader.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { headerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder getHeaderBuilder() { bitField0_ |= 0x00000001; onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_; } } /** *
       *交易公共参数头
       * 
* * required .Trd_Common.TrdHeader header = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private com.moomoo.openapi.pb.TrdCommon.OrderFill orderFill_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.OrderFill, com.moomoo.openapi.pb.TrdCommon.OrderFill.Builder, com.moomoo.openapi.pb.TrdCommon.OrderFillOrBuilder> orderFillBuilder_; /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public boolean hasOrderFill() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public com.moomoo.openapi.pb.TrdCommon.OrderFill getOrderFill() { if (orderFillBuilder_ == null) { return orderFill_ == null ? com.moomoo.openapi.pb.TrdCommon.OrderFill.getDefaultInstance() : orderFill_; } else { return orderFillBuilder_.getMessage(); } } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public Builder setOrderFill(com.moomoo.openapi.pb.TrdCommon.OrderFill value) { if (orderFillBuilder_ == null) { if (value == null) { throw new NullPointerException(); } orderFill_ = value; onChanged(); } else { orderFillBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public Builder setOrderFill( com.moomoo.openapi.pb.TrdCommon.OrderFill.Builder builderForValue) { if (orderFillBuilder_ == null) { orderFill_ = builderForValue.build(); onChanged(); } else { orderFillBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public Builder mergeOrderFill(com.moomoo.openapi.pb.TrdCommon.OrderFill value) { if (orderFillBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && orderFill_ != null && orderFill_ != com.moomoo.openapi.pb.TrdCommon.OrderFill.getDefaultInstance()) { orderFill_ = com.moomoo.openapi.pb.TrdCommon.OrderFill.newBuilder(orderFill_).mergeFrom(value).buildPartial(); } else { orderFill_ = value; } onChanged(); } else { orderFillBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public Builder clearOrderFill() { if (orderFillBuilder_ == null) { orderFill_ = null; onChanged(); } else { orderFillBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public com.moomoo.openapi.pb.TrdCommon.OrderFill.Builder getOrderFillBuilder() { bitField0_ |= 0x00000002; onChanged(); return getOrderFillFieldBuilder().getBuilder(); } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ public com.moomoo.openapi.pb.TrdCommon.OrderFillOrBuilder getOrderFillOrBuilder() { if (orderFillBuilder_ != null) { return orderFillBuilder_.getMessageOrBuilder(); } else { return orderFill_ == null ? com.moomoo.openapi.pb.TrdCommon.OrderFill.getDefaultInstance() : orderFill_; } } /** *
       *成交结构
       * 
* * required .Trd_Common.OrderFill orderFill = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.OrderFill, com.moomoo.openapi.pb.TrdCommon.OrderFill.Builder, com.moomoo.openapi.pb.TrdCommon.OrderFillOrBuilder> getOrderFillFieldBuilder() { if (orderFillBuilder_ == null) { orderFillBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdCommon.OrderFill, com.moomoo.openapi.pb.TrdCommon.OrderFill.Builder, com.moomoo.openapi.pb.TrdCommon.OrderFillOrBuilder>( getOrderFill(), getParentForChildren(), isClean()); orderFill_ = null; } return orderFillBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Trd_UpdateOrderFill.S2C) } // @@protoc_insertion_point(class_scope:Trd_UpdateOrderFill.S2C) private static final com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C(); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.S2C getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Trd_UpdateOrderFill.Response) com.google.protobuf.MessageOrBuilder { /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ boolean hasRetType(); /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ int getRetType(); /** * optional string retMsg = 2; */ boolean hasRetMsg(); /** * optional string retMsg = 2; */ java.lang.String getRetMsg(); /** * optional string retMsg = 2; */ com.google.protobuf.ByteString getRetMsgBytes(); /** * optional int32 errCode = 3; */ boolean hasErrCode(); /** * optional int32 errCode = 3; */ int getErrCode(); /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ boolean hasS2C(); /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C getS2C(); /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder getS2COrBuilder(); } /** * Protobuf type {@code Trd_UpdateOrderFill.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Trd_UpdateOrderFill.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.TrdUpdateOrderFill.S2C.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = s2C_.toBuilder(); } s2C_ = input.readMessage(com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdUpdateOrderFill.Response.class, com.moomoo.openapi.pb.TrdUpdateOrderFill.Response.Builder.class); } private int bitField0_; public static final int RETTYPE_FIELD_NUMBER = 1; private int retType_; /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *以下3个字段每条协议都有,注释说明在InitConnect.proto中
     * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } public static final int RETMSG_FIELD_NUMBER = 2; private volatile java.lang.Object retMsg_; /** * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } } /** * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ERRCODE_FIELD_NUMBER = 3; private int errCode_; /** * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } public static final int S2C_FIELD_NUMBER = 4; private com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C s2C_; /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C getS2C() { return s2C_ == null ? com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.getDefaultInstance() : s2C_; } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder getS2COrBuilder() { return s2C_ == null ? com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response)) { return super.equals(obj); } com.moomoo.openapi.pb.TrdUpdateOrderFill.Response other = (com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.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.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Trd_UpdateOrderFill.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Trd_UpdateOrderFill.Response) com.moomoo.openapi.pb.TrdUpdateOrderFill.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.TrdUpdateOrderFill.Response.class, com.moomoo.openapi.pb.TrdUpdateOrderFill.Response.Builder.class); } // Construct using com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.internal_static_Trd_UpdateOrderFill_Response_descriptor; } public com.moomoo.openapi.pb.TrdUpdateOrderFill.Response getDefaultInstanceForType() { return com.moomoo.openapi.pb.TrdUpdateOrderFill.Response.getDefaultInstance(); } public com.moomoo.openapi.pb.TrdUpdateOrderFill.Response build() { com.moomoo.openapi.pb.TrdUpdateOrderFill.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.TrdUpdateOrderFill.Response buildPartial() { com.moomoo.openapi.pb.TrdUpdateOrderFill.Response result = new com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response) { return mergeFrom((com.moomoo.openapi.pb.TrdUpdateOrderFill.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.TrdUpdateOrderFill.Response other) { if (other == com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.TrdUpdateOrderFill.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int retType_ = -400; /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public boolean hasRetType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public int getRetType() { return retType_; } /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder setRetType(int value) { bitField0_ |= 0x00000001; retType_ = value; onChanged(); return this; } /** *
       *以下3个字段每条协议都有,注释说明在InitConnect.proto中
       * 
* * required int32 retType = 1 [default = -400]; */ public Builder clearRetType() { bitField0_ = (bitField0_ & ~0x00000001); retType_ = -400; onChanged(); return this; } private java.lang.Object retMsg_ = ""; /** * optional string retMsg = 2; */ public boolean hasRetMsg() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string retMsg = 2; */ public java.lang.String getRetMsg() { java.lang.Object ref = retMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { retMsg_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string retMsg = 2; */ public com.google.protobuf.ByteString getRetMsgBytes() { java.lang.Object ref = retMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); retMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string retMsg = 2; */ public Builder setRetMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } /** * optional string retMsg = 2; */ public Builder clearRetMsg() { bitField0_ = (bitField0_ & ~0x00000002); retMsg_ = getDefaultInstance().getRetMsg(); onChanged(); return this; } /** * optional string retMsg = 2; */ public Builder setRetMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; retMsg_ = value; onChanged(); return this; } private int errCode_ ; /** * optional int32 errCode = 3; */ public boolean hasErrCode() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional int32 errCode = 3; */ public int getErrCode() { return errCode_; } /** * optional int32 errCode = 3; */ public Builder setErrCode(int value) { bitField0_ |= 0x00000004; errCode_ = value; onChanged(); return this; } /** * optional int32 errCode = 3; */ public Builder clearErrCode() { bitField0_ = (bitField0_ & ~0x00000004); errCode_ = 0; onChanged(); return this; } private com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C s2C_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder> s2CBuilder_; /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C getS2C() { if (s2CBuilder_ == null) { return s2C_ == null ? com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.getDefaultInstance() : s2C_; } else { return s2CBuilder_.getMessage(); } } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public Builder setS2C(com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C value) { if (s2CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } s2C_ = value; onChanged(); } else { s2CBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public Builder setS2C( com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder builderForValue) { if (s2CBuilder_ == null) { s2C_ = builderForValue.build(); onChanged(); } else { s2CBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public Builder mergeS2C(com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C value) { if (s2CBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && s2C_ != null && s2C_ != com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.getDefaultInstance()) { s2C_ = com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial(); } else { s2C_ = value; } onChanged(); } else { s2CBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public Builder clearS2C() { if (s2CBuilder_ == null) { s2C_ = null; onChanged(); } else { s2CBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder getS2CBuilder() { bitField0_ |= 0x00000008; onChanged(); return getS2CFieldBuilder().getBuilder(); } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ public com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder getS2COrBuilder() { if (s2CBuilder_ != null) { return s2CBuilder_.getMessageOrBuilder(); } else { return s2C_ == null ? com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.getDefaultInstance() : s2C_; } } /** * optional .Trd_UpdateOrderFill.S2C s2c = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder> getS2CFieldBuilder() { if (s2CBuilder_ == null) { s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2C.Builder, com.moomoo.openapi.pb.TrdUpdateOrderFill.S2COrBuilder>( getS2C(), getParentForChildren(), isClean()); s2C_ = null; } return s2CBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Trd_UpdateOrderFill.Response) } // @@protoc_insertion_point(class_scope:Trd_UpdateOrderFill.Response) private static final com.moomoo.openapi.pb.TrdUpdateOrderFill.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdUpdateOrderFill.Response(); } public static com.moomoo.openapi.pb.TrdUpdateOrderFill.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.TrdUpdateOrderFill.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Trd_UpdateOrderFill_S2C_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Trd_UpdateOrderFill_S2C_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Trd_UpdateOrderFill_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Trd_UpdateOrderFill_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\031Trd_UpdateOrderFill.proto\022\023Trd_UpdateO" + "rderFill\032\014Common.proto\032\020Trd_Common.proto" + "\"V\n\003S2C\022%\n\006header\030\001 \002(\0132\025.Trd_Common.Trd" + "Header\022(\n\torderFill\030\002 \002(\0132\025.Trd_Common.O" + "rderFill\"i\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\003" + "s2c\030\004 \001(\0132\030.Trd_UpdateOrderFill.S2CBK\n\025c" + "om.moomoo.openapi.pbZ2github.com/futuope" + "n/ftapi4go/pb/trdupdateorderfill" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.moomoo.openapi.pb.Common.getDescriptor(), com.moomoo.openapi.pb.TrdCommon.getDescriptor(), }, assigner); internal_static_Trd_UpdateOrderFill_S2C_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Trd_UpdateOrderFill_S2C_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Trd_UpdateOrderFill_S2C_descriptor, new java.lang.String[] { "Header", "OrderFill", }); internal_static_Trd_UpdateOrderFill_Response_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Trd_UpdateOrderFill_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Trd_UpdateOrderFill_Response_descriptor, new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", }); com.moomoo.openapi.pb.Common.getDescriptor(); com.moomoo.openapi.pb.TrdCommon.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy