com.moomoo.openapi.pb.TrdGetMarginRatio 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: Trd_GetMarginRatio.proto
package com.moomoo.openapi.pb;
public final class TrdGetMarginRatio {
private TrdGetMarginRatio() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface MarginRatioInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:Trd_GetMarginRatio.MarginRatioInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
boolean hasSecurity();
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
com.moomoo.openapi.pb.QotCommon.Security getSecurity();
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder();
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
boolean hasIsLongPermit();
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
boolean getIsLongPermit();
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
boolean hasIsShortPermit();
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
boolean getIsShortPermit();
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
boolean hasShortPoolRemain();
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
double getShortPoolRemain();
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
boolean hasShortFeeRate();
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
double getShortFeeRate();
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
boolean hasAlertLongRatio();
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
double getAlertLongRatio();
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
boolean hasAlertShortRatio();
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
double getAlertShortRatio();
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
boolean hasImLongRatio();
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
double getImLongRatio();
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
boolean hasImShortRatio();
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
double getImShortRatio();
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
boolean hasMcmLongRatio();
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
double getMcmLongRatio();
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
boolean hasMcmShortRatio();
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
double getMcmShortRatio();
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
boolean hasMmLongRatio();
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
double getMmLongRatio();
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
boolean hasMmShortRatio();
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
double getMmShortRatio();
}
/**
* Protobuf type {@code Trd_GetMarginRatio.MarginRatioInfo}
*/
public static final class MarginRatioInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Trd_GetMarginRatio.MarginRatioInfo)
MarginRatioInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MarginRatioInfo.newBuilder() to construct.
private MarginRatioInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MarginRatioInfo() {
isLongPermit_ = false;
isShortPermit_ = false;
shortPoolRemain_ = 0D;
shortFeeRate_ = 0D;
alertLongRatio_ = 0D;
alertShortRatio_ = 0D;
imLongRatio_ = 0D;
imShortRatio_ = 0D;
mcmLongRatio_ = 0D;
mcmShortRatio_ = 0D;
mmLongRatio_ = 0D;
mmShortRatio_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MarginRatioInfo(
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 = security_.toBuilder();
}
security_ = input.readMessage(com.moomoo.openapi.pb.QotCommon.Security.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(security_);
security_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
isLongPermit_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
isShortPermit_ = input.readBool();
break;
}
case 33: {
bitField0_ |= 0x00000008;
shortPoolRemain_ = input.readDouble();
break;
}
case 41: {
bitField0_ |= 0x00000010;
shortFeeRate_ = input.readDouble();
break;
}
case 49: {
bitField0_ |= 0x00000020;
alertLongRatio_ = input.readDouble();
break;
}
case 57: {
bitField0_ |= 0x00000040;
alertShortRatio_ = input.readDouble();
break;
}
case 65: {
bitField0_ |= 0x00000080;
imLongRatio_ = input.readDouble();
break;
}
case 73: {
bitField0_ |= 0x00000100;
imShortRatio_ = input.readDouble();
break;
}
case 81: {
bitField0_ |= 0x00000200;
mcmLongRatio_ = input.readDouble();
break;
}
case 89: {
bitField0_ |= 0x00000400;
mcmShortRatio_ = input.readDouble();
break;
}
case 97: {
bitField0_ |= 0x00000800;
mmLongRatio_ = input.readDouble();
break;
}
case 105: {
bitField0_ |= 0x00001000;
mmShortRatio_ = 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.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_MarginRatioInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_MarginRatioInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.class, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder.class);
}
private int bitField0_;
public static final int SECURITY_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotCommon.Security security_;
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public boolean hasSecurity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurity() {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder() {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
public static final int ISLONGPERMIT_FIELD_NUMBER = 2;
private boolean isLongPermit_;
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
public boolean hasIsLongPermit() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
public boolean getIsLongPermit() {
return isLongPermit_;
}
public static final int ISSHORTPERMIT_FIELD_NUMBER = 3;
private boolean isShortPermit_;
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
public boolean hasIsShortPermit() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
public boolean getIsShortPermit() {
return isShortPermit_;
}
public static final int SHORTPOOLREMAIN_FIELD_NUMBER = 4;
private double shortPoolRemain_;
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
public boolean hasShortPoolRemain() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
public double getShortPoolRemain() {
return shortPoolRemain_;
}
public static final int SHORTFEERATE_FIELD_NUMBER = 5;
private double shortFeeRate_;
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
public boolean hasShortFeeRate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
public double getShortFeeRate() {
return shortFeeRate_;
}
public static final int ALERTLONGRATIO_FIELD_NUMBER = 6;
private double alertLongRatio_;
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
public boolean hasAlertLongRatio() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
public double getAlertLongRatio() {
return alertLongRatio_;
}
public static final int ALERTSHORTRATIO_FIELD_NUMBER = 7;
private double alertShortRatio_;
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
public boolean hasAlertShortRatio() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
public double getAlertShortRatio() {
return alertShortRatio_;
}
public static final int IMLONGRATIO_FIELD_NUMBER = 8;
private double imLongRatio_;
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
public boolean hasImLongRatio() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
public double getImLongRatio() {
return imLongRatio_;
}
public static final int IMSHORTRATIO_FIELD_NUMBER = 9;
private double imShortRatio_;
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
public boolean hasImShortRatio() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
public double getImShortRatio() {
return imShortRatio_;
}
public static final int MCMLONGRATIO_FIELD_NUMBER = 10;
private double mcmLongRatio_;
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
public boolean hasMcmLongRatio() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
public double getMcmLongRatio() {
return mcmLongRatio_;
}
public static final int MCMSHORTRATIO_FIELD_NUMBER = 11;
private double mcmShortRatio_;
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
public boolean hasMcmShortRatio() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
public double getMcmShortRatio() {
return mcmShortRatio_;
}
public static final int MMLONGRATIO_FIELD_NUMBER = 12;
private double mmLongRatio_;
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
public boolean hasMmLongRatio() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
public double getMmLongRatio() {
return mmLongRatio_;
}
public static final int MMSHORTRATIO_FIELD_NUMBER = 13;
private double mmShortRatio_;
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
public boolean hasMmShortRatio() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
public double getMmShortRatio() {
return mmShortRatio_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSecurity()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSecurity().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, getSecurity());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBool(2, isLongPermit_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBool(3, isShortPermit_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, shortPoolRemain_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeDouble(5, shortFeeRate_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeDouble(6, alertLongRatio_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeDouble(7, alertShortRatio_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeDouble(8, imLongRatio_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeDouble(9, imShortRatio_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeDouble(10, mcmLongRatio_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeDouble(11, mcmShortRatio_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeDouble(12, mmLongRatio_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeDouble(13, mmShortRatio_);
}
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, getSecurity());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isLongPermit_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isShortPermit_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, shortPoolRemain_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, shortFeeRate_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, alertLongRatio_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, alertShortRatio_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, imLongRatio_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(9, imShortRatio_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(10, mcmLongRatio_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(11, mcmShortRatio_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, mmLongRatio_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(13, mmShortRatio_);
}
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.TrdGetMarginRatio.MarginRatioInfo)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo other = (com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo) obj;
boolean result = true;
result = result && (hasSecurity() == other.hasSecurity());
if (hasSecurity()) {
result = result && getSecurity()
.equals(other.getSecurity());
}
result = result && (hasIsLongPermit() == other.hasIsLongPermit());
if (hasIsLongPermit()) {
result = result && (getIsLongPermit()
== other.getIsLongPermit());
}
result = result && (hasIsShortPermit() == other.hasIsShortPermit());
if (hasIsShortPermit()) {
result = result && (getIsShortPermit()
== other.getIsShortPermit());
}
result = result && (hasShortPoolRemain() == other.hasShortPoolRemain());
if (hasShortPoolRemain()) {
result = result && (
java.lang.Double.doubleToLongBits(getShortPoolRemain())
== java.lang.Double.doubleToLongBits(
other.getShortPoolRemain()));
}
result = result && (hasShortFeeRate() == other.hasShortFeeRate());
if (hasShortFeeRate()) {
result = result && (
java.lang.Double.doubleToLongBits(getShortFeeRate())
== java.lang.Double.doubleToLongBits(
other.getShortFeeRate()));
}
result = result && (hasAlertLongRatio() == other.hasAlertLongRatio());
if (hasAlertLongRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getAlertLongRatio())
== java.lang.Double.doubleToLongBits(
other.getAlertLongRatio()));
}
result = result && (hasAlertShortRatio() == other.hasAlertShortRatio());
if (hasAlertShortRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getAlertShortRatio())
== java.lang.Double.doubleToLongBits(
other.getAlertShortRatio()));
}
result = result && (hasImLongRatio() == other.hasImLongRatio());
if (hasImLongRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getImLongRatio())
== java.lang.Double.doubleToLongBits(
other.getImLongRatio()));
}
result = result && (hasImShortRatio() == other.hasImShortRatio());
if (hasImShortRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getImShortRatio())
== java.lang.Double.doubleToLongBits(
other.getImShortRatio()));
}
result = result && (hasMcmLongRatio() == other.hasMcmLongRatio());
if (hasMcmLongRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getMcmLongRatio())
== java.lang.Double.doubleToLongBits(
other.getMcmLongRatio()));
}
result = result && (hasMcmShortRatio() == other.hasMcmShortRatio());
if (hasMcmShortRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getMcmShortRatio())
== java.lang.Double.doubleToLongBits(
other.getMcmShortRatio()));
}
result = result && (hasMmLongRatio() == other.hasMmLongRatio());
if (hasMmLongRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getMmLongRatio())
== java.lang.Double.doubleToLongBits(
other.getMmLongRatio()));
}
result = result && (hasMmShortRatio() == other.hasMmShortRatio());
if (hasMmShortRatio()) {
result = result && (
java.lang.Double.doubleToLongBits(getMmShortRatio())
== java.lang.Double.doubleToLongBits(
other.getMmShortRatio()));
}
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 (hasSecurity()) {
hash = (37 * hash) + SECURITY_FIELD_NUMBER;
hash = (53 * hash) + getSecurity().hashCode();
}
if (hasIsLongPermit()) {
hash = (37 * hash) + ISLONGPERMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsLongPermit());
}
if (hasIsShortPermit()) {
hash = (37 * hash) + ISSHORTPERMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsShortPermit());
}
if (hasShortPoolRemain()) {
hash = (37 * hash) + SHORTPOOLREMAIN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getShortPoolRemain()));
}
if (hasShortFeeRate()) {
hash = (37 * hash) + SHORTFEERATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getShortFeeRate()));
}
if (hasAlertLongRatio()) {
hash = (37 * hash) + ALERTLONGRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAlertLongRatio()));
}
if (hasAlertShortRatio()) {
hash = (37 * hash) + ALERTSHORTRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAlertShortRatio()));
}
if (hasImLongRatio()) {
hash = (37 * hash) + IMLONGRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getImLongRatio()));
}
if (hasImShortRatio()) {
hash = (37 * hash) + IMSHORTRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getImShortRatio()));
}
if (hasMcmLongRatio()) {
hash = (37 * hash) + MCMLONGRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMcmLongRatio()));
}
if (hasMcmShortRatio()) {
hash = (37 * hash) + MCMSHORTRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMcmShortRatio()));
}
if (hasMmLongRatio()) {
hash = (37 * hash) + MMLONGRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMmLongRatio()));
}
if (hasMmShortRatio()) {
hash = (37 * hash) + MMSHORTRATIO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMmShortRatio()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo 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.TrdGetMarginRatio.MarginRatioInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo 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.TrdGetMarginRatio.MarginRatioInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo 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.TrdGetMarginRatio.MarginRatioInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo 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.TrdGetMarginRatio.MarginRatioInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo 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.TrdGetMarginRatio.MarginRatioInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Trd_GetMarginRatio.MarginRatioInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Trd_GetMarginRatio.MarginRatioInfo)
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_MarginRatioInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_MarginRatioInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.class, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder.class);
}
// Construct using com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecurityFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (securityBuilder_ == null) {
security_ = null;
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
isLongPermit_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
isShortPermit_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
shortPoolRemain_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
shortFeeRate_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
alertLongRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000020);
alertShortRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000040);
imLongRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000080);
imShortRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000100);
mcmLongRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000200);
mcmShortRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000400);
mmLongRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00000800);
mmShortRatio_ = 0D;
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_MarginRatioInfo_descriptor;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo getDefaultInstanceForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.getDefaultInstance();
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo build() {
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo buildPartial() {
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo result = new com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (securityBuilder_ == null) {
result.security_ = security_;
} else {
result.security_ = securityBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.isLongPermit_ = isLongPermit_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.isShortPermit_ = isShortPermit_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.shortPoolRemain_ = shortPoolRemain_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.shortFeeRate_ = shortFeeRate_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.alertLongRatio_ = alertLongRatio_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.alertShortRatio_ = alertShortRatio_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.imLongRatio_ = imLongRatio_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.imShortRatio_ = imShortRatio_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.mcmLongRatio_ = mcmLongRatio_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.mcmShortRatio_ = mcmShortRatio_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.mmLongRatio_ = mmLongRatio_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.mmShortRatio_ = mmShortRatio_;
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.TrdGetMarginRatio.MarginRatioInfo) {
return mergeFrom((com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo other) {
if (other == com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.getDefaultInstance()) return this;
if (other.hasSecurity()) {
mergeSecurity(other.getSecurity());
}
if (other.hasIsLongPermit()) {
setIsLongPermit(other.getIsLongPermit());
}
if (other.hasIsShortPermit()) {
setIsShortPermit(other.getIsShortPermit());
}
if (other.hasShortPoolRemain()) {
setShortPoolRemain(other.getShortPoolRemain());
}
if (other.hasShortFeeRate()) {
setShortFeeRate(other.getShortFeeRate());
}
if (other.hasAlertLongRatio()) {
setAlertLongRatio(other.getAlertLongRatio());
}
if (other.hasAlertShortRatio()) {
setAlertShortRatio(other.getAlertShortRatio());
}
if (other.hasImLongRatio()) {
setImLongRatio(other.getImLongRatio());
}
if (other.hasImShortRatio()) {
setImShortRatio(other.getImShortRatio());
}
if (other.hasMcmLongRatio()) {
setMcmLongRatio(other.getMcmLongRatio());
}
if (other.hasMcmShortRatio()) {
setMcmShortRatio(other.getMcmShortRatio());
}
if (other.hasMmLongRatio()) {
setMmLongRatio(other.getMmLongRatio());
}
if (other.hasMmShortRatio()) {
setMmShortRatio(other.getMmShortRatio());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasSecurity()) {
return false;
}
if (!getSecurity().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.TrdGetMarginRatio.MarginRatioInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotCommon.Security security_ = 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> securityBuilder_;
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public boolean hasSecurity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurity() {
if (securityBuilder_ == null) {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
} else {
return securityBuilder_.getMessage();
}
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder setSecurity(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
security_ = value;
onChanged();
} else {
securityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder setSecurity(
com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) {
if (securityBuilder_ == null) {
security_ = builderForValue.build();
onChanged();
} else {
securityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder mergeSecurity(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
security_ != null &&
security_ != com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance()) {
security_ =
com.moomoo.openapi.pb.QotCommon.Security.newBuilder(security_).mergeFrom(value).buildPartial();
} else {
security_ = value;
}
onChanged();
} else {
securityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder clearSecurity() {
if (securityBuilder_ == null) {
security_ = null;
onChanged();
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security.Builder getSecurityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSecurityFieldBuilder().getBuilder();
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder() {
if (securityBuilder_ != null) {
return securityBuilder_.getMessageOrBuilder();
} else {
return security_ == null ?
com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
}
/**
*
*股票
*
*
* required .Qot_Common.Security security = 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>
getSecurityFieldBuilder() {
if (securityBuilder_ == null) {
securityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>(
getSecurity(),
getParentForChildren(),
isClean());
security_ = null;
}
return securityBuilder_;
}
private boolean isLongPermit_ ;
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
public boolean hasIsLongPermit() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
public boolean getIsLongPermit() {
return isLongPermit_;
}
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
public Builder setIsLongPermit(boolean value) {
bitField0_ |= 0x00000002;
isLongPermit_ = value;
onChanged();
return this;
}
/**
*
*是否允许融资
*
*
* optional bool isLongPermit = 2;
*/
public Builder clearIsLongPermit() {
bitField0_ = (bitField0_ & ~0x00000002);
isLongPermit_ = false;
onChanged();
return this;
}
private boolean isShortPermit_ ;
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
public boolean hasIsShortPermit() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
public boolean getIsShortPermit() {
return isShortPermit_;
}
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
public Builder setIsShortPermit(boolean value) {
bitField0_ |= 0x00000004;
isShortPermit_ = value;
onChanged();
return this;
}
/**
*
*是否允许融券
*
*
* optional bool isShortPermit = 3;
*/
public Builder clearIsShortPermit() {
bitField0_ = (bitField0_ & ~0x00000004);
isShortPermit_ = false;
onChanged();
return this;
}
private double shortPoolRemain_ ;
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
public boolean hasShortPoolRemain() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
public double getShortPoolRemain() {
return shortPoolRemain_;
}
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
public Builder setShortPoolRemain(double value) {
bitField0_ |= 0x00000008;
shortPoolRemain_ = value;
onChanged();
return this;
}
/**
*
*卖空池剩余量
*
*
* optional double shortPoolRemain = 4;
*/
public Builder clearShortPoolRemain() {
bitField0_ = (bitField0_ & ~0x00000008);
shortPoolRemain_ = 0D;
onChanged();
return this;
}
private double shortFeeRate_ ;
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
public boolean hasShortFeeRate() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
public double getShortFeeRate() {
return shortFeeRate_;
}
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
public Builder setShortFeeRate(double value) {
bitField0_ |= 0x00000010;
shortFeeRate_ = value;
onChanged();
return this;
}
/**
*
*融券参考利率
*
*
* optional double shortFeeRate = 5;
*/
public Builder clearShortFeeRate() {
bitField0_ = (bitField0_ & ~0x00000010);
shortFeeRate_ = 0D;
onChanged();
return this;
}
private double alertLongRatio_ ;
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
public boolean hasAlertLongRatio() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
public double getAlertLongRatio() {
return alertLongRatio_;
}
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
public Builder setAlertLongRatio(double value) {
bitField0_ |= 0x00000020;
alertLongRatio_ = value;
onChanged();
return this;
}
/**
*
*融资预警比率
*
*
* optional double alertLongRatio = 6;
*/
public Builder clearAlertLongRatio() {
bitField0_ = (bitField0_ & ~0x00000020);
alertLongRatio_ = 0D;
onChanged();
return this;
}
private double alertShortRatio_ ;
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
public boolean hasAlertShortRatio() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
public double getAlertShortRatio() {
return alertShortRatio_;
}
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
public Builder setAlertShortRatio(double value) {
bitField0_ |= 0x00000040;
alertShortRatio_ = value;
onChanged();
return this;
}
/**
*
*融券预警比率
*
*
* optional double alertShortRatio = 7;
*/
public Builder clearAlertShortRatio() {
bitField0_ = (bitField0_ & ~0x00000040);
alertShortRatio_ = 0D;
onChanged();
return this;
}
private double imLongRatio_ ;
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
public boolean hasImLongRatio() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
public double getImLongRatio() {
return imLongRatio_;
}
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
public Builder setImLongRatio(double value) {
bitField0_ |= 0x00000080;
imLongRatio_ = value;
onChanged();
return this;
}
/**
*
*融资初始保证金率
*
*
* optional double imLongRatio = 8;
*/
public Builder clearImLongRatio() {
bitField0_ = (bitField0_ & ~0x00000080);
imLongRatio_ = 0D;
onChanged();
return this;
}
private double imShortRatio_ ;
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
public boolean hasImShortRatio() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
public double getImShortRatio() {
return imShortRatio_;
}
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
public Builder setImShortRatio(double value) {
bitField0_ |= 0x00000100;
imShortRatio_ = value;
onChanged();
return this;
}
/**
*
*融券初始保证金率
*
*
* optional double imShortRatio = 9;
*/
public Builder clearImShortRatio() {
bitField0_ = (bitField0_ & ~0x00000100);
imShortRatio_ = 0D;
onChanged();
return this;
}
private double mcmLongRatio_ ;
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
public boolean hasMcmLongRatio() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
public double getMcmLongRatio() {
return mcmLongRatio_;
}
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
public Builder setMcmLongRatio(double value) {
bitField0_ |= 0x00000200;
mcmLongRatio_ = value;
onChanged();
return this;
}
/**
*
*融资 margin call 保证金率
*
*
* optional double mcmLongRatio = 10;
*/
public Builder clearMcmLongRatio() {
bitField0_ = (bitField0_ & ~0x00000200);
mcmLongRatio_ = 0D;
onChanged();
return this;
}
private double mcmShortRatio_ ;
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
public boolean hasMcmShortRatio() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
public double getMcmShortRatio() {
return mcmShortRatio_;
}
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
public Builder setMcmShortRatio(double value) {
bitField0_ |= 0x00000400;
mcmShortRatio_ = value;
onChanged();
return this;
}
/**
*
*融券 margin call 保证金率
*
*
* optional double mcmShortRatio = 11;
*/
public Builder clearMcmShortRatio() {
bitField0_ = (bitField0_ & ~0x00000400);
mcmShortRatio_ = 0D;
onChanged();
return this;
}
private double mmLongRatio_ ;
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
public boolean hasMmLongRatio() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
public double getMmLongRatio() {
return mmLongRatio_;
}
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
public Builder setMmLongRatio(double value) {
bitField0_ |= 0x00000800;
mmLongRatio_ = value;
onChanged();
return this;
}
/**
*
*融资维持保证金率
*
*
* optional double mmLongRatio = 12;
*/
public Builder clearMmLongRatio() {
bitField0_ = (bitField0_ & ~0x00000800);
mmLongRatio_ = 0D;
onChanged();
return this;
}
private double mmShortRatio_ ;
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
public boolean hasMmShortRatio() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
public double getMmShortRatio() {
return mmShortRatio_;
}
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
public Builder setMmShortRatio(double value) {
bitField0_ |= 0x00001000;
mmShortRatio_ = value;
onChanged();
return this;
}
/**
*
*融券维持保证金率
*
*
* optional double mmShortRatio = 13;
*/
public Builder clearMmShortRatio() {
bitField0_ = (bitField0_ & ~0x00001000);
mmShortRatio_ = 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:Trd_GetMarginRatio.MarginRatioInfo)
}
// @@protoc_insertion_point(class_scope:Trd_GetMarginRatio.MarginRatioInfo)
private static final com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo();
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public MarginRatioInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MarginRatioInfo(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.TrdGetMarginRatio.MarginRatioInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface C2SOrBuilder extends
// @@protoc_insertion_point(interface_extends:Trd_GetMarginRatio.C2S)
com.google.protobuf.MessageOrBuilder {
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
boolean hasHeader();
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader();
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder();
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
java.util.List
getSecurityListList();
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
com.moomoo.openapi.pb.QotCommon.Security getSecurityList(int index);
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
int getSecurityListCount();
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
java.util.List extends com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>
getSecurityListOrBuilderList();
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityListOrBuilder(
int index);
}
/**
* Protobuf type {@code Trd_GetMarginRatio.C2S}
*/
public static final class C2S extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Trd_GetMarginRatio.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() {
securityList_ = java.util.Collections.emptyList();
}
@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.TrdCommon.TrdHeader.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.moomoo.openapi.pb.TrdCommon.TrdHeader.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
securityList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
securityList_.add(
input.readMessage(com.moomoo.openapi.pb.QotCommon.Security.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_ & 0x00000002) == 0x00000002)) {
securityList_ = java.util.Collections.unmodifiableList(securityList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.class, com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder.class);
}
private int bitField0_;
public static final int HEADER_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_;
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() {
return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() {
return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
}
public static final int SECURITYLIST_FIELD_NUMBER = 2;
private java.util.List securityList_;
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public java.util.List getSecurityListList() {
return securityList_;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>
getSecurityListOrBuilderList() {
return securityList_;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public int getSecurityListCount() {
return securityList_.size();
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurityList(int index) {
return securityList_.get(index);
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityListOrBuilder(
int index) {
return securityList_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasHeader()) {
memoizedIsInitialized = 0;
return false;
}
if (!getHeader().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getSecurityListCount(); i++) {
if (!getSecurityList(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)) {
output.writeMessage(1, getHeader());
}
for (int i = 0; i < securityList_.size(); i++) {
output.writeMessage(2, securityList_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
for (int i = 0; i < securityList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, securityList_.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.TrdGetMarginRatio.C2S)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S other = (com.moomoo.openapi.pb.TrdGetMarginRatio.C2S) obj;
boolean result = true;
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
result = result && getSecurityListList()
.equals(other.getSecurityListList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (getSecurityListCount() > 0) {
hash = (37 * hash) + SECURITYLIST_FIELD_NUMBER;
hash = (53 * hash) + getSecurityListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.C2S parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.C2S parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.C2S parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.C2S parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.C2S parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.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 Trd_GetMarginRatio.C2S}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Trd_GetMarginRatio.C2S)
com.moomoo.openapi.pb.TrdGetMarginRatio.C2SOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.class, com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder.class);
}
// Construct using com.moomoo.openapi.pb.TrdGetMarginRatio.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) {
getHeaderFieldBuilder();
getSecurityListFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (securityListBuilder_ == null) {
securityList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
securityListBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_C2S_descriptor;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2S getDefaultInstanceForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.getDefaultInstance();
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2S build() {
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2S buildPartial() {
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S result = new com.moomoo.openapi.pb.TrdGetMarginRatio.C2S(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (securityListBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
securityList_ = java.util.Collections.unmodifiableList(securityList_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.securityList_ = securityList_;
} else {
result.securityList_ = securityListBuilder_.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.TrdGetMarginRatio.C2S) {
return mergeFrom((com.moomoo.openapi.pb.TrdGetMarginRatio.C2S)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.TrdGetMarginRatio.C2S other) {
if (other == com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (securityListBuilder_ == null) {
if (!other.securityList_.isEmpty()) {
if (securityList_.isEmpty()) {
securityList_ = other.securityList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSecurityListIsMutable();
securityList_.addAll(other.securityList_);
}
onChanged();
}
} else {
if (!other.securityList_.isEmpty()) {
if (securityListBuilder_.isEmpty()) {
securityListBuilder_.dispose();
securityListBuilder_ = null;
securityList_ = other.securityList_;
bitField0_ = (bitField0_ & ~0x00000002);
securityListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSecurityListFieldBuilder() : null;
} else {
securityListBuilder_.addAllMessages(other.securityList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasHeader()) {
return false;
}
if (!getHeader().isInitialized()) {
return false;
}
for (int i = 0; i < getSecurityListCount(); i++) {
if (!getSecurityList(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.TrdGetMarginRatio.C2S parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.TrdGetMarginRatio.C2S) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> headerBuilder_;
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder setHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder setHeader(
com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder mergeHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
header_ != null &&
header_ != com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance()) {
header_ =
com.moomoo.openapi.pb.TrdCommon.TrdHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
}
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private java.util.List securityList_ =
java.util.Collections.emptyList();
private void ensureSecurityListIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
securityList_ = new java.util.ArrayList(securityList_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder> securityListBuilder_;
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public java.util.List getSecurityListList() {
if (securityListBuilder_ == null) {
return java.util.Collections.unmodifiableList(securityList_);
} else {
return securityListBuilder_.getMessageList();
}
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public int getSecurityListCount() {
if (securityListBuilder_ == null) {
return securityList_.size();
} else {
return securityListBuilder_.getCount();
}
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurityList(int index) {
if (securityListBuilder_ == null) {
return securityList_.get(index);
} else {
return securityListBuilder_.getMessage(index);
}
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder setSecurityList(
int index, com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityListIsMutable();
securityList_.set(index, value);
onChanged();
} else {
securityListBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder setSecurityList(
int index, com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) {
if (securityListBuilder_ == null) {
ensureSecurityListIsMutable();
securityList_.set(index, builderForValue.build());
onChanged();
} else {
securityListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder addSecurityList(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityListIsMutable();
securityList_.add(value);
onChanged();
} else {
securityListBuilder_.addMessage(value);
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder addSecurityList(
int index, com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSecurityListIsMutable();
securityList_.add(index, value);
onChanged();
} else {
securityListBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder addSecurityList(
com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) {
if (securityListBuilder_ == null) {
ensureSecurityListIsMutable();
securityList_.add(builderForValue.build());
onChanged();
} else {
securityListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder addSecurityList(
int index, com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) {
if (securityListBuilder_ == null) {
ensureSecurityListIsMutable();
securityList_.add(index, builderForValue.build());
onChanged();
} else {
securityListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder addAllSecurityList(
java.lang.Iterable extends com.moomoo.openapi.pb.QotCommon.Security> values) {
if (securityListBuilder_ == null) {
ensureSecurityListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, securityList_);
onChanged();
} else {
securityListBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder clearSecurityList() {
if (securityListBuilder_ == null) {
securityList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
securityListBuilder_.clear();
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public Builder removeSecurityList(int index) {
if (securityListBuilder_ == null) {
ensureSecurityListIsMutable();
securityList_.remove(index);
onChanged();
} else {
securityListBuilder_.remove(index);
}
return this;
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.Security.Builder getSecurityListBuilder(
int index) {
return getSecurityListFieldBuilder().getBuilder(index);
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityListOrBuilder(
int index) {
if (securityListBuilder_ == null) {
return securityList_.get(index); } else {
return securityListBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>
getSecurityListOrBuilderList() {
if (securityListBuilder_ != null) {
return securityListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(securityList_);
}
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.Security.Builder addSecurityListBuilder() {
return getSecurityListFieldBuilder().addBuilder(
com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance());
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public com.moomoo.openapi.pb.QotCommon.Security.Builder addSecurityListBuilder(
int index) {
return getSecurityListFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance());
}
/**
*
*股票
*
*
* repeated .Qot_Common.Security securityList = 2;
*/
public java.util.List
getSecurityListBuilderList() {
return getSecurityListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>
getSecurityListFieldBuilder() {
if (securityListBuilder_ == null) {
securityListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>(
securityList_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
securityList_ = null;
}
return securityListBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Trd_GetMarginRatio.C2S)
}
// @@protoc_insertion_point(class_scope:Trd_GetMarginRatio.C2S)
private static final com.moomoo.openapi.pb.TrdGetMarginRatio.C2S DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdGetMarginRatio.C2S();
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.C2S getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface S2COrBuilder extends
// @@protoc_insertion_point(interface_extends:Trd_GetMarginRatio.S2C)
com.google.protobuf.MessageOrBuilder {
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
boolean hasHeader();
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader();
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder();
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
java.util.List
getMarginRatioInfoListList();
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo getMarginRatioInfoList(int index);
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
int getMarginRatioInfoListCount();
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
java.util.List extends com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder>
getMarginRatioInfoListOrBuilderList();
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder getMarginRatioInfoListOrBuilder(
int index);
}
/**
* Protobuf type {@code Trd_GetMarginRatio.S2C}
*/
public static final class S2C extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Trd_GetMarginRatio.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() {
marginRatioInfoList_ = 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: {
com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = header_.toBuilder();
}
header_ = input.readMessage(com.moomoo.openapi.pb.TrdCommon.TrdHeader.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(header_);
header_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
marginRatioInfoList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
marginRatioInfoList_.add(
input.readMessage(com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.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_ & 0x00000002) == 0x00000002)) {
marginRatioInfoList_ = java.util.Collections.unmodifiableList(marginRatioInfoList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.class, com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder.class);
}
private int bitField0_;
public static final int HEADER_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_;
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() {
return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() {
return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
}
public static final int MARGINRATIOINFOLIST_FIELD_NUMBER = 2;
private java.util.List marginRatioInfoList_;
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public java.util.List getMarginRatioInfoListList() {
return marginRatioInfoList_;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder>
getMarginRatioInfoListOrBuilderList() {
return marginRatioInfoList_;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public int getMarginRatioInfoListCount() {
return marginRatioInfoList_.size();
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo getMarginRatioInfoList(int index) {
return marginRatioInfoList_.get(index);
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder getMarginRatioInfoListOrBuilder(
int index) {
return marginRatioInfoList_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasHeader()) {
memoizedIsInitialized = 0;
return false;
}
if (!getHeader().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getMarginRatioInfoListCount(); i++) {
if (!getMarginRatioInfoList(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)) {
output.writeMessage(1, getHeader());
}
for (int i = 0; i < marginRatioInfoList_.size(); i++) {
output.writeMessage(2, marginRatioInfoList_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getHeader());
}
for (int i = 0; i < marginRatioInfoList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, marginRatioInfoList_.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.TrdGetMarginRatio.S2C)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C other = (com.moomoo.openapi.pb.TrdGetMarginRatio.S2C) obj;
boolean result = true;
result = result && (hasHeader() == other.hasHeader());
if (hasHeader()) {
result = result && getHeader()
.equals(other.getHeader());
}
result = result && getMarginRatioInfoListList()
.equals(other.getMarginRatioInfoListList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasHeader()) {
hash = (37 * hash) + HEADER_FIELD_NUMBER;
hash = (53 * hash) + getHeader().hashCode();
}
if (getMarginRatioInfoListCount() > 0) {
hash = (37 * hash) + MARGINRATIOINFOLIST_FIELD_NUMBER;
hash = (53 * hash) + getMarginRatioInfoListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.S2C parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.S2C parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.S2C parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.S2C parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.S2C parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.S2C prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Trd_GetMarginRatio.S2C}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Trd_GetMarginRatio.S2C)
com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.class, com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder.class);
}
// Construct using com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHeaderFieldBuilder();
getMarginRatioInfoListFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (headerBuilder_ == null) {
header_ = null;
} else {
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (marginRatioInfoListBuilder_ == null) {
marginRatioInfoList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
marginRatioInfoListBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_S2C_descriptor;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2C getDefaultInstanceForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.getDefaultInstance();
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2C build() {
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2C buildPartial() {
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C result = new com.moomoo.openapi.pb.TrdGetMarginRatio.S2C(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (headerBuilder_ == null) {
result.header_ = header_;
} else {
result.header_ = headerBuilder_.build();
}
if (marginRatioInfoListBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
marginRatioInfoList_ = java.util.Collections.unmodifiableList(marginRatioInfoList_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.marginRatioInfoList_ = marginRatioInfoList_;
} else {
result.marginRatioInfoList_ = marginRatioInfoListBuilder_.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.TrdGetMarginRatio.S2C) {
return mergeFrom((com.moomoo.openapi.pb.TrdGetMarginRatio.S2C)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.TrdGetMarginRatio.S2C other) {
if (other == com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.getDefaultInstance()) return this;
if (other.hasHeader()) {
mergeHeader(other.getHeader());
}
if (marginRatioInfoListBuilder_ == null) {
if (!other.marginRatioInfoList_.isEmpty()) {
if (marginRatioInfoList_.isEmpty()) {
marginRatioInfoList_ = other.marginRatioInfoList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.addAll(other.marginRatioInfoList_);
}
onChanged();
}
} else {
if (!other.marginRatioInfoList_.isEmpty()) {
if (marginRatioInfoListBuilder_.isEmpty()) {
marginRatioInfoListBuilder_.dispose();
marginRatioInfoListBuilder_ = null;
marginRatioInfoList_ = other.marginRatioInfoList_;
bitField0_ = (bitField0_ & ~0x00000002);
marginRatioInfoListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMarginRatioInfoListFieldBuilder() : null;
} else {
marginRatioInfoListBuilder_.addAllMessages(other.marginRatioInfoList_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasHeader()) {
return false;
}
if (!getHeader().isInitialized()) {
return false;
}
for (int i = 0; i < getMarginRatioInfoListCount(); i++) {
if (!getMarginRatioInfoList(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.TrdGetMarginRatio.S2C parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.TrdGetMarginRatio.S2C) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.TrdCommon.TrdHeader header_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder> headerBuilder_;
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public boolean hasHeader() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeader getHeader() {
if (headerBuilder_ == null) {
return header_ == null ? com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
} else {
return headerBuilder_.getMessage();
}
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder setHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) {
if (headerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
header_ = value;
onChanged();
} else {
headerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder setHeader(
com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder builderForValue) {
if (headerBuilder_ == null) {
header_ = builderForValue.build();
onChanged();
} else {
headerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder mergeHeader(com.moomoo.openapi.pb.TrdCommon.TrdHeader value) {
if (headerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
header_ != null &&
header_ != com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance()) {
header_ =
com.moomoo.openapi.pb.TrdCommon.TrdHeader.newBuilder(header_).mergeFrom(value).buildPartial();
} else {
header_ = value;
}
onChanged();
} else {
headerBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public Builder clearHeader() {
if (headerBuilder_ == null) {
header_ = null;
onChanged();
} else {
headerBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder getHeaderBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getHeaderFieldBuilder().getBuilder();
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
public com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder getHeaderOrBuilder() {
if (headerBuilder_ != null) {
return headerBuilder_.getMessageOrBuilder();
} else {
return header_ == null ?
com.moomoo.openapi.pb.TrdCommon.TrdHeader.getDefaultInstance() : header_;
}
}
/**
*
*交易公共参数头
*
*
* required .Trd_Common.TrdHeader header = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>
getHeaderFieldBuilder() {
if (headerBuilder_ == null) {
headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdCommon.TrdHeader, com.moomoo.openapi.pb.TrdCommon.TrdHeader.Builder, com.moomoo.openapi.pb.TrdCommon.TrdHeaderOrBuilder>(
getHeader(),
getParentForChildren(),
isClean());
header_ = null;
}
return headerBuilder_;
}
private java.util.List marginRatioInfoList_ =
java.util.Collections.emptyList();
private void ensureMarginRatioInfoListIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
marginRatioInfoList_ = new java.util.ArrayList(marginRatioInfoList_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder> marginRatioInfoListBuilder_;
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public java.util.List getMarginRatioInfoListList() {
if (marginRatioInfoListBuilder_ == null) {
return java.util.Collections.unmodifiableList(marginRatioInfoList_);
} else {
return marginRatioInfoListBuilder_.getMessageList();
}
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public int getMarginRatioInfoListCount() {
if (marginRatioInfoListBuilder_ == null) {
return marginRatioInfoList_.size();
} else {
return marginRatioInfoListBuilder_.getCount();
}
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo getMarginRatioInfoList(int index) {
if (marginRatioInfoListBuilder_ == null) {
return marginRatioInfoList_.get(index);
} else {
return marginRatioInfoListBuilder_.getMessage(index);
}
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder setMarginRatioInfoList(
int index, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo value) {
if (marginRatioInfoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.set(index, value);
onChanged();
} else {
marginRatioInfoListBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder setMarginRatioInfoList(
int index, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder builderForValue) {
if (marginRatioInfoListBuilder_ == null) {
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.set(index, builderForValue.build());
onChanged();
} else {
marginRatioInfoListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder addMarginRatioInfoList(com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo value) {
if (marginRatioInfoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.add(value);
onChanged();
} else {
marginRatioInfoListBuilder_.addMessage(value);
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder addMarginRatioInfoList(
int index, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo value) {
if (marginRatioInfoListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.add(index, value);
onChanged();
} else {
marginRatioInfoListBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder addMarginRatioInfoList(
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder builderForValue) {
if (marginRatioInfoListBuilder_ == null) {
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.add(builderForValue.build());
onChanged();
} else {
marginRatioInfoListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder addMarginRatioInfoList(
int index, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder builderForValue) {
if (marginRatioInfoListBuilder_ == null) {
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.add(index, builderForValue.build());
onChanged();
} else {
marginRatioInfoListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder addAllMarginRatioInfoList(
java.lang.Iterable extends com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo> values) {
if (marginRatioInfoListBuilder_ == null) {
ensureMarginRatioInfoListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, marginRatioInfoList_);
onChanged();
} else {
marginRatioInfoListBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder clearMarginRatioInfoList() {
if (marginRatioInfoListBuilder_ == null) {
marginRatioInfoList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
marginRatioInfoListBuilder_.clear();
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public Builder removeMarginRatioInfoList(int index) {
if (marginRatioInfoListBuilder_ == null) {
ensureMarginRatioInfoListIsMutable();
marginRatioInfoList_.remove(index);
onChanged();
} else {
marginRatioInfoListBuilder_.remove(index);
}
return this;
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder getMarginRatioInfoListBuilder(
int index) {
return getMarginRatioInfoListFieldBuilder().getBuilder(index);
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder getMarginRatioInfoListOrBuilder(
int index) {
if (marginRatioInfoListBuilder_ == null) {
return marginRatioInfoList_.get(index); } else {
return marginRatioInfoListBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public java.util.List extends com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder>
getMarginRatioInfoListOrBuilderList() {
if (marginRatioInfoListBuilder_ != null) {
return marginRatioInfoListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(marginRatioInfoList_);
}
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder addMarginRatioInfoListBuilder() {
return getMarginRatioInfoListFieldBuilder().addBuilder(
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.getDefaultInstance());
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder addMarginRatioInfoListBuilder(
int index) {
return getMarginRatioInfoListFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.getDefaultInstance());
}
/**
*
*账户资金
*
*
* repeated .Trd_GetMarginRatio.MarginRatioInfo marginRatioInfoList = 2;
*/
public java.util.List
getMarginRatioInfoListBuilderList() {
return getMarginRatioInfoListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder>
getMarginRatioInfoListFieldBuilder() {
if (marginRatioInfoListBuilder_ == null) {
marginRatioInfoListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfo.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.MarginRatioInfoOrBuilder>(
marginRatioInfoList_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
marginRatioInfoList_ = null;
}
return marginRatioInfoListBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Trd_GetMarginRatio.S2C)
}
// @@protoc_insertion_point(class_scope:Trd_GetMarginRatio.S2C)
private static final com.moomoo.openapi.pb.TrdGetMarginRatio.S2C DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdGetMarginRatio.S2C();
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.S2C getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Trd_GetMarginRatio.Request)
com.google.protobuf.MessageOrBuilder {
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
boolean hasC2S();
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S getC2S();
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
com.moomoo.openapi.pb.TrdGetMarginRatio.C2SOrBuilder getC2SOrBuilder();
}
/**
* Protobuf type {@code Trd_GetMarginRatio.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Trd_GetMarginRatio.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.TrdGetMarginRatio.C2S.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = c2S_.toBuilder();
}
c2S_ = input.readMessage(com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.Request.class, com.moomoo.openapi.pb.TrdGetMarginRatio.Request.Builder.class);
}
private int bitField0_;
public static final int C2S_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.TrdGetMarginRatio.C2S c2S_;
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2S getC2S() {
return c2S_ == null ? com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.getDefaultInstance() : c2S_;
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2SOrBuilder getC2SOrBuilder() {
return c2S_ == null ? com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.TrdGetMarginRatio.Request other = (com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.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 Trd_GetMarginRatio.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Trd_GetMarginRatio.Request)
com.moomoo.openapi.pb.TrdGetMarginRatio.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.Request.class, com.moomoo.openapi.pb.TrdGetMarginRatio.Request.Builder.class);
}
// Construct using com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Request_descriptor;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.Request getDefaultInstanceForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.Request.getDefaultInstance();
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.Request build() {
com.moomoo.openapi.pb.TrdGetMarginRatio.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.Request buildPartial() {
com.moomoo.openapi.pb.TrdGetMarginRatio.Request result = new com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request) {
return mergeFrom((com.moomoo.openapi.pb.TrdGetMarginRatio.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.TrdGetMarginRatio.Request other) {
if (other == com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.TrdGetMarginRatio.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.TrdGetMarginRatio.C2S c2S_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S, com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.C2SOrBuilder> c2SBuilder_;
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2S getC2S() {
if (c2SBuilder_ == null) {
return c2S_ == null ? com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.getDefaultInstance() : c2S_;
} else {
return c2SBuilder_.getMessage();
}
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public Builder setC2S(com.moomoo.openapi.pb.TrdGetMarginRatio.C2S value) {
if (c2SBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
c2S_ = value;
onChanged();
} else {
c2SBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public Builder setC2S(
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder builderForValue) {
if (c2SBuilder_ == null) {
c2S_ = builderForValue.build();
onChanged();
} else {
c2SBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public Builder mergeC2S(com.moomoo.openapi.pb.TrdGetMarginRatio.C2S value) {
if (c2SBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
c2S_ != null &&
c2S_ != com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.getDefaultInstance()) {
c2S_ =
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial();
} else {
c2S_ = value;
}
onChanged();
} else {
c2SBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public Builder clearC2S() {
if (c2SBuilder_ == null) {
c2S_ = null;
onChanged();
} else {
c2SBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder getC2SBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getC2SFieldBuilder().getBuilder();
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.C2SOrBuilder getC2SOrBuilder() {
if (c2SBuilder_ != null) {
return c2SBuilder_.getMessageOrBuilder();
} else {
return c2S_ == null ?
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.getDefaultInstance() : c2S_;
}
}
/**
* required .Trd_GetMarginRatio.C2S c2s = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S, com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.C2SOrBuilder>
getC2SFieldBuilder() {
if (c2SBuilder_ == null) {
c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.C2S, com.moomoo.openapi.pb.TrdGetMarginRatio.C2S.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.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:Trd_GetMarginRatio.Request)
}
// @@protoc_insertion_point(class_scope:Trd_GetMarginRatio.Request)
private static final com.moomoo.openapi.pb.TrdGetMarginRatio.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdGetMarginRatio.Request();
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Trd_GetMarginRatio.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
boolean hasRetType();
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
int getRetType();
/**
* optional string retMsg = 2;
*/
boolean hasRetMsg();
/**
* optional string retMsg = 2;
*/
java.lang.String getRetMsg();
/**
* optional string retMsg = 2;
*/
com.google.protobuf.ByteString
getRetMsgBytes();
/**
* optional int32 errCode = 3;
*/
boolean hasErrCode();
/**
* optional int32 errCode = 3;
*/
int getErrCode();
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
boolean hasS2C();
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C getS2C();
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder getS2COrBuilder();
}
/**
* Protobuf type {@code Trd_GetMarginRatio.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Trd_GetMarginRatio.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.TrdGetMarginRatio.S2C.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = s2C_.toBuilder();
}
s2C_ = input.readMessage(com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.Response.class, com.moomoo.openapi.pb.TrdGetMarginRatio.Response.Builder.class);
}
private int bitField0_;
public static final int RETTYPE_FIELD_NUMBER = 1;
private int retType_;
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
public static final int RETMSG_FIELD_NUMBER = 2;
private volatile java.lang.Object retMsg_;
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRCODE_FIELD_NUMBER = 3;
private int errCode_;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
public static final int S2C_FIELD_NUMBER = 4;
private com.moomoo.openapi.pb.TrdGetMarginRatio.S2C s2C_;
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2C getS2C() {
return s2C_ == null ? com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.getDefaultInstance() : s2C_;
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder getS2COrBuilder() {
return s2C_ == null ? com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.TrdGetMarginRatio.Response other = (com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.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.TrdGetMarginRatio.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Trd_GetMarginRatio.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Trd_GetMarginRatio.Response)
com.moomoo.openapi.pb.TrdGetMarginRatio.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.TrdGetMarginRatio.Response.class, com.moomoo.openapi.pb.TrdGetMarginRatio.Response.Builder.class);
}
// Construct using com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.internal_static_Trd_GetMarginRatio_Response_descriptor;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.Response getDefaultInstanceForType() {
return com.moomoo.openapi.pb.TrdGetMarginRatio.Response.getDefaultInstance();
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.Response build() {
com.moomoo.openapi.pb.TrdGetMarginRatio.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.TrdGetMarginRatio.Response buildPartial() {
com.moomoo.openapi.pb.TrdGetMarginRatio.Response result = new com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response) {
return mergeFrom((com.moomoo.openapi.pb.TrdGetMarginRatio.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.TrdGetMarginRatio.Response other) {
if (other == com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.TrdGetMarginRatio.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int retType_ = -400;
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder setRetType(int value) {
bitField0_ |= 0x00000001;
retType_ = value;
onChanged();
return this;
}
/**
*
*以下3个字段每条协议都有,注释说明在InitConnect.proto中
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder clearRetType() {
bitField0_ = (bitField0_ & ~0x00000001);
retType_ = -400;
onChanged();
return this;
}
private java.lang.Object retMsg_ = "";
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder clearRetMsg() {
bitField0_ = (bitField0_ & ~0x00000002);
retMsg_ = getDefaultInstance().getRetMsg();
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
private int errCode_ ;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
/**
* optional int32 errCode = 3;
*/
public Builder setErrCode(int value) {
bitField0_ |= 0x00000004;
errCode_ = value;
onChanged();
return this;
}
/**
* optional int32 errCode = 3;
*/
public Builder clearErrCode() {
bitField0_ = (bitField0_ & ~0x00000004);
errCode_ = 0;
onChanged();
return this;
}
private com.moomoo.openapi.pb.TrdGetMarginRatio.S2C s2C_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C, com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder> s2CBuilder_;
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2C getS2C() {
if (s2CBuilder_ == null) {
return s2C_ == null ? com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.getDefaultInstance() : s2C_;
} else {
return s2CBuilder_.getMessage();
}
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public Builder setS2C(com.moomoo.openapi.pb.TrdGetMarginRatio.S2C value) {
if (s2CBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
s2C_ = value;
onChanged();
} else {
s2CBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public Builder setS2C(
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder builderForValue) {
if (s2CBuilder_ == null) {
s2C_ = builderForValue.build();
onChanged();
} else {
s2CBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public Builder mergeS2C(com.moomoo.openapi.pb.TrdGetMarginRatio.S2C value) {
if (s2CBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
s2C_ != null &&
s2C_ != com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.getDefaultInstance()) {
s2C_ =
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial();
} else {
s2C_ = value;
}
onChanged();
} else {
s2CBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public Builder clearS2C() {
if (s2CBuilder_ == null) {
s2C_ = null;
onChanged();
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder getS2CBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getS2CFieldBuilder().getBuilder();
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder getS2COrBuilder() {
if (s2CBuilder_ != null) {
return s2CBuilder_.getMessageOrBuilder();
} else {
return s2C_ == null ?
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.getDefaultInstance() : s2C_;
}
}
/**
* optional .Trd_GetMarginRatio.S2C s2c = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C, com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder>
getS2CFieldBuilder() {
if (s2CBuilder_ == null) {
s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.TrdGetMarginRatio.S2C, com.moomoo.openapi.pb.TrdGetMarginRatio.S2C.Builder, com.moomoo.openapi.pb.TrdGetMarginRatio.S2COrBuilder>(
getS2C(),
getParentForChildren(),
isClean());
s2C_ = null;
}
return s2CBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Trd_GetMarginRatio.Response)
}
// @@protoc_insertion_point(class_scope:Trd_GetMarginRatio.Response)
private static final com.moomoo.openapi.pb.TrdGetMarginRatio.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.TrdGetMarginRatio.Response();
}
public static com.moomoo.openapi.pb.TrdGetMarginRatio.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.TrdGetMarginRatio.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Trd_GetMarginRatio_MarginRatioInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Trd_GetMarginRatio_MarginRatioInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Trd_GetMarginRatio_C2S_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Trd_GetMarginRatio_C2S_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Trd_GetMarginRatio_S2C_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Trd_GetMarginRatio_S2C_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Trd_GetMarginRatio_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Trd_GetMarginRatio_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Trd_GetMarginRatio_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Trd_GetMarginRatio_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\030Trd_GetMarginRatio.proto\022\022Trd_GetMargi" +
"nRatio\032\020Trd_Common.proto\032\020Qot_Common.pro" +
"to\"\311\002\n\017MarginRatioInfo\022&\n\010security\030\001 \002(\013" +
"2\024.Qot_Common.Security\022\024\n\014isLongPermit\030\002" +
" \001(\010\022\025\n\risShortPermit\030\003 \001(\010\022\027\n\017shortPool" +
"Remain\030\004 \001(\001\022\024\n\014shortFeeRate\030\005 \001(\001\022\026\n\016al" +
"ertLongRatio\030\006 \001(\001\022\027\n\017alertShortRatio\030\007 " +
"\001(\001\022\023\n\013imLongRatio\030\010 \001(\001\022\024\n\014imShortRatio" +
"\030\t \001(\001\022\024\n\014mcmLongRatio\030\n \001(\001\022\025\n\rmcmShort" +
"Ratio\030\013 \001(\001\022\023\n\013mmLongRatio\030\014 \001(\001\022\024\n\014mmSh" +
"ortRatio\030\r \001(\001\"X\n\003C2S\022%\n\006header\030\001 \002(\0132\025." +
"Trd_Common.TrdHeader\022*\n\014securityList\030\002 \003" +
"(\0132\024.Qot_Common.Security\"n\n\003S2C\022%\n\006heade" +
"r\030\001 \002(\0132\025.Trd_Common.TrdHeader\022@\n\023margin" +
"RatioInfoList\030\002 \003(\0132#.Trd_GetMarginRatio" +
".MarginRatioInfo\"/\n\007Request\022$\n\003c2s\030\001 \002(\013" +
"2\027.Trd_GetMarginRatio.C2S\"h\n\010Response\022\025\n" +
"\007retType\030\001 \002(\005:\004-400\022\016\n\006retMsg\030\002 \001(\t\022\017\n\007" +
"errCode\030\003 \001(\005\022$\n\003s2c\030\004 \001(\0132\027.Trd_GetMarg" +
"inRatio.S2CBJ\n\025com.moomoo.openapi.pbZ1gi" +
"thub.com/futuopen/ftapi4go/pb/trdgetmarg" +
"inratio"
};
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.TrdCommon.getDescriptor(),
com.moomoo.openapi.pb.QotCommon.getDescriptor(),
}, assigner);
internal_static_Trd_GetMarginRatio_MarginRatioInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Trd_GetMarginRatio_MarginRatioInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Trd_GetMarginRatio_MarginRatioInfo_descriptor,
new java.lang.String[] { "Security", "IsLongPermit", "IsShortPermit", "ShortPoolRemain", "ShortFeeRate", "AlertLongRatio", "AlertShortRatio", "ImLongRatio", "ImShortRatio", "McmLongRatio", "McmShortRatio", "MmLongRatio", "MmShortRatio", });
internal_static_Trd_GetMarginRatio_C2S_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Trd_GetMarginRatio_C2S_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Trd_GetMarginRatio_C2S_descriptor,
new java.lang.String[] { "Header", "SecurityList", });
internal_static_Trd_GetMarginRatio_S2C_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Trd_GetMarginRatio_S2C_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Trd_GetMarginRatio_S2C_descriptor,
new java.lang.String[] { "Header", "MarginRatioInfoList", });
internal_static_Trd_GetMarginRatio_Request_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Trd_GetMarginRatio_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Trd_GetMarginRatio_Request_descriptor,
new java.lang.String[] { "C2S", });
internal_static_Trd_GetMarginRatio_Response_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Trd_GetMarginRatio_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Trd_GetMarginRatio_Response_descriptor,
new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", });
com.moomoo.openapi.pb.TrdCommon.getDescriptor();
com.moomoo.openapi.pb.QotCommon.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}