com.moomoo.openapi.pb.QotGetOptionChain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moomoo-api Show documentation
Show all versions of moomoo-api Show documentation
Moomoo OpenAPI quantitative transaction interface for Java.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_GetOptionChain.proto
package com.moomoo.openapi.pb;
public final class QotGetOptionChain {
private QotGetOptionChain() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code Qot_GetOptionChain.OptionCondType}
*/
public enum OptionCondType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* OptionCondType_Unknow = 0;
*/
OptionCondType_Unknow(0),
/**
*
*价内
*
*
* OptionCondType_WithIn = 1;
*/
OptionCondType_WithIn(1),
/**
*
*价外
*
*
* OptionCondType_Outside = 2;
*/
OptionCondType_Outside(2),
;
/**
* OptionCondType_Unknow = 0;
*/
public static final int OptionCondType_Unknow_VALUE = 0;
/**
*
*价内
*
*
* OptionCondType_WithIn = 1;
*/
public static final int OptionCondType_WithIn_VALUE = 1;
/**
*
*价外
*
*
* OptionCondType_Outside = 2;
*/
public static final int OptionCondType_Outside_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OptionCondType valueOf(int value) {
return forNumber(value);
}
public static OptionCondType forNumber(int value) {
switch (value) {
case 0: return OptionCondType_Unknow;
case 1: return OptionCondType_WithIn;
case 2: return OptionCondType_Outside;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OptionCondType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OptionCondType findValueByNumber(int number) {
return OptionCondType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.getDescriptor().getEnumTypes().get(0);
}
private static final OptionCondType[] VALUES = values();
public static OptionCondType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private OptionCondType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Qot_GetOptionChain.OptionCondType)
}
public interface DataFilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.DataFilter)
com.google.protobuf.MessageOrBuilder {
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
boolean hasImpliedVolatilityMin();
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
double getImpliedVolatilityMin();
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
boolean hasImpliedVolatilityMax();
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
double getImpliedVolatilityMax();
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
boolean hasDeltaMin();
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
double getDeltaMin();
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
boolean hasDeltaMax();
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
double getDeltaMax();
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
boolean hasGammaMin();
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
double getGammaMin();
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
boolean hasGammaMax();
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
double getGammaMax();
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
boolean hasVegaMin();
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
double getVegaMin();
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
boolean hasVegaMax();
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
double getVegaMax();
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
boolean hasThetaMin();
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
double getThetaMin();
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
boolean hasThetaMax();
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
double getThetaMax();
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
boolean hasRhoMin();
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
double getRhoMin();
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
boolean hasRhoMax();
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
double getRhoMax();
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
boolean hasNetOpenInterestMin();
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
double getNetOpenInterestMin();
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
boolean hasNetOpenInterestMax();
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
double getNetOpenInterestMax();
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
boolean hasOpenInterestMin();
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
double getOpenInterestMin();
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
boolean hasOpenInterestMax();
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
double getOpenInterestMax();
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
boolean hasVolMin();
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
double getVolMin();
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
boolean hasVolMax();
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
double getVolMax();
}
/**
*
*以下为数据字段筛选,可选字段,不填表示不过滤
*
*
* Protobuf type {@code Qot_GetOptionChain.DataFilter}
*/
public static final class DataFilter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.DataFilter)
DataFilterOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataFilter.newBuilder() to construct.
private DataFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataFilter() {
impliedVolatilityMin_ = 0D;
impliedVolatilityMax_ = 0D;
deltaMin_ = 0D;
deltaMax_ = 0D;
gammaMin_ = 0D;
gammaMax_ = 0D;
vegaMin_ = 0D;
vegaMax_ = 0D;
thetaMin_ = 0D;
thetaMax_ = 0D;
rhoMin_ = 0D;
rhoMax_ = 0D;
netOpenInterestMin_ = 0D;
netOpenInterestMax_ = 0D;
openInterestMin_ = 0D;
openInterestMax_ = 0D;
volMin_ = 0D;
volMax_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataFilter(
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 9: {
bitField0_ |= 0x00000001;
impliedVolatilityMin_ = input.readDouble();
break;
}
case 17: {
bitField0_ |= 0x00000002;
impliedVolatilityMax_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
deltaMin_ = input.readDouble();
break;
}
case 33: {
bitField0_ |= 0x00000008;
deltaMax_ = input.readDouble();
break;
}
case 41: {
bitField0_ |= 0x00000010;
gammaMin_ = input.readDouble();
break;
}
case 49: {
bitField0_ |= 0x00000020;
gammaMax_ = input.readDouble();
break;
}
case 57: {
bitField0_ |= 0x00000040;
vegaMin_ = input.readDouble();
break;
}
case 65: {
bitField0_ |= 0x00000080;
vegaMax_ = input.readDouble();
break;
}
case 73: {
bitField0_ |= 0x00000100;
thetaMin_ = input.readDouble();
break;
}
case 81: {
bitField0_ |= 0x00000200;
thetaMax_ = input.readDouble();
break;
}
case 89: {
bitField0_ |= 0x00000400;
rhoMin_ = input.readDouble();
break;
}
case 97: {
bitField0_ |= 0x00000800;
rhoMax_ = input.readDouble();
break;
}
case 105: {
bitField0_ |= 0x00001000;
netOpenInterestMin_ = input.readDouble();
break;
}
case 113: {
bitField0_ |= 0x00002000;
netOpenInterestMax_ = input.readDouble();
break;
}
case 121: {
bitField0_ |= 0x00004000;
openInterestMin_ = input.readDouble();
break;
}
case 129: {
bitField0_ |= 0x00008000;
openInterestMax_ = input.readDouble();
break;
}
case 137: {
bitField0_ |= 0x00010000;
volMin_ = input.readDouble();
break;
}
case 145: {
bitField0_ |= 0x00020000;
volMax_ = input.readDouble();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_DataFilter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_DataFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.class, com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder.class);
}
private int bitField0_;
public static final int IMPLIEDVOLATILITYMIN_FIELD_NUMBER = 1;
private double impliedVolatilityMin_;
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
public boolean hasImpliedVolatilityMin() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
public double getImpliedVolatilityMin() {
return impliedVolatilityMin_;
}
public static final int IMPLIEDVOLATILITYMAX_FIELD_NUMBER = 2;
private double impliedVolatilityMax_;
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
public boolean hasImpliedVolatilityMax() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
public double getImpliedVolatilityMax() {
return impliedVolatilityMax_;
}
public static final int DELTAMIN_FIELD_NUMBER = 3;
private double deltaMin_;
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
public boolean hasDeltaMin() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
public double getDeltaMin() {
return deltaMin_;
}
public static final int DELTAMAX_FIELD_NUMBER = 4;
private double deltaMax_;
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
public boolean hasDeltaMax() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
public double getDeltaMax() {
return deltaMax_;
}
public static final int GAMMAMIN_FIELD_NUMBER = 5;
private double gammaMin_;
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
public boolean hasGammaMin() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
public double getGammaMin() {
return gammaMin_;
}
public static final int GAMMAMAX_FIELD_NUMBER = 6;
private double gammaMax_;
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
public boolean hasGammaMax() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
public double getGammaMax() {
return gammaMax_;
}
public static final int VEGAMIN_FIELD_NUMBER = 7;
private double vegaMin_;
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
public boolean hasVegaMin() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
public double getVegaMin() {
return vegaMin_;
}
public static final int VEGAMAX_FIELD_NUMBER = 8;
private double vegaMax_;
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
public boolean hasVegaMax() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
public double getVegaMax() {
return vegaMax_;
}
public static final int THETAMIN_FIELD_NUMBER = 9;
private double thetaMin_;
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
public boolean hasThetaMin() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
public double getThetaMin() {
return thetaMin_;
}
public static final int THETAMAX_FIELD_NUMBER = 10;
private double thetaMax_;
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
public boolean hasThetaMax() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
public double getThetaMax() {
return thetaMax_;
}
public static final int RHOMIN_FIELD_NUMBER = 11;
private double rhoMin_;
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
public boolean hasRhoMin() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
public double getRhoMin() {
return rhoMin_;
}
public static final int RHOMAX_FIELD_NUMBER = 12;
private double rhoMax_;
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
public boolean hasRhoMax() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
public double getRhoMax() {
return rhoMax_;
}
public static final int NETOPENINTERESTMIN_FIELD_NUMBER = 13;
private double netOpenInterestMin_;
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
public boolean hasNetOpenInterestMin() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
public double getNetOpenInterestMin() {
return netOpenInterestMin_;
}
public static final int NETOPENINTERESTMAX_FIELD_NUMBER = 14;
private double netOpenInterestMax_;
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
public boolean hasNetOpenInterestMax() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
public double getNetOpenInterestMax() {
return netOpenInterestMax_;
}
public static final int OPENINTERESTMIN_FIELD_NUMBER = 15;
private double openInterestMin_;
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
public boolean hasOpenInterestMin() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
public double getOpenInterestMin() {
return openInterestMin_;
}
public static final int OPENINTERESTMAX_FIELD_NUMBER = 16;
private double openInterestMax_;
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
public boolean hasOpenInterestMax() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
public double getOpenInterestMax() {
return openInterestMax_;
}
public static final int VOLMIN_FIELD_NUMBER = 17;
private double volMin_;
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
public boolean hasVolMin() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
public double getVolMin() {
return volMin_;
}
public static final int VOLMAX_FIELD_NUMBER = 18;
private double volMax_;
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
public boolean hasVolMax() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
public double getVolMax() {
return volMax_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeDouble(1, impliedVolatilityMin_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, impliedVolatilityMax_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, deltaMin_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, deltaMax_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeDouble(5, gammaMin_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeDouble(6, gammaMax_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeDouble(7, vegaMin_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeDouble(8, vegaMax_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeDouble(9, thetaMin_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeDouble(10, thetaMax_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeDouble(11, rhoMin_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeDouble(12, rhoMax_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeDouble(13, netOpenInterestMin_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeDouble(14, netOpenInterestMax_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeDouble(15, openInterestMin_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeDouble(16, openInterestMax_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeDouble(17, volMin_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
output.writeDouble(18, volMax_);
}
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
.computeDoubleSize(1, impliedVolatilityMin_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, impliedVolatilityMax_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, deltaMin_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, deltaMax_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, gammaMin_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, gammaMax_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, vegaMin_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, vegaMax_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, thetaMin_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, thetaMax_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(11, rhoMin_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, rhoMax_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(13, netOpenInterestMin_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(14, netOpenInterestMax_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(15, openInterestMin_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(16, openInterestMax_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(17, volMin_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(18, volMax_);
}
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.QotGetOptionChain.DataFilter)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter other = (com.moomoo.openapi.pb.QotGetOptionChain.DataFilter) obj;
boolean result = true;
result = result && (hasImpliedVolatilityMin() == other.hasImpliedVolatilityMin());
if (hasImpliedVolatilityMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getImpliedVolatilityMin())
== java.lang.Double.doubleToLongBits(
other.getImpliedVolatilityMin()));
}
result = result && (hasImpliedVolatilityMax() == other.hasImpliedVolatilityMax());
if (hasImpliedVolatilityMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getImpliedVolatilityMax())
== java.lang.Double.doubleToLongBits(
other.getImpliedVolatilityMax()));
}
result = result && (hasDeltaMin() == other.hasDeltaMin());
if (hasDeltaMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getDeltaMin())
== java.lang.Double.doubleToLongBits(
other.getDeltaMin()));
}
result = result && (hasDeltaMax() == other.hasDeltaMax());
if (hasDeltaMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getDeltaMax())
== java.lang.Double.doubleToLongBits(
other.getDeltaMax()));
}
result = result && (hasGammaMin() == other.hasGammaMin());
if (hasGammaMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getGammaMin())
== java.lang.Double.doubleToLongBits(
other.getGammaMin()));
}
result = result && (hasGammaMax() == other.hasGammaMax());
if (hasGammaMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getGammaMax())
== java.lang.Double.doubleToLongBits(
other.getGammaMax()));
}
result = result && (hasVegaMin() == other.hasVegaMin());
if (hasVegaMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getVegaMin())
== java.lang.Double.doubleToLongBits(
other.getVegaMin()));
}
result = result && (hasVegaMax() == other.hasVegaMax());
if (hasVegaMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getVegaMax())
== java.lang.Double.doubleToLongBits(
other.getVegaMax()));
}
result = result && (hasThetaMin() == other.hasThetaMin());
if (hasThetaMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getThetaMin())
== java.lang.Double.doubleToLongBits(
other.getThetaMin()));
}
result = result && (hasThetaMax() == other.hasThetaMax());
if (hasThetaMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getThetaMax())
== java.lang.Double.doubleToLongBits(
other.getThetaMax()));
}
result = result && (hasRhoMin() == other.hasRhoMin());
if (hasRhoMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getRhoMin())
== java.lang.Double.doubleToLongBits(
other.getRhoMin()));
}
result = result && (hasRhoMax() == other.hasRhoMax());
if (hasRhoMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getRhoMax())
== java.lang.Double.doubleToLongBits(
other.getRhoMax()));
}
result = result && (hasNetOpenInterestMin() == other.hasNetOpenInterestMin());
if (hasNetOpenInterestMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getNetOpenInterestMin())
== java.lang.Double.doubleToLongBits(
other.getNetOpenInterestMin()));
}
result = result && (hasNetOpenInterestMax() == other.hasNetOpenInterestMax());
if (hasNetOpenInterestMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getNetOpenInterestMax())
== java.lang.Double.doubleToLongBits(
other.getNetOpenInterestMax()));
}
result = result && (hasOpenInterestMin() == other.hasOpenInterestMin());
if (hasOpenInterestMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getOpenInterestMin())
== java.lang.Double.doubleToLongBits(
other.getOpenInterestMin()));
}
result = result && (hasOpenInterestMax() == other.hasOpenInterestMax());
if (hasOpenInterestMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getOpenInterestMax())
== java.lang.Double.doubleToLongBits(
other.getOpenInterestMax()));
}
result = result && (hasVolMin() == other.hasVolMin());
if (hasVolMin()) {
result = result && (
java.lang.Double.doubleToLongBits(getVolMin())
== java.lang.Double.doubleToLongBits(
other.getVolMin()));
}
result = result && (hasVolMax() == other.hasVolMax());
if (hasVolMax()) {
result = result && (
java.lang.Double.doubleToLongBits(getVolMax())
== java.lang.Double.doubleToLongBits(
other.getVolMax()));
}
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 (hasImpliedVolatilityMin()) {
hash = (37 * hash) + IMPLIEDVOLATILITYMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getImpliedVolatilityMin()));
}
if (hasImpliedVolatilityMax()) {
hash = (37 * hash) + IMPLIEDVOLATILITYMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getImpliedVolatilityMax()));
}
if (hasDeltaMin()) {
hash = (37 * hash) + DELTAMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDeltaMin()));
}
if (hasDeltaMax()) {
hash = (37 * hash) + DELTAMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDeltaMax()));
}
if (hasGammaMin()) {
hash = (37 * hash) + GAMMAMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGammaMin()));
}
if (hasGammaMax()) {
hash = (37 * hash) + GAMMAMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getGammaMax()));
}
if (hasVegaMin()) {
hash = (37 * hash) + VEGAMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVegaMin()));
}
if (hasVegaMax()) {
hash = (37 * hash) + VEGAMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVegaMax()));
}
if (hasThetaMin()) {
hash = (37 * hash) + THETAMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getThetaMin()));
}
if (hasThetaMax()) {
hash = (37 * hash) + THETAMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getThetaMax()));
}
if (hasRhoMin()) {
hash = (37 * hash) + RHOMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRhoMin()));
}
if (hasRhoMax()) {
hash = (37 * hash) + RHOMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRhoMax()));
}
if (hasNetOpenInterestMin()) {
hash = (37 * hash) + NETOPENINTERESTMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getNetOpenInterestMin()));
}
if (hasNetOpenInterestMax()) {
hash = (37 * hash) + NETOPENINTERESTMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getNetOpenInterestMax()));
}
if (hasOpenInterestMin()) {
hash = (37 * hash) + OPENINTERESTMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOpenInterestMin()));
}
if (hasOpenInterestMax()) {
hash = (37 * hash) + OPENINTERESTMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOpenInterestMax()));
}
if (hasVolMin()) {
hash = (37 * hash) + VOLMIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVolMin()));
}
if (hasVolMax()) {
hash = (37 * hash) + VOLMAX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getVolMax()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter 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.QotGetOptionChain.DataFilter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter 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.QotGetOptionChain.DataFilter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter 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.QotGetOptionChain.DataFilter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter 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.QotGetOptionChain.DataFilter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter 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.QotGetOptionChain.DataFilter 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_GetOptionChain.DataFilter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.DataFilter)
com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_DataFilter_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_DataFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.class, com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.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();
impliedVolatilityMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
impliedVolatilityMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
deltaMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
deltaMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
gammaMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
gammaMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00000020);
vegaMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00000040);
vegaMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00000080);
thetaMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00000100);
thetaMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00000200);
rhoMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00000400);
rhoMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00000800);
netOpenInterestMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00001000);
netOpenInterestMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00002000);
openInterestMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00004000);
openInterestMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00008000);
volMin_ = 0D;
bitField0_ = (bitField0_ & ~0x00010000);
volMax_ = 0D;
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_DataFilter_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilter getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilter build() {
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilter buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter result = new com.moomoo.openapi.pb.QotGetOptionChain.DataFilter(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.impliedVolatilityMin_ = impliedVolatilityMin_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.impliedVolatilityMax_ = impliedVolatilityMax_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.deltaMin_ = deltaMin_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.deltaMax_ = deltaMax_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.gammaMin_ = gammaMin_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.gammaMax_ = gammaMax_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.vegaMin_ = vegaMin_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.vegaMax_ = vegaMax_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.thetaMin_ = thetaMin_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.thetaMax_ = thetaMax_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.rhoMin_ = rhoMin_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.rhoMax_ = rhoMax_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.netOpenInterestMin_ = netOpenInterestMin_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.netOpenInterestMax_ = netOpenInterestMax_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.openInterestMin_ = openInterestMin_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
result.openInterestMax_ = openInterestMax_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
result.volMin_ = volMin_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00020000;
}
result.volMax_ = volMax_;
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.QotGetOptionChain.DataFilter) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.DataFilter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.DataFilter other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance()) return this;
if (other.hasImpliedVolatilityMin()) {
setImpliedVolatilityMin(other.getImpliedVolatilityMin());
}
if (other.hasImpliedVolatilityMax()) {
setImpliedVolatilityMax(other.getImpliedVolatilityMax());
}
if (other.hasDeltaMin()) {
setDeltaMin(other.getDeltaMin());
}
if (other.hasDeltaMax()) {
setDeltaMax(other.getDeltaMax());
}
if (other.hasGammaMin()) {
setGammaMin(other.getGammaMin());
}
if (other.hasGammaMax()) {
setGammaMax(other.getGammaMax());
}
if (other.hasVegaMin()) {
setVegaMin(other.getVegaMin());
}
if (other.hasVegaMax()) {
setVegaMax(other.getVegaMax());
}
if (other.hasThetaMin()) {
setThetaMin(other.getThetaMin());
}
if (other.hasThetaMax()) {
setThetaMax(other.getThetaMax());
}
if (other.hasRhoMin()) {
setRhoMin(other.getRhoMin());
}
if (other.hasRhoMax()) {
setRhoMax(other.getRhoMax());
}
if (other.hasNetOpenInterestMin()) {
setNetOpenInterestMin(other.getNetOpenInterestMin());
}
if (other.hasNetOpenInterestMax()) {
setNetOpenInterestMax(other.getNetOpenInterestMax());
}
if (other.hasOpenInterestMin()) {
setOpenInterestMin(other.getOpenInterestMin());
}
if (other.hasOpenInterestMax()) {
setOpenInterestMax(other.getOpenInterestMax());
}
if (other.hasVolMin()) {
setVolMin(other.getVolMin());
}
if (other.hasVolMax()) {
setVolMax(other.getVolMax());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.DataFilter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private double impliedVolatilityMin_ ;
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
public boolean hasImpliedVolatilityMin() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
public double getImpliedVolatilityMin() {
return impliedVolatilityMin_;
}
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
public Builder setImpliedVolatilityMin(double value) {
bitField0_ |= 0x00000001;
impliedVolatilityMin_ = value;
onChanged();
return this;
}
/**
*
*隐含波动率过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMin = 1;
*/
public Builder clearImpliedVolatilityMin() {
bitField0_ = (bitField0_ & ~0x00000001);
impliedVolatilityMin_ = 0D;
onChanged();
return this;
}
private double impliedVolatilityMax_ ;
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
public boolean hasImpliedVolatilityMax() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
public double getImpliedVolatilityMax() {
return impliedVolatilityMax_;
}
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
public Builder setImpliedVolatilityMax(double value) {
bitField0_ |= 0x00000002;
impliedVolatilityMax_ = value;
onChanged();
return this;
}
/**
*
*隐含波动率过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double impliedVolatilityMax = 2;
*/
public Builder clearImpliedVolatilityMax() {
bitField0_ = (bitField0_ & ~0x00000002);
impliedVolatilityMax_ = 0D;
onChanged();
return this;
}
private double deltaMin_ ;
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
public boolean hasDeltaMin() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
public double getDeltaMin() {
return deltaMin_;
}
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
public Builder setDeltaMin(double value) {
bitField0_ |= 0x00000004;
deltaMin_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Delta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMin = 3;
*/
public Builder clearDeltaMin() {
bitField0_ = (bitField0_ & ~0x00000004);
deltaMin_ = 0D;
onChanged();
return this;
}
private double deltaMax_ ;
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
public boolean hasDeltaMax() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
public double getDeltaMax() {
return deltaMax_;
}
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
public Builder setDeltaMax(double value) {
bitField0_ |= 0x00000008;
deltaMax_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Delta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double deltaMax = 4;
*/
public Builder clearDeltaMax() {
bitField0_ = (bitField0_ & ~0x00000008);
deltaMax_ = 0D;
onChanged();
return this;
}
private double gammaMin_ ;
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
public boolean hasGammaMin() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
public double getGammaMin() {
return gammaMin_;
}
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
public Builder setGammaMin(double value) {
bitField0_ |= 0x00000010;
gammaMin_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Gamma过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMin = 5;
*/
public Builder clearGammaMin() {
bitField0_ = (bitField0_ & ~0x00000010);
gammaMin_ = 0D;
onChanged();
return this;
}
private double gammaMax_ ;
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
public boolean hasGammaMax() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
public double getGammaMax() {
return gammaMax_;
}
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
public Builder setGammaMax(double value) {
bitField0_ |= 0x00000020;
gammaMax_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Gamma过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double gammaMax = 6;
*/
public Builder clearGammaMax() {
bitField0_ = (bitField0_ & ~0x00000020);
gammaMax_ = 0D;
onChanged();
return this;
}
private double vegaMin_ ;
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
public boolean hasVegaMin() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
public double getVegaMin() {
return vegaMin_;
}
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
public Builder setVegaMin(double value) {
bitField0_ |= 0x00000040;
vegaMin_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Vega过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMin = 7;
*/
public Builder clearVegaMin() {
bitField0_ = (bitField0_ & ~0x00000040);
vegaMin_ = 0D;
onChanged();
return this;
}
private double vegaMax_ ;
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
public boolean hasVegaMax() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
public double getVegaMax() {
return vegaMax_;
}
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
public Builder setVegaMax(double value) {
bitField0_ |= 0x00000080;
vegaMax_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Vega过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double vegaMax = 8;
*/
public Builder clearVegaMax() {
bitField0_ = (bitField0_ & ~0x00000080);
vegaMax_ = 0D;
onChanged();
return this;
}
private double thetaMin_ ;
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
public boolean hasThetaMin() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
public double getThetaMin() {
return thetaMin_;
}
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
public Builder setThetaMin(double value) {
bitField0_ |= 0x00000100;
thetaMin_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Theta过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMin = 9;
*/
public Builder clearThetaMin() {
bitField0_ = (bitField0_ & ~0x00000100);
thetaMin_ = 0D;
onChanged();
return this;
}
private double thetaMax_ ;
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
public boolean hasThetaMax() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
public double getThetaMax() {
return thetaMax_;
}
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
public Builder setThetaMax(double value) {
bitField0_ |= 0x00000200;
thetaMax_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Theta过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double thetaMax = 10;
*/
public Builder clearThetaMax() {
bitField0_ = (bitField0_ & ~0x00000200);
thetaMax_ = 0D;
onChanged();
return this;
}
private double rhoMin_ ;
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
public boolean hasRhoMin() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
public double getRhoMin() {
return rhoMin_;
}
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
public Builder setRhoMin(double value) {
bitField0_ |= 0x00000400;
rhoMin_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Rho过滤起点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMin = 11;
*/
public Builder clearRhoMin() {
bitField0_ = (bitField0_ & ~0x00000400);
rhoMin_ = 0D;
onChanged();
return this;
}
private double rhoMax_ ;
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
public boolean hasRhoMax() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
public double getRhoMax() {
return rhoMax_;
}
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
public Builder setRhoMax(double value) {
bitField0_ |= 0x00000800;
rhoMax_ = value;
onChanged();
return this;
}
/**
*
*希腊值 Rho过滤终点(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double rhoMax = 12;
*/
public Builder clearRhoMax() {
bitField0_ = (bitField0_ & ~0x00000800);
rhoMax_ = 0D;
onChanged();
return this;
}
private double netOpenInterestMin_ ;
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
public boolean hasNetOpenInterestMin() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
public double getNetOpenInterestMin() {
return netOpenInterestMin_;
}
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
public Builder setNetOpenInterestMin(double value) {
bitField0_ |= 0x00001000;
netOpenInterestMin_ = value;
onChanged();
return this;
}
/**
*
*净未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMin = 13;
*/
public Builder clearNetOpenInterestMin() {
bitField0_ = (bitField0_ & ~0x00001000);
netOpenInterestMin_ = 0D;
onChanged();
return this;
}
private double netOpenInterestMax_ ;
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
public boolean hasNetOpenInterestMax() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
public double getNetOpenInterestMax() {
return netOpenInterestMax_;
}
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
public Builder setNetOpenInterestMax(double value) {
bitField0_ |= 0x00002000;
netOpenInterestMax_ = value;
onChanged();
return this;
}
/**
*
*净未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double netOpenInterestMax = 14;
*/
public Builder clearNetOpenInterestMax() {
bitField0_ = (bitField0_ & ~0x00002000);
netOpenInterestMax_ = 0D;
onChanged();
return this;
}
private double openInterestMin_ ;
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
public boolean hasOpenInterestMin() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
public double getOpenInterestMin() {
return openInterestMin_;
}
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
public Builder setOpenInterestMin(double value) {
bitField0_ |= 0x00004000;
openInterestMin_ = value;
onChanged();
return this;
}
/**
*
*未平仓合约数过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMin = 15;
*/
public Builder clearOpenInterestMin() {
bitField0_ = (bitField0_ & ~0x00004000);
openInterestMin_ = 0D;
onChanged();
return this;
}
private double openInterestMax_ ;
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
public boolean hasOpenInterestMax() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
public double getOpenInterestMax() {
return openInterestMax_;
}
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
public Builder setOpenInterestMax(double value) {
bitField0_ |= 0x00008000;
openInterestMax_ = value;
onChanged();
return this;
}
/**
*
*未平仓合约数过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double openInterestMax = 16;
*/
public Builder clearOpenInterestMax() {
bitField0_ = (bitField0_ & ~0x00008000);
openInterestMax_ = 0D;
onChanged();
return this;
}
private double volMin_ ;
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
public boolean hasVolMin() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
public double getVolMin() {
return volMin_;
}
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
public Builder setVolMin(double value) {
bitField0_ |= 0x00010000;
volMin_ = value;
onChanged();
return this;
}
/**
*
*成交量过滤起点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMin = 17;
*/
public Builder clearVolMin() {
bitField0_ = (bitField0_ & ~0x00010000);
volMin_ = 0D;
onChanged();
return this;
}
private double volMax_ ;
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
public boolean hasVolMax() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
public double getVolMax() {
return volMax_;
}
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
public Builder setVolMax(double value) {
bitField0_ |= 0x00020000;
volMax_ = value;
onChanged();
return this;
}
/**
*
*成交量过滤终点(精确到小数点后 0 位,超出部分会被舍弃)
*
*
* optional double volMax = 18;
*/
public Builder clearVolMax() {
bitField0_ = (bitField0_ & ~0x00020000);
volMax_ = 0D;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetOptionChain.DataFilter)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.DataFilter)
private static final com.moomoo.openapi.pb.QotGetOptionChain.DataFilter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.DataFilter();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.DataFilter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DataFilter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataFilter(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.QotGetOptionChain.DataFilter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface C2SOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.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 = 6;
*/
boolean hasIndexOptionType();
/**
*
*Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
*
*
* optional int32 indexOptionType = 6;
*/
int getIndexOptionType();
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
boolean hasType();
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
int getType();
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
boolean hasCondition();
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
int getCondition();
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
boolean hasBeginTime();
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
java.lang.String getBeginTime();
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
com.google.protobuf.ByteString
getBeginTimeBytes();
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
boolean hasEndTime();
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
java.lang.String getEndTime();
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
com.google.protobuf.ByteString
getEndTimeBytes();
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
boolean hasDataFilter();
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter getDataFilter();
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder getDataFilterOrBuilder();
}
/**
* Protobuf type {@code Qot_GetOptionChain.C2S}
*/
public static final class C2S extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.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;
type_ = 0;
condition_ = 0;
beginTime_ = "";
endTime_ = "";
}
@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_ |= 0x00000004;
type_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000008;
condition_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
beginTime_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
endTime_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000002;
indexOptionType_ = input.readInt32();
break;
}
case 58: {
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) == 0x00000040)) {
subBuilder = dataFilter_.toBuilder();
}
dataFilter_ = input.readMessage(com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataFilter_);
dataFilter_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
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.QotGetOptionChain.internal_static_Qot_GetOptionChain_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.C2S.class, com.moomoo.openapi.pb.QotGetOptionChain.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 = 6;
private int indexOptionType_;
/**
*
*Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
*
*
* optional int32 indexOptionType = 6;
*/
public boolean hasIndexOptionType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
*
*
* optional int32 indexOptionType = 6;
*/
public int getIndexOptionType() {
return indexOptionType_;
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
public int getType() {
return type_;
}
public static final int CONDITION_FIELD_NUMBER = 3;
private int condition_;
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
public boolean hasCondition() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
public int getCondition() {
return condition_;
}
public static final int BEGINTIME_FIELD_NUMBER = 4;
private volatile java.lang.Object beginTime_;
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public boolean hasBeginTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public java.lang.String getBeginTime() {
java.lang.Object ref = beginTime_;
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()) {
beginTime_ = s;
}
return s;
}
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public com.google.protobuf.ByteString
getBeginTimeBytes() {
java.lang.Object ref = beginTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
beginTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDTIME_FIELD_NUMBER = 5;
private volatile java.lang.Object endTime_;
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public java.lang.String getEndTime() {
java.lang.Object ref = endTime_;
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()) {
endTime_ = s;
}
return s;
}
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public com.google.protobuf.ByteString
getEndTimeBytes() {
java.lang.Object ref = endTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATAFILTER_FIELD_NUMBER = 7;
private com.moomoo.openapi.pb.QotGetOptionChain.DataFilter dataFilter_;
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public boolean hasDataFilter() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilter getDataFilter() {
return dataFilter_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance() : dataFilter_;
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder getDataFilterOrBuilder() {
return dataFilter_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance() : dataFilter_;
}
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 (!hasBeginTime()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasEndTime()) {
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_ & 0x00000004) == 0x00000004)) {
output.writeInt32(2, type_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(3, condition_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, beginTime_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, endTime_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(6, indexOptionType_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeMessage(7, getDataFilter());
}
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_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, type_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, condition_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, beginTime_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, endTime_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, indexOptionType_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDataFilter());
}
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.QotGetOptionChain.C2S)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.C2S other = (com.moomoo.openapi.pb.QotGetOptionChain.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 && (hasType() == other.hasType());
if (hasType()) {
result = result && (getType()
== other.getType());
}
result = result && (hasCondition() == other.hasCondition());
if (hasCondition()) {
result = result && (getCondition()
== other.getCondition());
}
result = result && (hasBeginTime() == other.hasBeginTime());
if (hasBeginTime()) {
result = result && getBeginTime()
.equals(other.getBeginTime());
}
result = result && (hasEndTime() == other.hasEndTime());
if (hasEndTime()) {
result = result && getEndTime()
.equals(other.getEndTime());
}
result = result && (hasDataFilter() == other.hasDataFilter());
if (hasDataFilter()) {
result = result && getDataFilter()
.equals(other.getDataFilter());
}
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();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasCondition()) {
hash = (37 * hash) + CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getCondition();
}
if (hasBeginTime()) {
hash = (37 * hash) + BEGINTIME_FIELD_NUMBER;
hash = (53 * hash) + getBeginTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
if (hasDataFilter()) {
hash = (37 * hash) + DATAFILTER_FIELD_NUMBER;
hash = (53 * hash) + getDataFilter().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetOptionChain.C2S parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.C2S parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.C2S parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.C2S parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.C2S parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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_GetOptionChain.C2S}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.C2S)
com.moomoo.openapi.pb.QotGetOptionChain.C2SOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.C2S.class, com.moomoo.openapi.pb.QotGetOptionChain.C2S.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.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();
getDataFilterFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (ownerBuilder_ == null) {
owner_ = null;
} else {
ownerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
indexOptionType_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
condition_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
beginTime_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
endTime_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (dataFilterBuilder_ == null) {
dataFilter_ = null;
} else {
dataFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_C2S_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.C2S getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.C2S.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.C2S build() {
com.moomoo.openapi.pb.QotGetOptionChain.C2S result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.C2S buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.C2S result = new com.moomoo.openapi.pb.QotGetOptionChain.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_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.condition_ = condition_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.beginTime_ = beginTime_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.endTime_ = endTime_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
if (dataFilterBuilder_ == null) {
result.dataFilter_ = dataFilter_;
} else {
result.dataFilter_ = dataFilterBuilder_.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.QotGetOptionChain.C2S) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.C2S)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.C2S other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.C2S.getDefaultInstance()) return this;
if (other.hasOwner()) {
mergeOwner(other.getOwner());
}
if (other.hasIndexOptionType()) {
setIndexOptionType(other.getIndexOptionType());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasCondition()) {
setCondition(other.getCondition());
}
if (other.hasBeginTime()) {
bitField0_ |= 0x00000010;
beginTime_ = other.beginTime_;
onChanged();
}
if (other.hasEndTime()) {
bitField0_ |= 0x00000020;
endTime_ = other.endTime_;
onChanged();
}
if (other.hasDataFilter()) {
mergeDataFilter(other.getDataFilter());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasOwner()) {
return false;
}
if (!hasBeginTime()) {
return false;
}
if (!hasEndTime()) {
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.QotGetOptionChain.C2S parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.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 = 6;
*/
public boolean hasIndexOptionType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
*
*
* optional int32 indexOptionType = 6;
*/
public int getIndexOptionType() {
return indexOptionType_;
}
/**
*
*Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
*
*
* optional int32 indexOptionType = 6;
*/
public Builder setIndexOptionType(int value) {
bitField0_ |= 0x00000002;
indexOptionType_ = value;
onChanged();
return this;
}
/**
*
*Qot_Common.IndexOptionType,指数期权的类型,仅用于恒指国指
*
*
* optional int32 indexOptionType = 6;
*/
public Builder clearIndexOptionType() {
bitField0_ = (bitField0_ & ~0x00000002);
indexOptionType_ = 0;
onChanged();
return this;
}
private int type_ ;
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
public int getType() {
return type_;
}
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
/**
*
*Qot_Common.OptionType,期权类型,可选字段,不指定则表示都返回
*
*
* optional int32 type = 2;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
onChanged();
return this;
}
private int condition_ ;
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
public boolean hasCondition() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
public int getCondition() {
return condition_;
}
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
public Builder setCondition(int value) {
bitField0_ |= 0x00000008;
condition_ = value;
onChanged();
return this;
}
/**
*
*OptionCondType,价内价外,可选字段,不指定则表示都返回
*
*
* optional int32 condition = 3;
*/
public Builder clearCondition() {
bitField0_ = (bitField0_ & ~0x00000008);
condition_ = 0;
onChanged();
return this;
}
private java.lang.Object beginTime_ = "";
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public boolean hasBeginTime() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public java.lang.String getBeginTime() {
java.lang.Object ref = beginTime_;
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()) {
beginTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public com.google.protobuf.ByteString
getBeginTimeBytes() {
java.lang.Object ref = beginTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
beginTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public Builder setBeginTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
beginTime_ = value;
onChanged();
return this;
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public Builder clearBeginTime() {
bitField0_ = (bitField0_ & ~0x00000010);
beginTime_ = getDefaultInstance().getBeginTime();
onChanged();
return this;
}
/**
*
*期权到期日开始时间
*
*
* required string beginTime = 4;
*/
public Builder setBeginTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
beginTime_ = value;
onChanged();
return this;
}
private java.lang.Object endTime_ = "";
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public java.lang.String getEndTime() {
java.lang.Object ref = endTime_;
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()) {
endTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public com.google.protobuf.ByteString
getEndTimeBytes() {
java.lang.Object ref = endTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public Builder setEndTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
endTime_ = value;
onChanged();
return this;
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000020);
endTime_ = getDefaultInstance().getEndTime();
onChanged();
return this;
}
/**
*
*期权到期日结束时间,时间跨度最多一个月
*
*
* required string endTime = 5;
*/
public Builder setEndTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
endTime_ = value;
onChanged();
return this;
}
private com.moomoo.openapi.pb.QotGetOptionChain.DataFilter dataFilter_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter, com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder, com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder> dataFilterBuilder_;
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public boolean hasDataFilter() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilter getDataFilter() {
if (dataFilterBuilder_ == null) {
return dataFilter_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance() : dataFilter_;
} else {
return dataFilterBuilder_.getMessage();
}
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public Builder setDataFilter(com.moomoo.openapi.pb.QotGetOptionChain.DataFilter value) {
if (dataFilterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataFilter_ = value;
onChanged();
} else {
dataFilterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public Builder setDataFilter(
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder builderForValue) {
if (dataFilterBuilder_ == null) {
dataFilter_ = builderForValue.build();
onChanged();
} else {
dataFilterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public Builder mergeDataFilter(com.moomoo.openapi.pb.QotGetOptionChain.DataFilter value) {
if (dataFilterBuilder_ == null) {
if (((bitField0_ & 0x00000040) == 0x00000040) &&
dataFilter_ != null &&
dataFilter_ != com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance()) {
dataFilter_ =
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.newBuilder(dataFilter_).mergeFrom(value).buildPartial();
} else {
dataFilter_ = value;
}
onChanged();
} else {
dataFilterBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public Builder clearDataFilter() {
if (dataFilterBuilder_ == null) {
dataFilter_ = null;
onChanged();
} else {
dataFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder getDataFilterBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDataFilterFieldBuilder().getBuilder();
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder getDataFilterOrBuilder() {
if (dataFilterBuilder_ != null) {
return dataFilterBuilder_.getMessageOrBuilder();
} else {
return dataFilter_ == null ?
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.getDefaultInstance() : dataFilter_;
}
}
/**
*
*数据字段筛选
*
*
* optional .Qot_GetOptionChain.DataFilter dataFilter = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter, com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder, com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder>
getDataFilterFieldBuilder() {
if (dataFilterBuilder_ == null) {
dataFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.DataFilter, com.moomoo.openapi.pb.QotGetOptionChain.DataFilter.Builder, com.moomoo.openapi.pb.QotGetOptionChain.DataFilterOrBuilder>(
getDataFilter(),
getParentForChildren(),
isClean());
dataFilter_ = null;
}
return dataFilterBuilder_;
}
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_GetOptionChain.C2S)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.C2S)
private static final com.moomoo.openapi.pb.QotGetOptionChain.C2S DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.C2S();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.C2S getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptionItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.OptionItem)
com.google.protobuf.MessageOrBuilder {
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
boolean hasCall();
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo getCall();
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder getCallOrBuilder();
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
boolean hasPut();
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo getPut();
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder getPutOrBuilder();
}
/**
* Protobuf type {@code Qot_GetOptionChain.OptionItem}
*/
public static final class OptionItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.OptionItem)
OptionItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptionItem.newBuilder() to construct.
private OptionItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptionItem() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptionItem(
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.SecurityStaticInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = call_.toBuilder();
}
call_ = input.readMessage(com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(call_);
call_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = put_.toBuilder();
}
put_ = input.readMessage(com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(put_);
put_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.class, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder.class);
}
private int bitField0_;
public static final int CALL_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo call_;
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public boolean hasCall() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo getCall() {
return call_ == null ? com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : call_;
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder getCallOrBuilder() {
return call_ == null ? com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : call_;
}
public static final int PUT_FIELD_NUMBER = 2;
private com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo put_;
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public boolean hasPut() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo getPut() {
return put_ == null ? com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : put_;
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder getPutOrBuilder() {
return put_ == null ? com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : put_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasCall()) {
if (!getCall().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasPut()) {
if (!getPut().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, getCall());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getPut());
}
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, getCall());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPut());
}
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.QotGetOptionChain.OptionItem)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem other = (com.moomoo.openapi.pb.QotGetOptionChain.OptionItem) obj;
boolean result = true;
result = result && (hasCall() == other.hasCall());
if (hasCall()) {
result = result && getCall()
.equals(other.getCall());
}
result = result && (hasPut() == other.hasPut());
if (hasPut()) {
result = result && getPut()
.equals(other.getPut());
}
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 (hasCall()) {
hash = (37 * hash) + CALL_FIELD_NUMBER;
hash = (53 * hash) + getCall().hashCode();
}
if (hasPut()) {
hash = (37 * hash) + PUT_FIELD_NUMBER;
hash = (53 * hash) + getPut().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem 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.QotGetOptionChain.OptionItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem 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.QotGetOptionChain.OptionItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem 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.QotGetOptionChain.OptionItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem 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.QotGetOptionChain.OptionItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem 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.QotGetOptionChain.OptionItem 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_GetOptionChain.OptionItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.OptionItem)
com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.class, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCallFieldBuilder();
getPutFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (callBuilder_ == null) {
call_ = null;
} else {
callBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (putBuilder_ == null) {
put_ = null;
} else {
putBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionItem_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem build() {
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem result = new com.moomoo.openapi.pb.QotGetOptionChain.OptionItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (callBuilder_ == null) {
result.call_ = call_;
} else {
result.call_ = callBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (putBuilder_ == null) {
result.put_ = put_;
} else {
result.put_ = putBuilder_.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.QotGetOptionChain.OptionItem) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.OptionItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.OptionItem other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.getDefaultInstance()) return this;
if (other.hasCall()) {
mergeCall(other.getCall());
}
if (other.hasPut()) {
mergePut(other.getPut());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (hasCall()) {
if (!getCall().isInitialized()) {
return false;
}
}
if (hasPut()) {
if (!getPut().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.QotGetOptionChain.OptionItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.OptionItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo call_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder> callBuilder_;
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public boolean hasCall() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo getCall() {
if (callBuilder_ == null) {
return call_ == null ? com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : call_;
} else {
return callBuilder_.getMessage();
}
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public Builder setCall(com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo value) {
if (callBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
call_ = value;
onChanged();
} else {
callBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public Builder setCall(
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder builderForValue) {
if (callBuilder_ == null) {
call_ = builderForValue.build();
onChanged();
} else {
callBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public Builder mergeCall(com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo value) {
if (callBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
call_ != null &&
call_ != com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance()) {
call_ =
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.newBuilder(call_).mergeFrom(value).buildPartial();
} else {
call_ = value;
}
onChanged();
} else {
callBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public Builder clearCall() {
if (callBuilder_ == null) {
call_ = null;
onChanged();
} else {
callBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder getCallBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCallFieldBuilder().getBuilder();
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder getCallOrBuilder() {
if (callBuilder_ != null) {
return callBuilder_.getMessageOrBuilder();
} else {
return call_ == null ?
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : call_;
}
}
/**
*
*看涨期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo call = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder>
getCallFieldBuilder() {
if (callBuilder_ == null) {
callBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder>(
getCall(),
getParentForChildren(),
isClean());
call_ = null;
}
return callBuilder_;
}
private com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo put_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder> putBuilder_;
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public boolean hasPut() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo getPut() {
if (putBuilder_ == null) {
return put_ == null ? com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : put_;
} else {
return putBuilder_.getMessage();
}
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public Builder setPut(com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo value) {
if (putBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
put_ = value;
onChanged();
} else {
putBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public Builder setPut(
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder builderForValue) {
if (putBuilder_ == null) {
put_ = builderForValue.build();
onChanged();
} else {
putBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public Builder mergePut(com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo value) {
if (putBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
put_ != null &&
put_ != com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance()) {
put_ =
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.newBuilder(put_).mergeFrom(value).buildPartial();
} else {
put_ = value;
}
onChanged();
} else {
putBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public Builder clearPut() {
if (putBuilder_ == null) {
put_ = null;
onChanged();
} else {
putBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder getPutBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPutFieldBuilder().getBuilder();
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder getPutOrBuilder() {
if (putBuilder_ != null) {
return putBuilder_.getMessageOrBuilder();
} else {
return put_ == null ?
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.getDefaultInstance() : put_;
}
}
/**
*
*看跌期权,不一定有该字段,由请求条件决定
*
*
* optional .Qot_Common.SecurityStaticInfo put = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder>
getPutFieldBuilder() {
if (putBuilder_ == null) {
putBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfo.Builder, com.moomoo.openapi.pb.QotCommon.SecurityStaticInfoOrBuilder>(
getPut(),
getParentForChildren(),
isClean());
put_ = null;
}
return putBuilder_;
}
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_GetOptionChain.OptionItem)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.OptionItem)
private static final com.moomoo.openapi.pb.QotGetOptionChain.OptionItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.OptionItem();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OptionItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptionItem(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.QotGetOptionChain.OptionItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OptionChainOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.OptionChain)
com.google.protobuf.MessageOrBuilder {
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
boolean hasStrikeTime();
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
java.lang.String getStrikeTime();
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
com.google.protobuf.ByteString
getStrikeTimeBytes();
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
java.util.List
getOptionList();
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem getOption(int index);
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
int getOptionCount();
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
java.util.List extends com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder>
getOptionOrBuilderList();
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder getOptionOrBuilder(
int index);
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
boolean hasStrikeTimestamp();
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
double getStrikeTimestamp();
}
/**
* Protobuf type {@code Qot_GetOptionChain.OptionChain}
*/
public static final class OptionChain extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.OptionChain)
OptionChainOrBuilder {
private static final long serialVersionUID = 0L;
// Use OptionChain.newBuilder() to construct.
private OptionChain(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OptionChain() {
strikeTime_ = "";
option_ = java.util.Collections.emptyList();
strikeTimestamp_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OptionChain(
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 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
option_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
option_.add(
input.readMessage(com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.PARSER, extensionRegistry));
break;
}
case 25: {
bitField0_ |= 0x00000002;
strikeTimestamp_ = input.readDouble();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
option_ = java.util.Collections.unmodifiableList(option_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionChain_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.class, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder.class);
}
private int bitField0_;
public static final int STRIKETIME_FIELD_NUMBER = 1;
private volatile java.lang.Object strikeTime_;
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
public boolean hasStrikeTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*行权日
*
*
* required 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;
}
}
/**
*
*行权日
*
*
* required 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 OPTION_FIELD_NUMBER = 2;
private java.util.List option_;
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public java.util.List getOptionList() {
return option_;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder>
getOptionOrBuilderList() {
return option_;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public int getOptionCount() {
return option_.size();
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem getOption(int index) {
return option_.get(index);
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder getOptionOrBuilder(
int index) {
return option_.get(index);
}
public static final int STRIKETIMESTAMP_FIELD_NUMBER = 3;
private double strikeTimestamp_;
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
public boolean hasStrikeTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
public double getStrikeTimestamp() {
return strikeTimestamp_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasStrikeTime()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getOptionCount(); i++) {
if (!getOption(i).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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, strikeTime_);
}
for (int i = 0; i < option_.size(); i++) {
output.writeMessage(2, option_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(3, strikeTimestamp_);
}
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_);
}
for (int i = 0; i < option_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, option_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, strikeTimestamp_);
}
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.QotGetOptionChain.OptionChain)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain other = (com.moomoo.openapi.pb.QotGetOptionChain.OptionChain) obj;
boolean result = true;
result = result && (hasStrikeTime() == other.hasStrikeTime());
if (hasStrikeTime()) {
result = result && getStrikeTime()
.equals(other.getStrikeTime());
}
result = result && getOptionList()
.equals(other.getOptionList());
result = result && (hasStrikeTimestamp() == other.hasStrikeTimestamp());
if (hasStrikeTimestamp()) {
result = result && (
java.lang.Double.doubleToLongBits(getStrikeTimestamp())
== java.lang.Double.doubleToLongBits(
other.getStrikeTimestamp()));
}
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 (getOptionCount() > 0) {
hash = (37 * hash) + OPTION_FIELD_NUMBER;
hash = (53 * hash) + getOptionList().hashCode();
}
if (hasStrikeTimestamp()) {
hash = (37 * hash) + STRIKETIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getStrikeTimestamp()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain 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.QotGetOptionChain.OptionChain parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain 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.QotGetOptionChain.OptionChain parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain 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.QotGetOptionChain.OptionChain parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain 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.QotGetOptionChain.OptionChain parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain 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.QotGetOptionChain.OptionChain 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_GetOptionChain.OptionChain}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.OptionChain)
com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionChain_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionChain_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.class, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOptionFieldBuilder();
}
}
public Builder clear() {
super.clear();
strikeTime_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (optionBuilder_ == null) {
option_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
optionBuilder_.clear();
}
strikeTimestamp_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_OptionChain_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain build() {
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain result = new com.moomoo.openapi.pb.QotGetOptionChain.OptionChain(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.strikeTime_ = strikeTime_;
if (optionBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
option_ = java.util.Collections.unmodifiableList(option_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.option_ = option_;
} else {
result.option_ = optionBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.strikeTimestamp_ = strikeTimestamp_;
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.QotGetOptionChain.OptionChain) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.OptionChain)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.OptionChain other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.getDefaultInstance()) return this;
if (other.hasStrikeTime()) {
bitField0_ |= 0x00000001;
strikeTime_ = other.strikeTime_;
onChanged();
}
if (optionBuilder_ == null) {
if (!other.option_.isEmpty()) {
if (option_.isEmpty()) {
option_ = other.option_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureOptionIsMutable();
option_.addAll(other.option_);
}
onChanged();
}
} else {
if (!other.option_.isEmpty()) {
if (optionBuilder_.isEmpty()) {
optionBuilder_.dispose();
optionBuilder_ = null;
option_ = other.option_;
bitField0_ = (bitField0_ & ~0x00000002);
optionBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionFieldBuilder() : null;
} else {
optionBuilder_.addAllMessages(other.option_);
}
}
}
if (other.hasStrikeTimestamp()) {
setStrikeTimestamp(other.getStrikeTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasStrikeTime()) {
return false;
}
for (int i = 0; i < getOptionCount(); i++) {
if (!getOption(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.QotGetOptionChain.OptionChain parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.OptionChain) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object strikeTime_ = "";
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
public boolean hasStrikeTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*行权日
*
*
* required 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;
}
}
/**
*
*行权日
*
*
* required 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;
}
}
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
public Builder setStrikeTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
strikeTime_ = value;
onChanged();
return this;
}
/**
*
*行权日
*
*
* required string strikeTime = 1;
*/
public Builder clearStrikeTime() {
bitField0_ = (bitField0_ & ~0x00000001);
strikeTime_ = getDefaultInstance().getStrikeTime();
onChanged();
return this;
}
/**
*
*行权日
*
*
* required 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 java.util.List option_ =
java.util.Collections.emptyList();
private void ensureOptionIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
option_ = new java.util.ArrayList(option_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder, com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder> optionBuilder_;
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public java.util.List getOptionList() {
if (optionBuilder_ == null) {
return java.util.Collections.unmodifiableList(option_);
} else {
return optionBuilder_.getMessageList();
}
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public int getOptionCount() {
if (optionBuilder_ == null) {
return option_.size();
} else {
return optionBuilder_.getCount();
}
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem getOption(int index) {
if (optionBuilder_ == null) {
return option_.get(index);
} else {
return optionBuilder_.getMessage(index);
}
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder setOption(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem value) {
if (optionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionIsMutable();
option_.set(index, value);
onChanged();
} else {
optionBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder setOption(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder builderForValue) {
if (optionBuilder_ == null) {
ensureOptionIsMutable();
option_.set(index, builderForValue.build());
onChanged();
} else {
optionBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder addOption(com.moomoo.openapi.pb.QotGetOptionChain.OptionItem value) {
if (optionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionIsMutable();
option_.add(value);
onChanged();
} else {
optionBuilder_.addMessage(value);
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder addOption(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem value) {
if (optionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionIsMutable();
option_.add(index, value);
onChanged();
} else {
optionBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder addOption(
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder builderForValue) {
if (optionBuilder_ == null) {
ensureOptionIsMutable();
option_.add(builderForValue.build());
onChanged();
} else {
optionBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder addOption(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder builderForValue) {
if (optionBuilder_ == null) {
ensureOptionIsMutable();
option_.add(index, builderForValue.build());
onChanged();
} else {
optionBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder addAllOption(
java.lang.Iterable extends com.moomoo.openapi.pb.QotGetOptionChain.OptionItem> values) {
if (optionBuilder_ == null) {
ensureOptionIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, option_);
onChanged();
} else {
optionBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder clearOption() {
if (optionBuilder_ == null) {
option_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
optionBuilder_.clear();
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public Builder removeOption(int index) {
if (optionBuilder_ == null) {
ensureOptionIsMutable();
option_.remove(index);
onChanged();
} else {
optionBuilder_.remove(index);
}
return this;
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder getOptionBuilder(
int index) {
return getOptionFieldBuilder().getBuilder(index);
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder getOptionOrBuilder(
int index) {
if (optionBuilder_ == null) {
return option_.get(index); } else {
return optionBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder>
getOptionOrBuilderList() {
if (optionBuilder_ != null) {
return optionBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(option_);
}
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder addOptionBuilder() {
return getOptionFieldBuilder().addBuilder(
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.getDefaultInstance());
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder addOptionBuilder(
int index) {
return getOptionFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.getDefaultInstance());
}
/**
*
*期权信息
*
*
* repeated .Qot_GetOptionChain.OptionItem option = 2;
*/
public java.util.List
getOptionBuilderList() {
return getOptionFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder, com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder>
getOptionFieldBuilder() {
if (optionBuilder_ == null) {
optionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.OptionItem, com.moomoo.openapi.pb.QotGetOptionChain.OptionItem.Builder, com.moomoo.openapi.pb.QotGetOptionChain.OptionItemOrBuilder>(
option_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
option_ = null;
}
return optionBuilder_;
}
private double strikeTimestamp_ ;
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
public boolean hasStrikeTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
public double getStrikeTimestamp() {
return strikeTimestamp_;
}
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
public Builder setStrikeTimestamp(double value) {
bitField0_ |= 0x00000004;
strikeTimestamp_ = value;
onChanged();
return this;
}
/**
*
*行权日时间戳
*
*
* optional double strikeTimestamp = 3;
*/
public Builder clearStrikeTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
strikeTimestamp_ = 0D;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetOptionChain.OptionChain)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.OptionChain)
private static final com.moomoo.openapi.pb.QotGetOptionChain.OptionChain DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.OptionChain();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.OptionChain getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public OptionChain parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OptionChain(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.QotGetOptionChain.OptionChain getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface S2COrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.S2C)
com.google.protobuf.MessageOrBuilder {
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
java.util.List
getOptionChainList();
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain getOptionChain(int index);
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
int getOptionChainCount();
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
java.util.List extends com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder>
getOptionChainOrBuilderList();
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder getOptionChainOrBuilder(
int index);
}
/**
* Protobuf type {@code Qot_GetOptionChain.S2C}
*/
public static final class S2C extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.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() {
optionChain_ = 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)) {
optionChain_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
optionChain_.add(
input.readMessage(com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.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)) {
optionChain_ = java.util.Collections.unmodifiableList(optionChain_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.S2C.class, com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder.class);
}
public static final int OPTIONCHAIN_FIELD_NUMBER = 1;
private java.util.List optionChain_;
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public java.util.List getOptionChainList() {
return optionChain_;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public java.util.List extends com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder>
getOptionChainOrBuilderList() {
return optionChain_;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public int getOptionChainCount() {
return optionChain_.size();
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain getOptionChain(int index) {
return optionChain_.get(index);
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder getOptionChainOrBuilder(
int index) {
return optionChain_.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 < getOptionChainCount(); i++) {
if (!getOptionChain(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 < optionChain_.size(); i++) {
output.writeMessage(1, optionChain_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < optionChain_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, optionChain_.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.QotGetOptionChain.S2C)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.S2C other = (com.moomoo.openapi.pb.QotGetOptionChain.S2C) obj;
boolean result = true;
result = result && getOptionChainList()
.equals(other.getOptionChainList());
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 (getOptionChainCount() > 0) {
hash = (37 * hash) + OPTIONCHAIN_FIELD_NUMBER;
hash = (53 * hash) + getOptionChainList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetOptionChain.S2C parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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_GetOptionChain.S2C}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.S2C)
com.moomoo.openapi.pb.QotGetOptionChain.S2COrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.S2C.class, com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.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) {
getOptionChainFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (optionChainBuilder_ == null) {
optionChain_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
optionChainBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_S2C_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.S2C getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.S2C.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.S2C build() {
com.moomoo.openapi.pb.QotGetOptionChain.S2C result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.S2C buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.S2C result = new com.moomoo.openapi.pb.QotGetOptionChain.S2C(this);
int from_bitField0_ = bitField0_;
if (optionChainBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
optionChain_ = java.util.Collections.unmodifiableList(optionChain_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.optionChain_ = optionChain_;
} else {
result.optionChain_ = optionChainBuilder_.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.QotGetOptionChain.S2C) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.S2C)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.S2C other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.S2C.getDefaultInstance()) return this;
if (optionChainBuilder_ == null) {
if (!other.optionChain_.isEmpty()) {
if (optionChain_.isEmpty()) {
optionChain_ = other.optionChain_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureOptionChainIsMutable();
optionChain_.addAll(other.optionChain_);
}
onChanged();
}
} else {
if (!other.optionChain_.isEmpty()) {
if (optionChainBuilder_.isEmpty()) {
optionChainBuilder_.dispose();
optionChainBuilder_ = null;
optionChain_ = other.optionChain_;
bitField0_ = (bitField0_ & ~0x00000001);
optionChainBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getOptionChainFieldBuilder() : null;
} else {
optionChainBuilder_.addAllMessages(other.optionChain_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getOptionChainCount(); i++) {
if (!getOptionChain(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.QotGetOptionChain.S2C parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.S2C) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List optionChain_ =
java.util.Collections.emptyList();
private void ensureOptionChainIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
optionChain_ = new java.util.ArrayList(optionChain_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder, com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder> optionChainBuilder_;
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public java.util.List getOptionChainList() {
if (optionChainBuilder_ == null) {
return java.util.Collections.unmodifiableList(optionChain_);
} else {
return optionChainBuilder_.getMessageList();
}
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public int getOptionChainCount() {
if (optionChainBuilder_ == null) {
return optionChain_.size();
} else {
return optionChainBuilder_.getCount();
}
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain getOptionChain(int index) {
if (optionChainBuilder_ == null) {
return optionChain_.get(index);
} else {
return optionChainBuilder_.getMessage(index);
}
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder setOptionChain(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain value) {
if (optionChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionChainIsMutable();
optionChain_.set(index, value);
onChanged();
} else {
optionChainBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder setOptionChain(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder builderForValue) {
if (optionChainBuilder_ == null) {
ensureOptionChainIsMutable();
optionChain_.set(index, builderForValue.build());
onChanged();
} else {
optionChainBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder addOptionChain(com.moomoo.openapi.pb.QotGetOptionChain.OptionChain value) {
if (optionChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionChainIsMutable();
optionChain_.add(value);
onChanged();
} else {
optionChainBuilder_.addMessage(value);
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder addOptionChain(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain value) {
if (optionChainBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionChainIsMutable();
optionChain_.add(index, value);
onChanged();
} else {
optionChainBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder addOptionChain(
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder builderForValue) {
if (optionChainBuilder_ == null) {
ensureOptionChainIsMutable();
optionChain_.add(builderForValue.build());
onChanged();
} else {
optionChainBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder addOptionChain(
int index, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder builderForValue) {
if (optionChainBuilder_ == null) {
ensureOptionChainIsMutable();
optionChain_.add(index, builderForValue.build());
onChanged();
} else {
optionChainBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder addAllOptionChain(
java.lang.Iterable extends com.moomoo.openapi.pb.QotGetOptionChain.OptionChain> values) {
if (optionChainBuilder_ == null) {
ensureOptionChainIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, optionChain_);
onChanged();
} else {
optionChainBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder clearOptionChain() {
if (optionChainBuilder_ == null) {
optionChain_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
optionChainBuilder_.clear();
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public Builder removeOptionChain(int index) {
if (optionChainBuilder_ == null) {
ensureOptionChainIsMutable();
optionChain_.remove(index);
onChanged();
} else {
optionChainBuilder_.remove(index);
}
return this;
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder getOptionChainBuilder(
int index) {
return getOptionChainFieldBuilder().getBuilder(index);
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder getOptionChainOrBuilder(
int index) {
if (optionChainBuilder_ == null) {
return optionChain_.get(index); } else {
return optionChainBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public java.util.List extends com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder>
getOptionChainOrBuilderList() {
if (optionChainBuilder_ != null) {
return optionChainBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(optionChain_);
}
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder addOptionChainBuilder() {
return getOptionChainFieldBuilder().addBuilder(
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.getDefaultInstance());
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder addOptionChainBuilder(
int index) {
return getOptionChainFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.getDefaultInstance());
}
/**
*
*期权链
*
*
* repeated .Qot_GetOptionChain.OptionChain optionChain = 1;
*/
public java.util.List
getOptionChainBuilderList() {
return getOptionChainFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder, com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder>
getOptionChainFieldBuilder() {
if (optionChainBuilder_ == null) {
optionChainBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.OptionChain, com.moomoo.openapi.pb.QotGetOptionChain.OptionChain.Builder, com.moomoo.openapi.pb.QotGetOptionChain.OptionChainOrBuilder>(
optionChain_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
optionChain_ = null;
}
return optionChainBuilder_;
}
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_GetOptionChain.S2C)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.S2C)
private static final com.moomoo.openapi.pb.QotGetOptionChain.S2C DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.S2C();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.Request)
com.google.protobuf.MessageOrBuilder {
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
boolean hasC2S();
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
com.moomoo.openapi.pb.QotGetOptionChain.C2S getC2S();
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
com.moomoo.openapi.pb.QotGetOptionChain.C2SOrBuilder getC2SOrBuilder();
}
/**
* Protobuf type {@code Qot_GetOptionChain.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.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.QotGetOptionChain.C2S.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = c2S_.toBuilder();
}
c2S_ = input.readMessage(com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.internal_static_Qot_GetOptionChain_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.Request.class, com.moomoo.openapi.pb.QotGetOptionChain.Request.Builder.class);
}
private int bitField0_;
public static final int C2S_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotGetOptionChain.C2S c2S_;
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.C2S getC2S() {
return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.C2S.getDefaultInstance() : c2S_;
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.C2SOrBuilder getC2SOrBuilder() {
return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.Request other = (com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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_GetOptionChain.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.Request)
com.moomoo.openapi.pb.QotGetOptionChain.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.Request.class, com.moomoo.openapi.pb.QotGetOptionChain.Request.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.internal_static_Qot_GetOptionChain_Request_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.Request getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.Request.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.Request build() {
com.moomoo.openapi.pb.QotGetOptionChain.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.Request buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.Request result = new com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.Request other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotGetOptionChain.C2S c2S_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.C2S, com.moomoo.openapi.pb.QotGetOptionChain.C2S.Builder, com.moomoo.openapi.pb.QotGetOptionChain.C2SOrBuilder> c2SBuilder_;
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.C2S getC2S() {
if (c2SBuilder_ == null) {
return c2S_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.C2S.getDefaultInstance() : c2S_;
} else {
return c2SBuilder_.getMessage();
}
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public Builder setC2S(com.moomoo.openapi.pb.QotGetOptionChain.C2S value) {
if (c2SBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
c2S_ = value;
onChanged();
} else {
c2SBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public Builder setC2S(
com.moomoo.openapi.pb.QotGetOptionChain.C2S.Builder builderForValue) {
if (c2SBuilder_ == null) {
c2S_ = builderForValue.build();
onChanged();
} else {
c2SBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public Builder mergeC2S(com.moomoo.openapi.pb.QotGetOptionChain.C2S value) {
if (c2SBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
c2S_ != null &&
c2S_ != com.moomoo.openapi.pb.QotGetOptionChain.C2S.getDefaultInstance()) {
c2S_ =
com.moomoo.openapi.pb.QotGetOptionChain.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial();
} else {
c2S_ = value;
}
onChanged();
} else {
c2SBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public Builder clearC2S() {
if (c2SBuilder_ == null) {
c2S_ = null;
onChanged();
} else {
c2SBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.C2S.Builder getC2SBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getC2SFieldBuilder().getBuilder();
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.C2SOrBuilder getC2SOrBuilder() {
if (c2SBuilder_ != null) {
return c2SBuilder_.getMessageOrBuilder();
} else {
return c2S_ == null ?
com.moomoo.openapi.pb.QotGetOptionChain.C2S.getDefaultInstance() : c2S_;
}
}
/**
* required .Qot_GetOptionChain.C2S c2s = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.C2S, com.moomoo.openapi.pb.QotGetOptionChain.C2S.Builder, com.moomoo.openapi.pb.QotGetOptionChain.C2SOrBuilder>
getC2SFieldBuilder() {
if (c2SBuilder_ == null) {
c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.C2S, com.moomoo.openapi.pb.QotGetOptionChain.C2S.Builder, com.moomoo.openapi.pb.QotGetOptionChain.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_GetOptionChain.Request)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.Request)
private static final com.moomoo.openapi.pb.QotGetOptionChain.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.Request();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetOptionChain.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_GetOptionChain.S2C s2c = 4;
*/
boolean hasS2C();
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotGetOptionChain.S2C getS2C();
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotGetOptionChain.S2COrBuilder getS2COrBuilder();
}
/**
* Protobuf type {@code Qot_GetOptionChain.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetOptionChain.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.QotGetOptionChain.S2C.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = s2C_.toBuilder();
}
s2C_ = input.readMessage(com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.internal_static_Qot_GetOptionChain_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.Response.class, com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C s2C_;
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.S2C getS2C() {
return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.S2C.getDefaultInstance() : s2C_;
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.S2COrBuilder getS2COrBuilder() {
return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetOptionChain.Response other = (com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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.QotGetOptionChain.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_GetOptionChain.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetOptionChain.Response)
com.moomoo.openapi.pb.QotGetOptionChain.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetOptionChain.internal_static_Qot_GetOptionChain_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetOptionChain.Response.class, com.moomoo.openapi.pb.QotGetOptionChain.Response.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.internal_static_Qot_GetOptionChain_Response_descriptor;
}
public com.moomoo.openapi.pb.QotGetOptionChain.Response getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetOptionChain.Response.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetOptionChain.Response build() {
com.moomoo.openapi.pb.QotGetOptionChain.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetOptionChain.Response buildPartial() {
com.moomoo.openapi.pb.QotGetOptionChain.Response result = new com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response) {
return mergeFrom((com.moomoo.openapi.pb.QotGetOptionChain.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetOptionChain.Response other) {
if (other == com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.S2C s2C_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.S2C, com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder, com.moomoo.openapi.pb.QotGetOptionChain.S2COrBuilder> s2CBuilder_;
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.S2C getS2C() {
if (s2CBuilder_ == null) {
return s2C_ == null ? com.moomoo.openapi.pb.QotGetOptionChain.S2C.getDefaultInstance() : s2C_;
} else {
return s2CBuilder_.getMessage();
}
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public Builder setS2C(com.moomoo.openapi.pb.QotGetOptionChain.S2C value) {
if (s2CBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
s2C_ = value;
onChanged();
} else {
s2CBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public Builder setS2C(
com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder builderForValue) {
if (s2CBuilder_ == null) {
s2C_ = builderForValue.build();
onChanged();
} else {
s2CBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public Builder mergeS2C(com.moomoo.openapi.pb.QotGetOptionChain.S2C value) {
if (s2CBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
s2C_ != null &&
s2C_ != com.moomoo.openapi.pb.QotGetOptionChain.S2C.getDefaultInstance()) {
s2C_ =
com.moomoo.openapi.pb.QotGetOptionChain.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial();
} else {
s2C_ = value;
}
onChanged();
} else {
s2CBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public Builder clearS2C() {
if (s2CBuilder_ == null) {
s2C_ = null;
onChanged();
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder getS2CBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getS2CFieldBuilder().getBuilder();
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetOptionChain.S2COrBuilder getS2COrBuilder() {
if (s2CBuilder_ != null) {
return s2CBuilder_.getMessageOrBuilder();
} else {
return s2C_ == null ?
com.moomoo.openapi.pb.QotGetOptionChain.S2C.getDefaultInstance() : s2C_;
}
}
/**
* optional .Qot_GetOptionChain.S2C s2c = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.S2C, com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder, com.moomoo.openapi.pb.QotGetOptionChain.S2COrBuilder>
getS2CFieldBuilder() {
if (s2CBuilder_ == null) {
s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetOptionChain.S2C, com.moomoo.openapi.pb.QotGetOptionChain.S2C.Builder, com.moomoo.openapi.pb.QotGetOptionChain.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_GetOptionChain.Response)
}
// @@protoc_insertion_point(class_scope:Qot_GetOptionChain.Response)
private static final com.moomoo.openapi.pb.QotGetOptionChain.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetOptionChain.Response();
}
public static com.moomoo.openapi.pb.QotGetOptionChain.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.QotGetOptionChain.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_DataFilter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_DataFilter_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_C2S_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_C2S_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_OptionItem_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_OptionItem_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_OptionChain_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_OptionChain_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_S2C_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_S2C_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetOptionChain_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetOptionChain_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\030Qot_GetOptionChain.proto\022\022Qot_GetOptio" +
"nChain\032\014Common.proto\032\020Qot_Common.proto\"\200" +
"\003\n\nDataFilter\022\034\n\024impliedVolatilityMin\030\001 " +
"\001(\001\022\034\n\024impliedVolatilityMax\030\002 \001(\001\022\020\n\010del" +
"taMin\030\003 \001(\001\022\020\n\010deltaMax\030\004 \001(\001\022\020\n\010gammaMi" +
"n\030\005 \001(\001\022\020\n\010gammaMax\030\006 \001(\001\022\017\n\007vegaMin\030\007 \001" +
"(\001\022\017\n\007vegaMax\030\010 \001(\001\022\020\n\010thetaMin\030\t \001(\001\022\020\n" +
"\010thetaMax\030\n \001(\001\022\016\n\006rhoMin\030\013 \001(\001\022\016\n\006rhoMa" +
"x\030\014 \001(\001\022\032\n\022netOpenInterestMin\030\r \001(\001\022\032\n\022n" +
"etOpenInterestMax\030\016 \001(\001\022\027\n\017openInterestM" +
"in\030\017 \001(\001\022\027\n\017openInterestMax\030\020 \001(\001\022\016\n\006vol" +
"Min\030\021 \001(\001\022\016\n\006volMax\030\022 \001(\001\"\274\001\n\003C2S\022#\n\005own" +
"er\030\001 \002(\0132\024.Qot_Common.Security\022\027\n\017indexO" +
"ptionType\030\006 \001(\005\022\014\n\004type\030\002 \001(\005\022\021\n\tconditi" +
"on\030\003 \001(\005\022\021\n\tbeginTime\030\004 \002(\t\022\017\n\007endTime\030\005" +
" \002(\t\0222\n\ndataFilter\030\007 \001(\0132\036.Qot_GetOption" +
"Chain.DataFilter\"g\n\nOptionItem\022,\n\004call\030\001" +
" \001(\0132\036.Qot_Common.SecurityStaticInfo\022+\n\003" +
"put\030\002 \001(\0132\036.Qot_Common.SecurityStaticInf" +
"o\"j\n\013OptionChain\022\022\n\nstrikeTime\030\001 \002(\t\022.\n\006" +
"option\030\002 \003(\0132\036.Qot_GetOptionChain.Option" +
"Item\022\027\n\017strikeTimestamp\030\003 \001(\001\";\n\003S2C\0224\n\013" +
"optionChain\030\001 \003(\0132\037.Qot_GetOptionChain.O" +
"ptionChain\"/\n\007Request\022$\n\003c2s\030\001 \002(\0132\027.Qot" +
"_GetOptionChain.C2S\"h\n\010Response\022\025\n\007retTy" +
"pe\030\001 \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007errCod" +
"e\030\003 \001(\005\022$\n\003s2c\030\004 \001(\0132\027.Qot_GetOptionChai" +
"n.S2C*b\n\016OptionCondType\022\031\n\025OptionCondTyp" +
"e_Unknow\020\000\022\031\n\025OptionCondType_WithIn\020\001\022\032\n" +
"\026OptionCondType_Outside\020\002BJ\n\025com.moomoo." +
"openapi.pbZ1github.com/futuopen/ftapi4go" +
"/pb/qotgetoptionchain"
};
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_GetOptionChain_DataFilter_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Qot_GetOptionChain_DataFilter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_DataFilter_descriptor,
new java.lang.String[] { "ImpliedVolatilityMin", "ImpliedVolatilityMax", "DeltaMin", "DeltaMax", "GammaMin", "GammaMax", "VegaMin", "VegaMax", "ThetaMin", "ThetaMax", "RhoMin", "RhoMax", "NetOpenInterestMin", "NetOpenInterestMax", "OpenInterestMin", "OpenInterestMax", "VolMin", "VolMax", });
internal_static_Qot_GetOptionChain_C2S_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Qot_GetOptionChain_C2S_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_C2S_descriptor,
new java.lang.String[] { "Owner", "IndexOptionType", "Type", "Condition", "BeginTime", "EndTime", "DataFilter", });
internal_static_Qot_GetOptionChain_OptionItem_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Qot_GetOptionChain_OptionItem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_OptionItem_descriptor,
new java.lang.String[] { "Call", "Put", });
internal_static_Qot_GetOptionChain_OptionChain_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Qot_GetOptionChain_OptionChain_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_OptionChain_descriptor,
new java.lang.String[] { "StrikeTime", "Option", "StrikeTimestamp", });
internal_static_Qot_GetOptionChain_S2C_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Qot_GetOptionChain_S2C_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_S2C_descriptor,
new java.lang.String[] { "OptionChain", });
internal_static_Qot_GetOptionChain_Request_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_Qot_GetOptionChain_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_Request_descriptor,
new java.lang.String[] { "C2S", });
internal_static_Qot_GetOptionChain_Response_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_Qot_GetOptionChain_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetOptionChain_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)
}