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

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

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

package com.moomoo.openapi.pb;

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

    /**
     * 
     *期权标的股,目前仅支持传入港美正股以及恒指国指
     * 
* * required .Qot_Common.Security owner = 1; */ boolean hasOwner(); /** *
     *期权标的股,目前仅支持传入港美正股以及恒指国指
     * 
* * required .Qot_Common.Security owner = 1; */ com.moomoo.openapi.pb.QotCommon.Security getOwner(); /** *
     *期权标的股,目前仅支持传入港美正股以及恒指国指
     * 
* * required .Qot_Common.Security owner = 1; */ com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getOwnerOrBuilder(); /** *
     *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
     * 
* * optional int32 indexOptionType = 2; */ boolean hasIndexOptionType(); /** *
     *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
     * 
* * optional int32 indexOptionType = 2; */ int getIndexOptionType(); } /** * Protobuf type {@code Qot_GetOptionExpirationDate.C2S} */ public static final class C2S extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Qot_GetOptionExpirationDate.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() { indexOptionType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private C2S( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { com.moomoo.openapi.pb.QotCommon.Security.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = owner_.toBuilder(); } owner_ = input.readMessage(com.moomoo.openapi.pb.QotCommon.Security.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(owner_); owner_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; indexOptionType_ = 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.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder.class); } private int bitField0_; public static final int OWNER_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.QotCommon.Security owner_; /** *
     *期权标的股,目前仅支持传入港美正股以及恒指国指
     * 
* * required .Qot_Common.Security owner = 1; */ public boolean hasOwner() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *期权标的股,目前仅支持传入港美正股以及恒指国指
     * 
* * required .Qot_Common.Security owner = 1; */ public com.moomoo.openapi.pb.QotCommon.Security getOwner() { return owner_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : owner_; } /** *
     *期权标的股,目前仅支持传入港美正股以及恒指国指
     * 
* * required .Qot_Common.Security owner = 1; */ public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getOwnerOrBuilder() { return owner_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : owner_; } public static final int INDEXOPTIONTYPE_FIELD_NUMBER = 2; private int indexOptionType_; /** *
     *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
     * 
* * optional int32 indexOptionType = 2; */ public boolean hasIndexOptionType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
     * 
* * optional int32 indexOptionType = 2; */ public int getIndexOptionType() { return indexOptionType_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasOwner()) { memoizedIsInitialized = 0; return false; } if (!getOwner().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, getOwner()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, indexOptionType_); } 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, getOwner()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, indexOptionType_); } 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.QotGetOptionExpirationDate.C2S)) { return super.equals(obj); } com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S other = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S) obj; boolean result = true; result = result && (hasOwner() == other.hasOwner()); if (hasOwner()) { result = result && getOwner() .equals(other.getOwner()); } result = result && (hasIndexOptionType() == other.hasIndexOptionType()); if (hasIndexOptionType()) { result = result && (getIndexOptionType() == other.getIndexOptionType()); } 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 (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner().hashCode(); } if (hasIndexOptionType()) { hash = (37 * hash) + INDEXOPTIONTYPE_FIELD_NUMBER; hash = (53 * hash) + getIndexOptionType(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.C2S parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.C2S parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.C2S parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.C2S parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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 Qot_GetOptionExpirationDate.C2S} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Qot_GetOptionExpirationDate.C2S) com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2SOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_C2S_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_C2S_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder.class); } // Construct using com.moomoo.openapi.pb.QotGetOptionExpirationDate.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) { getOwnerFieldBuilder(); } } public Builder clear() { super.clear(); if (ownerBuilder_ == null) { owner_ = null; } else { ownerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); indexOptionType_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_C2S_descriptor; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S getDefaultInstanceForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.getDefaultInstance(); } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S build() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S buildPartial() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S result = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (ownerBuilder_ == null) { result.owner_ = owner_; } else { result.owner_ = ownerBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.indexOptionType_ = indexOptionType_; 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.QotGetOptionExpirationDate.C2S) { return mergeFrom((com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S other) { if (other == com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.getDefaultInstance()) return this; if (other.hasOwner()) { mergeOwner(other.getOwner()); } if (other.hasIndexOptionType()) { setIndexOptionType(other.getIndexOptionType()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasOwner()) { return false; } if (!getOwner().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.QotGetOptionExpirationDate.C2S parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.QotCommon.Security owner_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder> ownerBuilder_; /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public boolean hasOwner() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public com.moomoo.openapi.pb.QotCommon.Security getOwner() { if (ownerBuilder_ == null) { return owner_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : owner_; } else { return ownerBuilder_.getMessage(); } } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public Builder setOwner(com.moomoo.openapi.pb.QotCommon.Security value) { if (ownerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } owner_ = value; onChanged(); } else { ownerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public Builder setOwner( com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) { if (ownerBuilder_ == null) { owner_ = builderForValue.build(); onChanged(); } else { ownerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public Builder mergeOwner(com.moomoo.openapi.pb.QotCommon.Security value) { if (ownerBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && owner_ != null && owner_ != com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance()) { owner_ = com.moomoo.openapi.pb.QotCommon.Security.newBuilder(owner_).mergeFrom(value).buildPartial(); } else { owner_ = value; } onChanged(); } else { ownerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public Builder clearOwner() { if (ownerBuilder_ == null) { owner_ = null; onChanged(); } else { ownerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public com.moomoo.openapi.pb.QotCommon.Security.Builder getOwnerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOwnerFieldBuilder().getBuilder(); } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getOwnerOrBuilder() { if (ownerBuilder_ != null) { return ownerBuilder_.getMessageOrBuilder(); } else { return owner_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : owner_; } } /** *
       *期权标的股,目前仅支持传入港美正股以及恒指国指
       * 
