com.moomoo.openapi.pb.QotGetCapitalFlow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moomoo-api Show documentation
Show all versions of moomoo-api Show documentation
Moomoo OpenAPI quantitative transaction interface for Java.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_GetCapitalFlow.proto
package com.moomoo.openapi.pb;
public final class QotGetCapitalFlow {
private QotGetCapitalFlow() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface C2SOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetCapitalFlow.C2S)
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();
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
boolean hasPeriodType();
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
int getPeriodType();
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
boolean hasBeginTime();
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
java.lang.String getBeginTime();
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
com.google.protobuf.ByteString
getBeginTimeBytes();
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
boolean hasEndTime();
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
java.lang.String getEndTime();
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
com.google.protobuf.ByteString
getEndTimeBytes();
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.C2S}
*/
public static final class C2S extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetCapitalFlow.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() {
periodType_ = 0;
beginTime_ = "";
endTime_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private C2S(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.moomoo.openapi.pb.QotCommon.Security.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = 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;
periodType_ = input.readInt32();
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
beginTime_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
endTime_ = bs;
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.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.class, com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.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 PERIODTYPE_FIELD_NUMBER = 2;
private int periodType_;
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
public boolean hasPeriodType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
public int getPeriodType() {
return periodType_;
}
public static final int BEGINTIME_FIELD_NUMBER = 3;
private volatile java.lang.Object beginTime_;
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public boolean hasBeginTime() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public java.lang.String getBeginTime() {
java.lang.Object ref = beginTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
beginTime_ = s;
}
return s;
}
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public com.google.protobuf.ByteString
getBeginTimeBytes() {
java.lang.Object ref = beginTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
beginTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDTIME_FIELD_NUMBER = 4;
private volatile java.lang.Object endTime_;
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public java.lang.String getEndTime() {
java.lang.Object ref = endTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
endTime_ = s;
}
return s;
}
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public com.google.protobuf.ByteString
getEndTimeBytes() {
java.lang.Object ref = endTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.writeInt32(2, periodType_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, beginTime_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endTime_);
}
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
.computeInt32Size(2, periodType_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, beginTime_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endTime_);
}
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.QotGetCapitalFlow.C2S)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S other = (com.moomoo.openapi.pb.QotGetCapitalFlow.C2S) obj;
boolean result = true;
result = result && (hasSecurity() == other.hasSecurity());
if (hasSecurity()) {
result = result && getSecurity()
.equals(other.getSecurity());
}
result = result && (hasPeriodType() == other.hasPeriodType());
if (hasPeriodType()) {
result = result && (getPeriodType()
== other.getPeriodType());
}
result = result && (hasBeginTime() == other.hasBeginTime());
if (hasBeginTime()) {
result = result && getBeginTime()
.equals(other.getBeginTime());
}
result = result && (hasEndTime() == other.hasEndTime());
if (hasEndTime()) {
result = result && getEndTime()
.equals(other.getEndTime());
}
result = result && 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 (hasPeriodType()) {
hash = (37 * hash) + PERIODTYPE_FIELD_NUMBER;
hash = (53 * hash) + getPeriodType();
}
if (hasBeginTime()) {
hash = (37 * hash) + BEGINTIME_FIELD_NUMBER;
hash = (53 * hash) + getBeginTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + ENDTIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.C2S parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.C2S parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.C2S parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.C2S parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.C2S parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.C2S prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.C2S}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetCapitalFlow.C2S)
com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.class, com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetCapitalFlow.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) {
getSecurityFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (securityBuilder_ == null) {
security_ = null;
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
periodType_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
beginTime_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
endTime_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_C2S_descriptor;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2S getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2S build() {
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2S buildPartial() {
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S result = new com.moomoo.openapi.pb.QotGetCapitalFlow.C2S(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.periodType_ = periodType_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.beginTime_ = beginTime_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.endTime_ = endTime_;
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.QotGetCapitalFlow.C2S) {
return mergeFrom((com.moomoo.openapi.pb.QotGetCapitalFlow.C2S)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetCapitalFlow.C2S other) {
if (other == com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.getDefaultInstance()) return this;
if (other.hasSecurity()) {
mergeSecurity(other.getSecurity());
}
if (other.hasPeriodType()) {
setPeriodType(other.getPeriodType());
}
if (other.hasBeginTime()) {
bitField0_ |= 0x00000004;
beginTime_ = other.beginTime_;
onChanged();
}
if (other.hasEndTime()) {
bitField0_ |= 0x00000008;
endTime_ = other.endTime_;
onChanged();
}
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.QotGetCapitalFlow.C2S parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetCapitalFlow.C2S) 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 int periodType_ ;
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
public boolean hasPeriodType() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
public int getPeriodType() {
return periodType_;
}
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
public Builder setPeriodType(int value) {
bitField0_ |= 0x00000002;
periodType_ = value;
onChanged();
return this;
}
/**
*
* Qot_Common.PeriodType 周期类型
*
*
* optional int32 periodType = 2;
*/
public Builder clearPeriodType() {
bitField0_ = (bitField0_ & ~0x00000002);
periodType_ = 0;
onChanged();
return this;
}
private java.lang.Object beginTime_ = "";
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public boolean hasBeginTime() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public java.lang.String getBeginTime() {
java.lang.Object ref = beginTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
beginTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public com.google.protobuf.ByteString
getBeginTimeBytes() {
java.lang.Object ref = beginTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
beginTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public Builder setBeginTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
beginTime_ = value;
onChanged();
return this;
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public Builder clearBeginTime() {
bitField0_ = (bitField0_ & ~0x00000004);
beginTime_ = getDefaultInstance().getBeginTime();
onChanged();
return this;
}
/**
*
* 开始时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string beginTime = 3;
*/
public Builder setBeginTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
beginTime_ = value;
onChanged();
return this;
}
private java.lang.Object endTime_ = "";
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public boolean hasEndTime() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public java.lang.String getEndTime() {
java.lang.Object ref = endTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
endTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public com.google.protobuf.ByteString
getEndTimeBytes() {
java.lang.Object ref = endTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
endTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public Builder setEndTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
endTime_ = value;
onChanged();
return this;
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public Builder clearEndTime() {
bitField0_ = (bitField0_ & ~0x00000008);
endTime_ = getDefaultInstance().getEndTime();
onChanged();
return this;
}
/**
*
* 结束时间(格式:yyyy-MM-dd),仅周期类型不为实时有效
*
*
* optional string endTime = 4;
*/
public Builder setEndTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
endTime_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetCapitalFlow.C2S)
}
// @@protoc_insertion_point(class_scope:Qot_GetCapitalFlow.C2S)
private static final com.moomoo.openapi.pb.QotGetCapitalFlow.C2S DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetCapitalFlow.C2S();
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.C2S getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CapitalFlowItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetCapitalFlow.CapitalFlowItem)
com.google.protobuf.MessageOrBuilder {
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
boolean hasInFlow();
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
double getInFlow();
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
boolean hasTime();
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
java.lang.String getTime();
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
com.google.protobuf.ByteString
getTimeBytes();
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
boolean hasTimestamp();
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
double getTimestamp();
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
boolean hasMainInFlow();
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
double getMainInFlow();
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
boolean hasSuperInFlow();
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
double getSuperInFlow();
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
boolean hasBigInFlow();
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
double getBigInFlow();
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
boolean hasMidInFlow();
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
double getMidInFlow();
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
boolean hasSmlInFlow();
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
double getSmlInFlow();
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.CapitalFlowItem}
*/
public static final class CapitalFlowItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetCapitalFlow.CapitalFlowItem)
CapitalFlowItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use CapitalFlowItem.newBuilder() to construct.
private CapitalFlowItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CapitalFlowItem() {
inFlow_ = 0D;
time_ = "";
timestamp_ = 0D;
mainInFlow_ = 0D;
superInFlow_ = 0D;
bigInFlow_ = 0D;
midInFlow_ = 0D;
smlInFlow_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CapitalFlowItem(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
inFlow_ = input.readDouble();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
time_ = bs;
break;
}
case 25: {
bitField0_ |= 0x00000004;
timestamp_ = input.readDouble();
break;
}
case 33: {
bitField0_ |= 0x00000008;
mainInFlow_ = input.readDouble();
break;
}
case 41: {
bitField0_ |= 0x00000010;
superInFlow_ = input.readDouble();
break;
}
case 49: {
bitField0_ |= 0x00000020;
bigInFlow_ = input.readDouble();
break;
}
case 57: {
bitField0_ |= 0x00000040;
midInFlow_ = input.readDouble();
break;
}
case 65: {
bitField0_ |= 0x00000080;
smlInFlow_ = 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.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_CapitalFlowItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_CapitalFlowItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.class, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder.class);
}
private int bitField0_;
public static final int INFLOW_FIELD_NUMBER = 1;
private double inFlow_;
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
public boolean hasInFlow() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
public double getInFlow() {
return inFlow_;
}
public static final int TIME_FIELD_NUMBER = 2;
private volatile java.lang.Object time_;
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public boolean hasTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public java.lang.String getTime() {
java.lang.Object ref = time_;
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()) {
time_ = s;
}
return s;
}
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public com.google.protobuf.ByteString
getTimeBytes() {
java.lang.Object ref = time_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
time_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private double timestamp_;
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
public double getTimestamp() {
return timestamp_;
}
public static final int MAININFLOW_FIELD_NUMBER = 4;
private double mainInFlow_;
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
public boolean hasMainInFlow() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
public double getMainInFlow() {
return mainInFlow_;
}
public static final int SUPERINFLOW_FIELD_NUMBER = 5;
private double superInFlow_;
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
public boolean hasSuperInFlow() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
public double getSuperInFlow() {
return superInFlow_;
}
public static final int BIGINFLOW_FIELD_NUMBER = 6;
private double bigInFlow_;
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
public boolean hasBigInFlow() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
public double getBigInFlow() {
return bigInFlow_;
}
public static final int MIDINFLOW_FIELD_NUMBER = 7;
private double midInFlow_;
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
public boolean hasMidInFlow() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
public double getMidInFlow() {
return midInFlow_;
}
public static final int SMLINFLOW_FIELD_NUMBER = 8;
private double smlInFlow_;
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
public boolean hasSmlInFlow() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
public double getSmlInFlow() {
return smlInFlow_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasInFlow()) {
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.writeDouble(1, inFlow_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, time_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, timestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeDouble(4, mainInFlow_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeDouble(5, superInFlow_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeDouble(6, bigInFlow_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeDouble(7, midInFlow_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeDouble(8, smlInFlow_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, inFlow_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, time_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, timestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, mainInFlow_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, superInFlow_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(6, bigInFlow_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(7, midInFlow_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(8, smlInFlow_);
}
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.QotGetCapitalFlow.CapitalFlowItem)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem other = (com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem) obj;
boolean result = true;
result = result && (hasInFlow() == other.hasInFlow());
if (hasInFlow()) {
result = result && (
java.lang.Double.doubleToLongBits(getInFlow())
== java.lang.Double.doubleToLongBits(
other.getInFlow()));
}
result = result && (hasTime() == other.hasTime());
if (hasTime()) {
result = result && getTime()
.equals(other.getTime());
}
result = result && (hasTimestamp() == other.hasTimestamp());
if (hasTimestamp()) {
result = result && (
java.lang.Double.doubleToLongBits(getTimestamp())
== java.lang.Double.doubleToLongBits(
other.getTimestamp()));
}
result = result && (hasMainInFlow() == other.hasMainInFlow());
if (hasMainInFlow()) {
result = result && (
java.lang.Double.doubleToLongBits(getMainInFlow())
== java.lang.Double.doubleToLongBits(
other.getMainInFlow()));
}
result = result && (hasSuperInFlow() == other.hasSuperInFlow());
if (hasSuperInFlow()) {
result = result && (
java.lang.Double.doubleToLongBits(getSuperInFlow())
== java.lang.Double.doubleToLongBits(
other.getSuperInFlow()));
}
result = result && (hasBigInFlow() == other.hasBigInFlow());
if (hasBigInFlow()) {
result = result && (
java.lang.Double.doubleToLongBits(getBigInFlow())
== java.lang.Double.doubleToLongBits(
other.getBigInFlow()));
}
result = result && (hasMidInFlow() == other.hasMidInFlow());
if (hasMidInFlow()) {
result = result && (
java.lang.Double.doubleToLongBits(getMidInFlow())
== java.lang.Double.doubleToLongBits(
other.getMidInFlow()));
}
result = result && (hasSmlInFlow() == other.hasSmlInFlow());
if (hasSmlInFlow()) {
result = result && (
java.lang.Double.doubleToLongBits(getSmlInFlow())
== java.lang.Double.doubleToLongBits(
other.getSmlInFlow()));
}
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 (hasInFlow()) {
hash = (37 * hash) + INFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getInFlow()));
}
if (hasTime()) {
hash = (37 * hash) + TIME_FIELD_NUMBER;
hash = (53 * hash) + getTime().hashCode();
}
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getTimestamp()));
}
if (hasMainInFlow()) {
hash = (37 * hash) + MAININFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMainInFlow()));
}
if (hasSuperInFlow()) {
hash = (37 * hash) + SUPERINFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSuperInFlow()));
}
if (hasBigInFlow()) {
hash = (37 * hash) + BIGINFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getBigInFlow()));
}
if (hasMidInFlow()) {
hash = (37 * hash) + MIDINFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMidInFlow()));
}
if (hasSmlInFlow()) {
hash = (37 * hash) + SMLINFLOW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSmlInFlow()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem 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.QotGetCapitalFlow.CapitalFlowItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem 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.QotGetCapitalFlow.CapitalFlowItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem 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.QotGetCapitalFlow.CapitalFlowItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem 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.QotGetCapitalFlow.CapitalFlowItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem 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.QotGetCapitalFlow.CapitalFlowItem prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.CapitalFlowItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetCapitalFlow.CapitalFlowItem)
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_CapitalFlowItem_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_CapitalFlowItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.class, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
inFlow_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
time_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
mainInFlow_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
superInFlow_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
bigInFlow_ = 0D;
bitField0_ = (bitField0_ & ~0x00000020);
midInFlow_ = 0D;
bitField0_ = (bitField0_ & ~0x00000040);
smlInFlow_ = 0D;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_CapitalFlowItem_descriptor;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem build() {
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem buildPartial() {
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem result = new com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.inFlow_ = inFlow_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.time_ = time_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.mainInFlow_ = mainInFlow_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.superInFlow_ = superInFlow_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.bigInFlow_ = bigInFlow_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.midInFlow_ = midInFlow_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.smlInFlow_ = smlInFlow_;
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.QotGetCapitalFlow.CapitalFlowItem) {
return mergeFrom((com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem other) {
if (other == com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.getDefaultInstance()) return this;
if (other.hasInFlow()) {
setInFlow(other.getInFlow());
}
if (other.hasTime()) {
bitField0_ |= 0x00000002;
time_ = other.time_;
onChanged();
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasMainInFlow()) {
setMainInFlow(other.getMainInFlow());
}
if (other.hasSuperInFlow()) {
setSuperInFlow(other.getSuperInFlow());
}
if (other.hasBigInFlow()) {
setBigInFlow(other.getBigInFlow());
}
if (other.hasMidInFlow()) {
setMidInFlow(other.getMidInFlow());
}
if (other.hasSmlInFlow()) {
setSmlInFlow(other.getSmlInFlow());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasInFlow()) {
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.QotGetCapitalFlow.CapitalFlowItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private double inFlow_ ;
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
public boolean hasInFlow() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
public double getInFlow() {
return inFlow_;
}
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
public Builder setInFlow(double value) {
bitField0_ |= 0x00000001;
inFlow_ = value;
onChanged();
return this;
}
/**
*
* 整体净流入
*
*
* required double inFlow = 1;
*/
public Builder clearInFlow() {
bitField0_ = (bitField0_ & ~0x00000001);
inFlow_ = 0D;
onChanged();
return this;
}
private java.lang.Object time_ = "";
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public boolean hasTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public java.lang.String getTime() {
java.lang.Object ref = time_;
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()) {
time_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public com.google.protobuf.ByteString
getTimeBytes() {
java.lang.Object ref = time_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
time_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public Builder setTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
time_ = value;
onChanged();
return this;
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public Builder clearTime() {
bitField0_ = (bitField0_ & ~0x00000002);
time_ = getDefaultInstance().getTime();
onChanged();
return this;
}
/**
*
*开始时间字符串,以分钟为单位
*
*
* optional string time = 2;
*/
public Builder setTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
time_ = value;
onChanged();
return this;
}
private double timestamp_ ;
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
public double getTimestamp() {
return timestamp_;
}
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
public Builder setTimestamp(double value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
*
*开始时间戳
*
*
* optional double timestamp = 3;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0D;
onChanged();
return this;
}
private double mainInFlow_ ;
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
public boolean hasMainInFlow() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
public double getMainInFlow() {
return mainInFlow_;
}
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
public Builder setMainInFlow(double value) {
bitField0_ |= 0x00000008;
mainInFlow_ = value;
onChanged();
return this;
}
/**
*
* 主力大单净流入,仅周期类型不为实时有效
*
*
* optional double mainInFlow = 4;
*/
public Builder clearMainInFlow() {
bitField0_ = (bitField0_ & ~0x00000008);
mainInFlow_ = 0D;
onChanged();
return this;
}
private double superInFlow_ ;
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
public boolean hasSuperInFlow() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
public double getSuperInFlow() {
return superInFlow_;
}
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
public Builder setSuperInFlow(double value) {
bitField0_ |= 0x00000010;
superInFlow_ = value;
onChanged();
return this;
}
/**
*
* 特大单净流入
*
*
* optional double superInFlow = 5;
*/
public Builder clearSuperInFlow() {
bitField0_ = (bitField0_ & ~0x00000010);
superInFlow_ = 0D;
onChanged();
return this;
}
private double bigInFlow_ ;
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
public boolean hasBigInFlow() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
public double getBigInFlow() {
return bigInFlow_;
}
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
public Builder setBigInFlow(double value) {
bitField0_ |= 0x00000020;
bigInFlow_ = value;
onChanged();
return this;
}
/**
*
* 大单净流入
*
*
* optional double bigInFlow = 6;
*/
public Builder clearBigInFlow() {
bitField0_ = (bitField0_ & ~0x00000020);
bigInFlow_ = 0D;
onChanged();
return this;
}
private double midInFlow_ ;
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
public boolean hasMidInFlow() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
public double getMidInFlow() {
return midInFlow_;
}
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
public Builder setMidInFlow(double value) {
bitField0_ |= 0x00000040;
midInFlow_ = value;
onChanged();
return this;
}
/**
*
* 中单净流入
*
*
* optional double midInFlow = 7;
*/
public Builder clearMidInFlow() {
bitField0_ = (bitField0_ & ~0x00000040);
midInFlow_ = 0D;
onChanged();
return this;
}
private double smlInFlow_ ;
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
public boolean hasSmlInFlow() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
public double getSmlInFlow() {
return smlInFlow_;
}
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
public Builder setSmlInFlow(double value) {
bitField0_ |= 0x00000080;
smlInFlow_ = value;
onChanged();
return this;
}
/**
*
* 小单净流入
*
*
* optional double smlInFlow = 8;
*/
public Builder clearSmlInFlow() {
bitField0_ = (bitField0_ & ~0x00000080);
smlInFlow_ = 0D;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetCapitalFlow.CapitalFlowItem)
}
// @@protoc_insertion_point(class_scope:Qot_GetCapitalFlow.CapitalFlowItem)
private static final com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem();
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public CapitalFlowItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CapitalFlowItem(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.QotGetCapitalFlow.CapitalFlowItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface S2COrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetCapitalFlow.S2C)
com.google.protobuf.MessageOrBuilder {
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
java.util.List
getFlowItemListList();
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem getFlowItemList(int index);
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
int getFlowItemListCount();
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
java.util.List extends com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder>
getFlowItemListOrBuilderList();
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder getFlowItemListOrBuilder(
int index);
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
boolean hasLastValidTime();
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
java.lang.String getLastValidTime();
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
com.google.protobuf.ByteString
getLastValidTimeBytes();
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
boolean hasLastValidTimestamp();
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
double getLastValidTimestamp();
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.S2C}
*/
public static final class S2C extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetCapitalFlow.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() {
flowItemList_ = java.util.Collections.emptyList();
lastValidTime_ = "";
lastValidTimestamp_ = 0D;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private S2C(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
flowItemList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
flowItemList_.add(
input.readMessage(com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.PARSER, extensionRegistry));
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
lastValidTime_ = bs;
break;
}
case 25: {
bitField0_ |= 0x00000002;
lastValidTimestamp_ = input.readDouble();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
flowItemList_ = java.util.Collections.unmodifiableList(flowItemList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.class, com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder.class);
}
private int bitField0_;
public static final int FLOWITEMLIST_FIELD_NUMBER = 1;
private java.util.List flowItemList_;
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public java.util.List getFlowItemListList() {
return flowItemList_;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public java.util.List extends com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder>
getFlowItemListOrBuilderList() {
return flowItemList_;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public int getFlowItemListCount() {
return flowItemList_.size();
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem getFlowItemList(int index) {
return flowItemList_.get(index);
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder getFlowItemListOrBuilder(
int index) {
return flowItemList_.get(index);
}
public static final int LASTVALIDTIME_FIELD_NUMBER = 2;
private volatile java.lang.Object lastValidTime_;
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public boolean hasLastValidTime() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public java.lang.String getLastValidTime() {
java.lang.Object ref = lastValidTime_;
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()) {
lastValidTime_ = s;
}
return s;
}
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public com.google.protobuf.ByteString
getLastValidTimeBytes() {
java.lang.Object ref = lastValidTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastValidTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LASTVALIDTIMESTAMP_FIELD_NUMBER = 3;
private double lastValidTimestamp_;
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
public boolean hasLastValidTimestamp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
public double getLastValidTimestamp() {
return lastValidTimestamp_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getFlowItemListCount(); i++) {
if (!getFlowItemList(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < flowItemList_.size(); i++) {
output.writeMessage(1, flowItemList_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lastValidTime_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(3, lastValidTimestamp_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < flowItemList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, flowItemList_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lastValidTime_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, lastValidTimestamp_);
}
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.QotGetCapitalFlow.S2C)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C other = (com.moomoo.openapi.pb.QotGetCapitalFlow.S2C) obj;
boolean result = true;
result = result && getFlowItemListList()
.equals(other.getFlowItemListList());
result = result && (hasLastValidTime() == other.hasLastValidTime());
if (hasLastValidTime()) {
result = result && getLastValidTime()
.equals(other.getLastValidTime());
}
result = result && (hasLastValidTimestamp() == other.hasLastValidTimestamp());
if (hasLastValidTimestamp()) {
result = result && (
java.lang.Double.doubleToLongBits(getLastValidTimestamp())
== java.lang.Double.doubleToLongBits(
other.getLastValidTimestamp()));
}
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 (getFlowItemListCount() > 0) {
hash = (37 * hash) + FLOWITEMLIST_FIELD_NUMBER;
hash = (53 * hash) + getFlowItemListList().hashCode();
}
if (hasLastValidTime()) {
hash = (37 * hash) + LASTVALIDTIME_FIELD_NUMBER;
hash = (53 * hash) + getLastValidTime().hashCode();
}
if (hasLastValidTimestamp()) {
hash = (37 * hash) + LASTVALIDTIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getLastValidTimestamp()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.S2C parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.S2C parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.S2C parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.S2C parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.S2C parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.S2C prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.S2C}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetCapitalFlow.S2C)
com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.class, com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetCapitalFlow.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) {
getFlowItemListFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (flowItemListBuilder_ == null) {
flowItemList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
flowItemListBuilder_.clear();
}
lastValidTime_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
lastValidTimestamp_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_S2C_descriptor;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2C getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2C build() {
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2C buildPartial() {
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C result = new com.moomoo.openapi.pb.QotGetCapitalFlow.S2C(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (flowItemListBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
flowItemList_ = java.util.Collections.unmodifiableList(flowItemList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.flowItemList_ = flowItemList_;
} else {
result.flowItemList_ = flowItemListBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.lastValidTime_ = lastValidTime_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.lastValidTimestamp_ = lastValidTimestamp_;
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.QotGetCapitalFlow.S2C) {
return mergeFrom((com.moomoo.openapi.pb.QotGetCapitalFlow.S2C)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetCapitalFlow.S2C other) {
if (other == com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.getDefaultInstance()) return this;
if (flowItemListBuilder_ == null) {
if (!other.flowItemList_.isEmpty()) {
if (flowItemList_.isEmpty()) {
flowItemList_ = other.flowItemList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFlowItemListIsMutable();
flowItemList_.addAll(other.flowItemList_);
}
onChanged();
}
} else {
if (!other.flowItemList_.isEmpty()) {
if (flowItemListBuilder_.isEmpty()) {
flowItemListBuilder_.dispose();
flowItemListBuilder_ = null;
flowItemList_ = other.flowItemList_;
bitField0_ = (bitField0_ & ~0x00000001);
flowItemListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFlowItemListFieldBuilder() : null;
} else {
flowItemListBuilder_.addAllMessages(other.flowItemList_);
}
}
}
if (other.hasLastValidTime()) {
bitField0_ |= 0x00000002;
lastValidTime_ = other.lastValidTime_;
onChanged();
}
if (other.hasLastValidTimestamp()) {
setLastValidTimestamp(other.getLastValidTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getFlowItemListCount(); i++) {
if (!getFlowItemList(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.QotGetCapitalFlow.S2C parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetCapitalFlow.S2C) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List flowItemList_ =
java.util.Collections.emptyList();
private void ensureFlowItemListIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
flowItemList_ = new java.util.ArrayList(flowItemList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder> flowItemListBuilder_;
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public java.util.List getFlowItemListList() {
if (flowItemListBuilder_ == null) {
return java.util.Collections.unmodifiableList(flowItemList_);
} else {
return flowItemListBuilder_.getMessageList();
}
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public int getFlowItemListCount() {
if (flowItemListBuilder_ == null) {
return flowItemList_.size();
} else {
return flowItemListBuilder_.getCount();
}
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem getFlowItemList(int index) {
if (flowItemListBuilder_ == null) {
return flowItemList_.get(index);
} else {
return flowItemListBuilder_.getMessage(index);
}
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder setFlowItemList(
int index, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem value) {
if (flowItemListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFlowItemListIsMutable();
flowItemList_.set(index, value);
onChanged();
} else {
flowItemListBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder setFlowItemList(
int index, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder builderForValue) {
if (flowItemListBuilder_ == null) {
ensureFlowItemListIsMutable();
flowItemList_.set(index, builderForValue.build());
onChanged();
} else {
flowItemListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder addFlowItemList(com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem value) {
if (flowItemListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFlowItemListIsMutable();
flowItemList_.add(value);
onChanged();
} else {
flowItemListBuilder_.addMessage(value);
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder addFlowItemList(
int index, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem value) {
if (flowItemListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFlowItemListIsMutable();
flowItemList_.add(index, value);
onChanged();
} else {
flowItemListBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder addFlowItemList(
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder builderForValue) {
if (flowItemListBuilder_ == null) {
ensureFlowItemListIsMutable();
flowItemList_.add(builderForValue.build());
onChanged();
} else {
flowItemListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder addFlowItemList(
int index, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder builderForValue) {
if (flowItemListBuilder_ == null) {
ensureFlowItemListIsMutable();
flowItemList_.add(index, builderForValue.build());
onChanged();
} else {
flowItemListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder addAllFlowItemList(
java.lang.Iterable extends com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem> values) {
if (flowItemListBuilder_ == null) {
ensureFlowItemListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, flowItemList_);
onChanged();
} else {
flowItemListBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder clearFlowItemList() {
if (flowItemListBuilder_ == null) {
flowItemList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
flowItemListBuilder_.clear();
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public Builder removeFlowItemList(int index) {
if (flowItemListBuilder_ == null) {
ensureFlowItemListIsMutable();
flowItemList_.remove(index);
onChanged();
} else {
flowItemListBuilder_.remove(index);
}
return this;
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder getFlowItemListBuilder(
int index) {
return getFlowItemListFieldBuilder().getBuilder(index);
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder getFlowItemListOrBuilder(
int index) {
if (flowItemListBuilder_ == null) {
return flowItemList_.get(index); } else {
return flowItemListBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public java.util.List extends com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder>
getFlowItemListOrBuilderList() {
if (flowItemListBuilder_ != null) {
return flowItemListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(flowItemList_);
}
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder addFlowItemListBuilder() {
return getFlowItemListFieldBuilder().addBuilder(
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.getDefaultInstance());
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder addFlowItemListBuilder(
int index) {
return getFlowItemListFieldBuilder().addBuilder(
index, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.getDefaultInstance());
}
/**
*
*资金流向
*
*
* repeated .Qot_GetCapitalFlow.CapitalFlowItem flowItemList = 1;
*/
public java.util.List
getFlowItemListBuilderList() {
return getFlowItemListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder>
getFlowItemListFieldBuilder() {
if (flowItemListBuilder_ == null) {
flowItemListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItem.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.CapitalFlowItemOrBuilder>(
flowItemList_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
flowItemList_ = null;
}
return flowItemListBuilder_;
}
private java.lang.Object lastValidTime_ = "";
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public boolean hasLastValidTime() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public java.lang.String getLastValidTime() {
java.lang.Object ref = lastValidTime_;
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()) {
lastValidTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public com.google.protobuf.ByteString
getLastValidTimeBytes() {
java.lang.Object ref = lastValidTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lastValidTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public Builder setLastValidTime(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
lastValidTime_ = value;
onChanged();
return this;
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public Builder clearLastValidTime() {
bitField0_ = (bitField0_ & ~0x00000002);
lastValidTime_ = getDefaultInstance().getLastValidTime();
onChanged();
return this;
}
/**
*
*数据最后有效时间字符串
*
*
* optional string lastValidTime = 2;
*/
public Builder setLastValidTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
lastValidTime_ = value;
onChanged();
return this;
}
private double lastValidTimestamp_ ;
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
public boolean hasLastValidTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
public double getLastValidTimestamp() {
return lastValidTimestamp_;
}
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
public Builder setLastValidTimestamp(double value) {
bitField0_ |= 0x00000004;
lastValidTimestamp_ = value;
onChanged();
return this;
}
/**
*
*数据最后有效时间戳
*
*
* optional double lastValidTimestamp = 3;
*/
public Builder clearLastValidTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
lastValidTimestamp_ = 0D;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetCapitalFlow.S2C)
}
// @@protoc_insertion_point(class_scope:Qot_GetCapitalFlow.S2C)
private static final com.moomoo.openapi.pb.QotGetCapitalFlow.S2C DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetCapitalFlow.S2C();
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.S2C getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetCapitalFlow.Request)
com.google.protobuf.MessageOrBuilder {
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
boolean hasC2S();
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S getC2S();
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder getC2SOrBuilder();
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetCapitalFlow.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.QotGetCapitalFlow.C2S.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = c2S_.toBuilder();
}
c2S_ = input.readMessage(com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.Request.class, com.moomoo.openapi.pb.QotGetCapitalFlow.Request.Builder.class);
}
private int bitField0_;
public static final int C2S_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotGetCapitalFlow.C2S c2S_;
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2S getC2S() {
return c2S_ == null ? com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.getDefaultInstance() : c2S_;
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder getC2SOrBuilder() {
return c2S_ == null ? com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetCapitalFlow.Request other = (com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetCapitalFlow.Request)
com.moomoo.openapi.pb.QotGetCapitalFlow.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.Request.class, com.moomoo.openapi.pb.QotGetCapitalFlow.Request.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Request_descriptor;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.Request getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.Request.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.Request build() {
com.moomoo.openapi.pb.QotGetCapitalFlow.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.Request buildPartial() {
com.moomoo.openapi.pb.QotGetCapitalFlow.Request result = new com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request) {
return mergeFrom((com.moomoo.openapi.pb.QotGetCapitalFlow.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetCapitalFlow.Request other) {
if (other == com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetCapitalFlow.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotGetCapitalFlow.C2S c2S_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S, com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder> c2SBuilder_;
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2S getC2S() {
if (c2SBuilder_ == null) {
return c2S_ == null ? com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.getDefaultInstance() : c2S_;
} else {
return c2SBuilder_.getMessage();
}
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public Builder setC2S(com.moomoo.openapi.pb.QotGetCapitalFlow.C2S value) {
if (c2SBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
c2S_ = value;
onChanged();
} else {
c2SBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public Builder setC2S(
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.Builder builderForValue) {
if (c2SBuilder_ == null) {
c2S_ = builderForValue.build();
onChanged();
} else {
c2SBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public Builder mergeC2S(com.moomoo.openapi.pb.QotGetCapitalFlow.C2S value) {
if (c2SBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
c2S_ != null &&
c2S_ != com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.getDefaultInstance()) {
c2S_ =
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial();
} else {
c2S_ = value;
}
onChanged();
} else {
c2SBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public Builder clearC2S() {
if (c2SBuilder_ == null) {
c2S_ = null;
onChanged();
} else {
c2SBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.Builder getC2SBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getC2SFieldBuilder().getBuilder();
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder getC2SOrBuilder() {
if (c2SBuilder_ != null) {
return c2SBuilder_.getMessageOrBuilder();
} else {
return c2S_ == null ?
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.getDefaultInstance() : c2S_;
}
}
/**
* required .Qot_GetCapitalFlow.C2S c2s = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S, com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder>
getC2SFieldBuilder() {
if (c2SBuilder_ == null) {
c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.C2S, com.moomoo.openapi.pb.QotGetCapitalFlow.C2S.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.C2SOrBuilder>(
getC2S(),
getParentForChildren(),
isClean());
c2S_ = null;
}
return c2SBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetCapitalFlow.Request)
}
// @@protoc_insertion_point(class_scope:Qot_GetCapitalFlow.Request)
private static final com.moomoo.openapi.pb.QotGetCapitalFlow.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetCapitalFlow.Request();
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_GetCapitalFlow.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
boolean hasRetType();
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
int getRetType();
/**
* optional string retMsg = 2;
*/
boolean hasRetMsg();
/**
* optional string retMsg = 2;
*/
java.lang.String getRetMsg();
/**
* optional string retMsg = 2;
*/
com.google.protobuf.ByteString
getRetMsgBytes();
/**
* optional int32 errCode = 3;
*/
boolean hasErrCode();
/**
* optional int32 errCode = 3;
*/
int getErrCode();
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
boolean hasS2C();
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C getS2C();
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder getS2COrBuilder();
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_GetCapitalFlow.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.QotGetCapitalFlow.S2C.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = s2C_.toBuilder();
}
s2C_ = input.readMessage(com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.Response.class, com.moomoo.openapi.pb.QotGetCapitalFlow.Response.Builder.class);
}
private int bitField0_;
public static final int RETTYPE_FIELD_NUMBER = 1;
private int retType_;
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
public static final int RETMSG_FIELD_NUMBER = 2;
private volatile java.lang.Object retMsg_;
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRCODE_FIELD_NUMBER = 3;
private int errCode_;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
public static final int S2C_FIELD_NUMBER = 4;
private com.moomoo.openapi.pb.QotGetCapitalFlow.S2C s2C_;
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2C getS2C() {
return s2C_ == null ? com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.getDefaultInstance() : s2C_;
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder getS2COrBuilder() {
return s2C_ == null ? com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotGetCapitalFlow.Response other = (com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.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.QotGetCapitalFlow.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_GetCapitalFlow.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_GetCapitalFlow.Response)
com.moomoo.openapi.pb.QotGetCapitalFlow.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotGetCapitalFlow.Response.class, com.moomoo.openapi.pb.QotGetCapitalFlow.Response.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.internal_static_Qot_GetCapitalFlow_Response_descriptor;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.Response getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotGetCapitalFlow.Response.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.Response build() {
com.moomoo.openapi.pb.QotGetCapitalFlow.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotGetCapitalFlow.Response buildPartial() {
com.moomoo.openapi.pb.QotGetCapitalFlow.Response result = new com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response) {
return mergeFrom((com.moomoo.openapi.pb.QotGetCapitalFlow.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotGetCapitalFlow.Response other) {
if (other == com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotGetCapitalFlow.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int retType_ = -400;
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder setRetType(int value) {
bitField0_ |= 0x00000001;
retType_ = value;
onChanged();
return this;
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder clearRetType() {
bitField0_ = (bitField0_ & ~0x00000001);
retType_ = -400;
onChanged();
return this;
}
private java.lang.Object retMsg_ = "";
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder clearRetMsg() {
bitField0_ = (bitField0_ & ~0x00000002);
retMsg_ = getDefaultInstance().getRetMsg();
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
private int errCode_ ;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
/**
* optional int32 errCode = 3;
*/
public Builder setErrCode(int value) {
bitField0_ |= 0x00000004;
errCode_ = value;
onChanged();
return this;
}
/**
* optional int32 errCode = 3;
*/
public Builder clearErrCode() {
bitField0_ = (bitField0_ & ~0x00000004);
errCode_ = 0;
onChanged();
return this;
}
private com.moomoo.openapi.pb.QotGetCapitalFlow.S2C s2C_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C, com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder> s2CBuilder_;
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2C getS2C() {
if (s2CBuilder_ == null) {
return s2C_ == null ? com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.getDefaultInstance() : s2C_;
} else {
return s2CBuilder_.getMessage();
}
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public Builder setS2C(com.moomoo.openapi.pb.QotGetCapitalFlow.S2C value) {
if (s2CBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
s2C_ = value;
onChanged();
} else {
s2CBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public Builder setS2C(
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder builderForValue) {
if (s2CBuilder_ == null) {
s2C_ = builderForValue.build();
onChanged();
} else {
s2CBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public Builder mergeS2C(com.moomoo.openapi.pb.QotGetCapitalFlow.S2C value) {
if (s2CBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
s2C_ != null &&
s2C_ != com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.getDefaultInstance()) {
s2C_ =
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial();
} else {
s2C_ = value;
}
onChanged();
} else {
s2CBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public Builder clearS2C() {
if (s2CBuilder_ == null) {
s2C_ = null;
onChanged();
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder getS2CBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getS2CFieldBuilder().getBuilder();
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder getS2COrBuilder() {
if (s2CBuilder_ != null) {
return s2CBuilder_.getMessageOrBuilder();
} else {
return s2C_ == null ?
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.getDefaultInstance() : s2C_;
}
}
/**
* optional .Qot_GetCapitalFlow.S2C s2c = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C, com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder>
getS2CFieldBuilder() {
if (s2CBuilder_ == null) {
s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotGetCapitalFlow.S2C, com.moomoo.openapi.pb.QotGetCapitalFlow.S2C.Builder, com.moomoo.openapi.pb.QotGetCapitalFlow.S2COrBuilder>(
getS2C(),
getParentForChildren(),
isClean());
s2C_ = null;
}
return s2CBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_GetCapitalFlow.Response)
}
// @@protoc_insertion_point(class_scope:Qot_GetCapitalFlow.Response)
private static final com.moomoo.openapi.pb.QotGetCapitalFlow.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotGetCapitalFlow.Response();
}
public static com.moomoo.openapi.pb.QotGetCapitalFlow.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.QotGetCapitalFlow.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetCapitalFlow_C2S_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetCapitalFlow_C2S_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetCapitalFlow_CapitalFlowItem_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetCapitalFlow_CapitalFlowItem_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetCapitalFlow_S2C_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetCapitalFlow_S2C_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetCapitalFlow_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetCapitalFlow_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_GetCapitalFlow_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_GetCapitalFlow_Response_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\030Qot_GetCapitalFlow.proto\022\022Qot_GetCapit" +
"alFlow\032\014Common.proto\032\020Qot_Common.proto\"e" +
"\n\003C2S\022&\n\010security\030\001 \002(\0132\024.Qot_Common.Sec" +
"urity\022\022\n\nperiodType\030\002 \001(\005\022\021\n\tbeginTime\030\003" +
" \001(\t\022\017\n\007endTime\030\004 \001(\t\"\244\001\n\017CapitalFlowIte" +
"m\022\016\n\006inFlow\030\001 \002(\001\022\014\n\004time\030\002 \001(\t\022\021\n\ttimes" +
"tamp\030\003 \001(\001\022\022\n\nmainInFlow\030\004 \001(\001\022\023\n\013superI" +
"nFlow\030\005 \001(\001\022\021\n\tbigInFlow\030\006 \001(\001\022\021\n\tmidInF" +
"low\030\007 \001(\001\022\021\n\tsmlInFlow\030\010 \001(\001\"s\n\003S2C\0229\n\014f" +
"lowItemList\030\001 \003(\0132#.Qot_GetCapitalFlow.C" +
"apitalFlowItem\022\025\n\rlastValidTime\030\002 \001(\t\022\032\n" +
"\022lastValidTimestamp\030\003 \001(\001\"/\n\007Request\022$\n\003" +
"c2s\030\001 \002(\0132\027.Qot_GetCapitalFlow.C2S\"h\n\010Re" +
"sponse\022\025\n\007retType\030\001 \002(\005:\004-400\022\016\n\006retMsg\030" +
"\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022$\n\003s2c\030\004 \001(\0132\027.Qo" +
"t_GetCapitalFlow.S2CBJ\n\025com.moomoo.opena" +
"pi.pbZ1github.com/futuopen/ftapi4go/pb/q" +
"otgetcapitalflow"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.moomoo.openapi.pb.Common.getDescriptor(),
com.moomoo.openapi.pb.QotCommon.getDescriptor(),
}, assigner);
internal_static_Qot_GetCapitalFlow_C2S_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Qot_GetCapitalFlow_C2S_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetCapitalFlow_C2S_descriptor,
new java.lang.String[] { "Security", "PeriodType", "BeginTime", "EndTime", });
internal_static_Qot_GetCapitalFlow_CapitalFlowItem_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Qot_GetCapitalFlow_CapitalFlowItem_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetCapitalFlow_CapitalFlowItem_descriptor,
new java.lang.String[] { "InFlow", "Time", "Timestamp", "MainInFlow", "SuperInFlow", "BigInFlow", "MidInFlow", "SmlInFlow", });
internal_static_Qot_GetCapitalFlow_S2C_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Qot_GetCapitalFlow_S2C_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetCapitalFlow_S2C_descriptor,
new java.lang.String[] { "FlowItemList", "LastValidTime", "LastValidTimestamp", });
internal_static_Qot_GetCapitalFlow_Request_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Qot_GetCapitalFlow_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetCapitalFlow_Request_descriptor,
new java.lang.String[] { "C2S", });
internal_static_Qot_GetCapitalFlow_Response_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_Qot_GetCapitalFlow_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_GetCapitalFlow_Response_descriptor,
new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", });
com.moomoo.openapi.pb.Common.getDescriptor();
com.moomoo.openapi.pb.QotCommon.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}