* * required .Qot_Common.Security owner = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder> getOwnerFieldBuilder() { if (ownerBuilder_ == null) { ownerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>( getOwner(), getParentForChildren(), isClean()); owner_ = null; } return ownerBuilder_; } private int indexOptionType_ ; /** *
       *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
       * 
* * optional int32 indexOptionType = 2; */ public boolean hasIndexOptionType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
       * 
* * optional int32 indexOptionType = 2; */ public int getIndexOptionType() { return indexOptionType_; } /** *
       *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
       * 
* * optional int32 indexOptionType = 2; */ public Builder setIndexOptionType(int value) { bitField0_ |= 0x00000002; indexOptionType_ = value; onChanged(); return this; } /** *
       *Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
       * 
* * optional int32 indexOptionType = 2; */ public Builder clearIndexOptionType() { bitField0_ = (bitField0_ & ~0x00000002); indexOptionType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Qot_GetOptionExpirationDate.C2S) } // @@protoc_insertion_point(class_scope:Qot_GetOptionExpirationDate.C2S) private static final com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S(); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.C2S getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface OptionExpirationDateOrBuilder extends // @@protoc_insertion_point(interface_extends:Qot_GetOptionExpirationDate.OptionExpirationDate) com.google.protobuf.MessageOrBuilder { /** *
     *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
     * 
* * optional string strikeTime = 1; */ boolean hasStrikeTime(); /** *
     *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
     * 
* * optional string strikeTime = 1; */ java.lang.String getStrikeTime(); /** *
     *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
     * 
* * optional string strikeTime = 1; */ com.google.protobuf.ByteString getStrikeTimeBytes(); /** *
     *行权日时间戳
     * 
* * optional double strikeTimestamp = 2; */ boolean hasStrikeTimestamp(); /** *
     *行权日时间戳
     * 
* * optional double strikeTimestamp = 2; */ double getStrikeTimestamp(); /** *
     *距离到期日天数,负数表示已过期
     * 
* * required int32 optionExpiryDateDistance = 3; */ boolean hasOptionExpiryDateDistance(); /** *
     *距离到期日天数,负数表示已过期
     * 
* * required int32 optionExpiryDateDistance = 3; */ int getOptionExpiryDateDistance(); /** *
     *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
     * 
* * optional int32 cycle = 4; */ boolean hasCycle(); /** *
     *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
     * 
* * optional int32 cycle = 4; */ int getCycle(); } /** * Protobuf type {@code Qot_GetOptionExpirationDate.OptionExpirationDate} */ public static final class OptionExpirationDate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Qot_GetOptionExpirationDate.OptionExpirationDate) OptionExpirationDateOrBuilder { private static final long serialVersionUID = 0L; // Use OptionExpirationDate.newBuilder() to construct. private OptionExpirationDate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OptionExpirationDate() { strikeTime_ = ""; strikeTimestamp_ = 0D; optionExpiryDateDistance_ = 0; cycle_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OptionExpirationDate( 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.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; strikeTime_ = bs; break; } case 17: { bitField0_ |= 0x00000002; strikeTimestamp_ = input.readDouble(); break; } case 24: { bitField0_ |= 0x00000004; optionExpiryDateDistance_ = input.readInt32(); break; } case 32: { bitField0_ |= 0x00000008; cycle_ = 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.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder.class); } private int bitField0_; public static final int STRIKETIME_FIELD_NUMBER = 1; private volatile java.lang.Object strikeTime_; /** *
     *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
     * 
* * optional string strikeTime = 1; */ public boolean hasStrikeTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
     * 
* * optional string strikeTime = 1; */ public java.lang.String getStrikeTime() { java.lang.Object ref = strikeTime_; 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()) { strikeTime_ = s; } return s; } } /** *
     *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
     * 
* * optional string strikeTime = 1; */ public com.google.protobuf.ByteString getStrikeTimeBytes() { java.lang.Object ref = strikeTime_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strikeTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STRIKETIMESTAMP_FIELD_NUMBER = 2; private double strikeTimestamp_; /** *
     *行权日时间戳
     * 
* * optional double strikeTimestamp = 2; */ public boolean hasStrikeTimestamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     *行权日时间戳
     * 
* * optional double strikeTimestamp = 2; */ public double getStrikeTimestamp() { return strikeTimestamp_; } public static final int OPTIONEXPIRYDATEDISTANCE_FIELD_NUMBER = 3; private int optionExpiryDateDistance_; /** *
     *距离到期日天数,负数表示已过期
     * 
* * required int32 optionExpiryDateDistance = 3; */ public boolean hasOptionExpiryDateDistance() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     *距离到期日天数,负数表示已过期
     * 
* * required int32 optionExpiryDateDistance = 3; */ public int getOptionExpiryDateDistance() { return optionExpiryDateDistance_; } public static final int CYCLE_FIELD_NUMBER = 4; private int cycle_; /** *
     *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
     * 
* * optional int32 cycle = 4; */ public boolean hasCycle() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
     * 
* * optional int32 cycle = 4; */ public int getCycle() { return cycle_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasOptionExpiryDateDistance()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strikeTime_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeDouble(2, strikeTimestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, optionExpiryDateDistance_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, cycle_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, strikeTime_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, strikeTimestamp_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, optionExpiryDateDistance_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, cycle_); } 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.QotGetOptionExpirationDate.OptionExpirationDate)) { return super.equals(obj); } com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate other = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate) obj; boolean result = true; result = result && (hasStrikeTime() == other.hasStrikeTime()); if (hasStrikeTime()) { result = result && getStrikeTime() .equals(other.getStrikeTime()); } result = result && (hasStrikeTimestamp() == other.hasStrikeTimestamp()); if (hasStrikeTimestamp()) { result = result && ( java.lang.Double.doubleToLongBits(getStrikeTimestamp()) == java.lang.Double.doubleToLongBits( other.getStrikeTimestamp())); } result = result && (hasOptionExpiryDateDistance() == other.hasOptionExpiryDateDistance()); if (hasOptionExpiryDateDistance()) { result = result && (getOptionExpiryDateDistance() == other.getOptionExpiryDateDistance()); } result = result && (hasCycle() == other.hasCycle()); if (hasCycle()) { result = result && (getCycle() == other.getCycle()); } 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 (hasStrikeTime()) { hash = (37 * hash) + STRIKETIME_FIELD_NUMBER; hash = (53 * hash) + getStrikeTime().hashCode(); } if (hasStrikeTimestamp()) { hash = (37 * hash) + STRIKETIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getStrikeTimestamp())); } if (hasOptionExpiryDateDistance()) { hash = (37 * hash) + OPTIONEXPIRYDATEDISTANCE_FIELD_NUMBER; hash = (53 * hash) + getOptionExpiryDateDistance(); } if (hasCycle()) { hash = (37 * hash) + CYCLE_FIELD_NUMBER; hash = (53 * hash) + getCycle(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate 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.QotGetOptionExpirationDate.OptionExpirationDate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate 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.QotGetOptionExpirationDate.OptionExpirationDate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate 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.QotGetOptionExpirationDate.OptionExpirationDate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate 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.QotGetOptionExpirationDate.OptionExpirationDate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate 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.QotGetOptionExpirationDate.OptionExpirationDate 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 Qot_GetOptionExpirationDate.OptionExpirationDate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Qot_GetOptionExpirationDate.OptionExpirationDate) com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder.class); } // Construct using com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.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(); strikeTime_ = ""; bitField0_ = (bitField0_ & ~0x00000001); strikeTimestamp_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); optionExpiryDateDistance_ = 0; bitField0_ = (bitField0_ & ~0x00000004); cycle_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_descriptor; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate getDefaultInstanceForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.getDefaultInstance(); } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate build() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate buildPartial() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate result = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.strikeTime_ = strikeTime_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.strikeTimestamp_ = strikeTimestamp_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.optionExpiryDateDistance_ = optionExpiryDateDistance_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.cycle_ = cycle_; 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.QotGetOptionExpirationDate.OptionExpirationDate) { return mergeFrom((com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate other) { if (other == com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.getDefaultInstance()) return this; if (other.hasStrikeTime()) { bitField0_ |= 0x00000001; strikeTime_ = other.strikeTime_; onChanged(); } if (other.hasStrikeTimestamp()) { setStrikeTimestamp(other.getStrikeTimestamp()); } if (other.hasOptionExpiryDateDistance()) { setOptionExpiryDateDistance(other.getOptionExpiryDateDistance()); } if (other.hasCycle()) { setCycle(other.getCycle()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { if (!hasOptionExpiryDateDistance()) { 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.QotGetOptionExpirationDate.OptionExpirationDate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object strikeTime_ = ""; /** *
       *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
       * 
* * optional string strikeTime = 1; */ public boolean hasStrikeTime() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
       * 
* * optional string strikeTime = 1; */ public java.lang.String getStrikeTime() { java.lang.Object ref = strikeTime_; 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()) { strikeTime_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
       * 
* * optional string strikeTime = 1; */ public com.google.protobuf.ByteString getStrikeTimeBytes() { java.lang.Object ref = strikeTime_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); strikeTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
       * 
* * optional string strikeTime = 1; */ public Builder setStrikeTime( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; strikeTime_ = value; onChanged(); return this; } /** *
       *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
       * 
* * optional string strikeTime = 1; */ public Builder clearStrikeTime() { bitField0_ = (bitField0_ & ~0x00000001); strikeTime_ = getDefaultInstance().getStrikeTime(); onChanged(); return this; } /** *
       *期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
       * 
* * optional string strikeTime = 1; */ public Builder setStrikeTimeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; strikeTime_ = value; onChanged(); return this; } private double strikeTimestamp_ ; /** *
       *行权日时间戳
       * 
* * optional double strikeTimestamp = 2; */ public boolean hasStrikeTimestamp() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       *行权日时间戳
       * 
* * optional double strikeTimestamp = 2; */ public double getStrikeTimestamp() { return strikeTimestamp_; } /** *
       *行权日时间戳
       * 
* * optional double strikeTimestamp = 2; */ public Builder setStrikeTimestamp(double value) { bitField0_ |= 0x00000002; strikeTimestamp_ = value; onChanged(); return this; } /** *
       *行权日时间戳
       * 
* * optional double strikeTimestamp = 2; */ public Builder clearStrikeTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); strikeTimestamp_ = 0D; onChanged(); return this; } private int optionExpiryDateDistance_ ; /** *
       *距离到期日天数,负数表示已过期
       * 
* * required int32 optionExpiryDateDistance = 3; */ public boolean hasOptionExpiryDateDistance() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       *距离到期日天数,负数表示已过期
       * 
* * required int32 optionExpiryDateDistance = 3; */ public int getOptionExpiryDateDistance() { return optionExpiryDateDistance_; } /** *
       *距离到期日天数,负数表示已过期
       * 
* * required int32 optionExpiryDateDistance = 3; */ public Builder setOptionExpiryDateDistance(int value) { bitField0_ |= 0x00000004; optionExpiryDateDistance_ = value; onChanged(); return this; } /** *
       *距离到期日天数,负数表示已过期
       * 
* * required int32 optionExpiryDateDistance = 3; */ public Builder clearOptionExpiryDateDistance() { bitField0_ = (bitField0_ & ~0x00000004); optionExpiryDateDistance_ = 0; onChanged(); return this; } private int cycle_ ; /** *
       *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
       * 
* * optional int32 cycle = 4; */ public boolean hasCycle() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
       * 
* * optional int32 cycle = 4; */ public int getCycle() { return cycle_; } /** *
       *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
       * 
* * optional int32 cycle = 4; */ public Builder setCycle(int value) { bitField0_ |= 0x00000008; cycle_ = value; onChanged(); return this; } /** *
       *Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
       * 
* * optional int32 cycle = 4; */ public Builder clearCycle() { bitField0_ = (bitField0_ & ~0x00000008); cycle_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Qot_GetOptionExpirationDate.OptionExpirationDate) } // @@protoc_insertion_point(class_scope:Qot_GetOptionExpirationDate.OptionExpirationDate) private static final com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate(); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public OptionExpirationDate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OptionExpirationDate(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.QotGetOptionExpirationDate.OptionExpirationDate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface S2COrBuilder extends // @@protoc_insertion_point(interface_extends:Qot_GetOptionExpirationDate.S2C) com.google.protobuf.MessageOrBuilder { /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ java.util.List getDateListList(); /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate getDateList(int index); /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ int getDateListCount(); /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ java.util.List getDateListOrBuilderList(); /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder getDateListOrBuilder( int index); } /** * Protobuf type {@code Qot_GetOptionExpirationDate.S2C} */ public static final class S2C extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Qot_GetOptionExpirationDate.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() { dateList_ = java.util.Collections.emptyList(); } @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: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dateList_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } dateList_.add( input.readMessage(com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { dateList_ = java.util.Collections.unmodifiableList(dateList_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder.class); } public static final int DATELIST_FIELD_NUMBER = 1; private java.util.List dateList_; /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public java.util.List getDateListList() { return dateList_; } /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public java.util.List getDateListOrBuilderList() { return dateList_; } /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public int getDateListCount() { return dateList_.size(); } /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate getDateList(int index) { return dateList_.get(index); } /** *
     *期权链行权日
     * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder getDateListOrBuilder( int index) { return dateList_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getDateListCount(); i++) { if (!getDateList(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < dateList_.size(); i++) { output.writeMessage(1, dateList_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < dateList_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, dateList_.get(i)); } 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.QotGetOptionExpirationDate.S2C)) { return super.equals(obj); } com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C other = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C) obj; boolean result = true; result = result && getDateListList() .equals(other.getDateListList()); 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 (getDateListCount() > 0) { hash = (37 * hash) + DATELIST_FIELD_NUMBER; hash = (53 * hash) + getDateListList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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 Qot_GetOptionExpirationDate.S2C} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Qot_GetOptionExpirationDate.S2C) com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2COrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_S2C_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_S2C_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder.class); } // Construct using com.moomoo.openapi.pb.QotGetOptionExpirationDate.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) { getDateListFieldBuilder(); } } public Builder clear() { super.clear(); if (dateListBuilder_ == null) { dateList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { dateListBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_S2C_descriptor; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C getDefaultInstanceForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.getDefaultInstance(); } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C build() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C buildPartial() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C result = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C(this); int from_bitField0_ = bitField0_; if (dateListBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { dateList_ = java.util.Collections.unmodifiableList(dateList_); bitField0_ = (bitField0_ & ~0x00000001); } result.dateList_ = dateList_; } else { result.dateList_ = dateListBuilder_.build(); } 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.QotGetOptionExpirationDate.S2C) { return mergeFrom((com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C other) { if (other == com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.getDefaultInstance()) return this; if (dateListBuilder_ == null) { if (!other.dateList_.isEmpty()) { if (dateList_.isEmpty()) { dateList_ = other.dateList_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDateListIsMutable(); dateList_.addAll(other.dateList_); } onChanged(); } } else { if (!other.dateList_.isEmpty()) { if (dateListBuilder_.isEmpty()) { dateListBuilder_.dispose(); dateListBuilder_ = null; dateList_ = other.dateList_; bitField0_ = (bitField0_ & ~0x00000001); dateListBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDateListFieldBuilder() : null; } else { dateListBuilder_.addAllMessages(other.dateList_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { for (int i = 0; i < getDateListCount(); i++) { if (!getDateList(i).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.QotGetOptionExpirationDate.S2C parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List dateList_ = java.util.Collections.emptyList(); private void ensureDateListIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { dateList_ = new java.util.ArrayList(dateList_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder> dateListBuilder_; /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public java.util.List getDateListList() { if (dateListBuilder_ == null) { return java.util.Collections.unmodifiableList(dateList_); } else { return dateListBuilder_.getMessageList(); } } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public int getDateListCount() { if (dateListBuilder_ == null) { return dateList_.size(); } else { return dateListBuilder_.getCount(); } } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate getDateList(int index) { if (dateListBuilder_ == null) { return dateList_.get(index); } else { return dateListBuilder_.getMessage(index); } } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder setDateList( int index, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate value) { if (dateListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDateListIsMutable(); dateList_.set(index, value); onChanged(); } else { dateListBuilder_.setMessage(index, value); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder setDateList( int index, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder builderForValue) { if (dateListBuilder_ == null) { ensureDateListIsMutable(); dateList_.set(index, builderForValue.build()); onChanged(); } else { dateListBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder addDateList(com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate value) { if (dateListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDateListIsMutable(); dateList_.add(value); onChanged(); } else { dateListBuilder_.addMessage(value); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder addDateList( int index, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate value) { if (dateListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDateListIsMutable(); dateList_.add(index, value); onChanged(); } else { dateListBuilder_.addMessage(index, value); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder addDateList( com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder builderForValue) { if (dateListBuilder_ == null) { ensureDateListIsMutable(); dateList_.add(builderForValue.build()); onChanged(); } else { dateListBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder addDateList( int index, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder builderForValue) { if (dateListBuilder_ == null) { ensureDateListIsMutable(); dateList_.add(index, builderForValue.build()); onChanged(); } else { dateListBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder addAllDateList( java.lang.Iterable values) { if (dateListBuilder_ == null) { ensureDateListIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dateList_); onChanged(); } else { dateListBuilder_.addAllMessages(values); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder clearDateList() { if (dateListBuilder_ == null) { dateList_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { dateListBuilder_.clear(); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public Builder removeDateList(int index) { if (dateListBuilder_ == null) { ensureDateListIsMutable(); dateList_.remove(index); onChanged(); } else { dateListBuilder_.remove(index); } return this; } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder getDateListBuilder( int index) { return getDateListFieldBuilder().getBuilder(index); } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder getDateListOrBuilder( int index) { if (dateListBuilder_ == null) { return dateList_.get(index); } else { return dateListBuilder_.getMessageOrBuilder(index); } } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public java.util.List getDateListOrBuilderList() { if (dateListBuilder_ != null) { return dateListBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dateList_); } } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder addDateListBuilder() { return getDateListFieldBuilder().addBuilder( com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.getDefaultInstance()); } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder addDateListBuilder( int index) { return getDateListFieldBuilder().addBuilder( index, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.getDefaultInstance()); } /** *
       *期权链行权日
       * 
* * repeated .Qot_GetOptionExpirationDate.OptionExpirationDate dateList = 1; */ public java.util.List getDateListBuilderList() { return getDateListFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder> getDateListFieldBuilder() { if (dateListBuilder_ == null) { dateListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDate.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.OptionExpirationDateOrBuilder>( dateList_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); dateList_ = null; } return dateListBuilder_; } 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:Qot_GetOptionExpirationDate.S2C) } // @@protoc_insertion_point(class_scope:Qot_GetOptionExpirationDate.S2C) private static final com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C(); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:Qot_GetOptionExpirationDate.Request) com.google.protobuf.MessageOrBuilder { /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ boolean hasC2S(); /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S getC2S(); /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2SOrBuilder getC2SOrBuilder(); } /** * Protobuf type {@code Qot_GetOptionExpirationDate.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Qot_GetOptionExpirationDate.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.QotGetOptionExpirationDate.C2S.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = c2S_.toBuilder(); } c2S_ = input.readMessage(com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request.Builder.class); } private int bitField0_; public static final int C2S_FIELD_NUMBER = 1; private com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S c2S_; /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S getC2S() { return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.getDefaultInstance() : c2S_; } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2SOrBuilder getC2SOrBuilder() { return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request)) { return super.equals(obj); } com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request other = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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 Qot_GetOptionExpirationDate.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Qot_GetOptionExpirationDate.Request) com.moomoo.openapi.pb.QotGetOptionExpirationDate.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Request_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request.Builder.class); } // Construct using com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Request_descriptor; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request getDefaultInstanceForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request.getDefaultInstance(); } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request build() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request buildPartial() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request result = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request) { return mergeFrom((com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request other) { if (other == com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S c2S_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2SOrBuilder> c2SBuilder_; /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public boolean hasC2S() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S getC2S() { if (c2SBuilder_ == null) { return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.getDefaultInstance() : c2S_; } else { return c2SBuilder_.getMessage(); } } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public Builder setC2S(com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S value) { if (c2SBuilder_ == null) { if (value == null) { throw new NullPointerException(); } c2S_ = value; onChanged(); } else { c2SBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public Builder setC2S( com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder builderForValue) { if (c2SBuilder_ == null) { c2S_ = builderForValue.build(); onChanged(); } else { c2SBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public Builder mergeC2S(com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S value) { if (c2SBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && c2S_ != null && c2S_ != com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.getDefaultInstance()) { c2S_ = com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial(); } else { c2S_ = value; } onChanged(); } else { c2SBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public Builder clearC2S() { if (c2SBuilder_ == null) { c2S_ = null; onChanged(); } else { c2SBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder getC2SBuilder() { bitField0_ |= 0x00000001; onChanged(); return getC2SFieldBuilder().getBuilder(); } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2SOrBuilder getC2SOrBuilder() { if (c2SBuilder_ != null) { return c2SBuilder_.getMessageOrBuilder(); } else { return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.getDefaultInstance() : c2S_; } } /** * required .Qot_GetOptionExpirationDate.C2S c2s = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2SOrBuilder> getC2SFieldBuilder() { if (c2SBuilder_ == null) { c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S, com.moomoo.openapi.pb.QotGetOptionExpirationDate.C2S.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.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:Qot_GetOptionExpirationDate.Request) } // @@protoc_insertion_point(class_scope:Qot_GetOptionExpirationDate.Request) private static final com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.Request(); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:Qot_GetOptionExpirationDate.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 .Qot_GetOptionExpirationDate.S2C s2c = 4; */ boolean hasS2C(); /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C getS2C(); /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2COrBuilder getS2COrBuilder(); } /** * Protobuf type {@code Qot_GetOptionExpirationDate.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Qot_GetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = s2C_.toBuilder(); } s2C_ = input.readMessage(com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C s2C_; /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C getS2C() { return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.getDefaultInstance() : s2C_; } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2COrBuilder getS2COrBuilder() { return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response)) { return super.equals(obj); } com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response other = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.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 Qot_GetOptionExpirationDate.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Qot_GetOptionExpirationDate.Response) com.moomoo.openapi.pb.QotGetOptionExpirationDate.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Response_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response.class, com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response.Builder.class); } // Construct using com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.internal_static_Qot_GetOptionExpirationDate_Response_descriptor; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response getDefaultInstanceForType() { return com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response.getDefaultInstance(); } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response build() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response buildPartial() { com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response result = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response) { return mergeFrom((com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response other) { if (other == com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.S2C s2C_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2COrBuilder> s2CBuilder_; /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public boolean hasS2C() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C getS2C() { if (s2CBuilder_ == null) { return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.getDefaultInstance() : s2C_; } else { return s2CBuilder_.getMessage(); } } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public Builder setS2C(com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C value) { if (s2CBuilder_ == null) { if (value == null) { throw new NullPointerException(); } s2C_ = value; onChanged(); } else { s2CBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public Builder setS2C( com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder builderForValue) { if (s2CBuilder_ == null) { s2C_ = builderForValue.build(); onChanged(); } else { s2CBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public Builder mergeS2C(com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C value) { if (s2CBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && s2C_ != null && s2C_ != com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.getDefaultInstance()) { s2C_ = com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial(); } else { s2C_ = value; } onChanged(); } else { s2CBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public Builder clearS2C() { if (s2CBuilder_ == null) { s2C_ = null; onChanged(); } else { s2CBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder getS2CBuilder() { bitField0_ |= 0x00000008; onChanged(); return getS2CFieldBuilder().getBuilder(); } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ public com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2COrBuilder getS2COrBuilder() { if (s2CBuilder_ != null) { return s2CBuilder_.getMessageOrBuilder(); } else { return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.getDefaultInstance() : s2C_; } } /** * optional .Qot_GetOptionExpirationDate.S2C s2c = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2COrBuilder> getS2CFieldBuilder() { if (s2CBuilder_ == null) { s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C, com.moomoo.openapi.pb.QotGetOptionExpirationDate.S2C.Builder, com.moomoo.openapi.pb.QotGetOptionExpirationDate.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:Qot_GetOptionExpirationDate.Response) } // @@protoc_insertion_point(class_scope:Qot_GetOptionExpirationDate.Response) private static final com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionExpirationDate.Response(); } public static com.moomoo.openapi.pb.QotGetOptionExpirationDate.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.QotGetOptionExpirationDate.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Qot_GetOptionExpirationDate_C2S_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Qot_GetOptionExpirationDate_C2S_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Qot_GetOptionExpirationDate_S2C_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Qot_GetOptionExpirationDate_S2C_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Qot_GetOptionExpirationDate_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Qot_GetOptionExpirationDate_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_Qot_GetOptionExpirationDate_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Qot_GetOptionExpirationDate_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!Qot_GetOptionExpirationDate.proto\022\033Qot" + "_GetOptionExpirationDate\032\014Common.proto\032\020" + "Qot_Common.proto\"C\n\003C2S\022#\n\005owner\030\001 \002(\0132\024" + ".Qot_Common.Security\022\027\n\017indexOptionType\030" + "\002 \001(\005\"t\n\024OptionExpirationDate\022\022\n\nstrikeT" + "ime\030\001 \001(\t\022\027\n\017strikeTimestamp\030\002 \001(\001\022 \n\030op" + "tionExpiryDateDistance\030\003 \002(\005\022\r\n\005cycle\030\004 " + "\001(\005\"J\n\003S2C\022C\n\010dateList\030\001 \003(\01321.Qot_GetOp" + "tionExpirationDate.OptionExpirationDate\"" + "8\n\007Request\022-\n\003c2s\030\001 \002(\0132 .Qot_GetOptionE" + "xpirationDate.C2S\"q\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 .Qot_GetOptionExpira" + "tionDate.S2CBP\n\025com.moomoo.openapi.pbZ7g" + "ithub.com/futuopen/ftapi4go/pb/getoption" + "expirationdate" }; 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_Qot_GetOptionExpirationDate_C2S_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Qot_GetOptionExpirationDate_C2S_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Qot_GetOptionExpirationDate_C2S_descriptor, new java.lang.String[] { "Owner", "IndexOptionType", }); internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Qot_GetOptionExpirationDate_OptionExpirationDate_descriptor, new java.lang.String[] { "StrikeTime", "StrikeTimestamp", "OptionExpiryDateDistance", "Cycle", }); internal_static_Qot_GetOptionExpirationDate_S2C_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_Qot_GetOptionExpirationDate_S2C_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Qot_GetOptionExpirationDate_S2C_descriptor, new java.lang.String[] { "DateList", }); internal_static_Qot_GetOptionExpirationDate_Request_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_Qot_GetOptionExpirationDate_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Qot_GetOptionExpirationDate_Request_descriptor, new java.lang.String[] { "C2S", }); internal_static_Qot_GetOptionExpirationDate_Response_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_Qot_GetOptionExpirationDate_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Qot_GetOptionExpirationDate_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