com.moomoo.openapi.pb.GetUserInfo 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: GetUserInfo.proto
package com.moomoo.openapi.pb;
public final class GetUserInfo {
private GetUserInfo() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code GetUserInfo.UpdateType}
*/
public enum UpdateType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*无需升级
*
*
* UpdateType_None = 0;
*/
UpdateType_None(0),
/**
*
*建议升级
*
*
* UpdateType_Advice = 1;
*/
UpdateType_Advice(1),
/**
*
*强制升级
*
*
* UpdateType_Force = 2;
*/
UpdateType_Force(2),
;
/**
*
*无需升级
*
*
* UpdateType_None = 0;
*/
public static final int UpdateType_None_VALUE = 0;
/**
*
*建议升级
*
*
* UpdateType_Advice = 1;
*/
public static final int UpdateType_Advice_VALUE = 1;
/**
*
*强制升级
*
*
* UpdateType_Force = 2;
*/
public static final int UpdateType_Force_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UpdateType valueOf(int value) {
return forNumber(value);
}
public static UpdateType forNumber(int value) {
switch (value) {
case 0: return UpdateType_None;
case 1: return UpdateType_Advice;
case 2: return UpdateType_Force;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UpdateType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UpdateType findValueByNumber(int number) {
return UpdateType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.getDescriptor().getEnumTypes().get(0);
}
private static final UpdateType[] VALUES = values();
public static UpdateType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private UpdateType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GetUserInfo.UpdateType)
}
/**
* Protobuf enum {@code GetUserInfo.UserInfoField}
*/
public enum UserInfoField
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*昵称,用户头像,牛牛号
*
*
* UserInfoField_Basic = 1;
*/
UserInfoField_Basic(1),
/**
*
*API权限信息
*
*
* UserInfoField_API = 2;
*/
UserInfoField_API(2),
/**
*
*市场的行情权限
*
*
* UserInfoField_QotRight = 4;
*/
UserInfoField_QotRight(4),
/**
*
*免责
*
*
* UserInfoField_Disclaimer = 8;
*/
UserInfoField_Disclaimer(8),
/**
*
*升级类型
*
*
* UserInfoField_Update = 16;
*/
UserInfoField_Update(16),
/**
* UserInfoField_WebKey = 2048;
*/
UserInfoField_WebKey(2048),
;
/**
*
*昵称,用户头像,牛牛号
*
*
* UserInfoField_Basic = 1;
*/
public static final int UserInfoField_Basic_VALUE = 1;
/**
*
*API权限信息
*
*
* UserInfoField_API = 2;
*/
public static final int UserInfoField_API_VALUE = 2;
/**
*
*市场的行情权限
*
*
* UserInfoField_QotRight = 4;
*/
public static final int UserInfoField_QotRight_VALUE = 4;
/**
*
*免责
*
*
* UserInfoField_Disclaimer = 8;
*/
public static final int UserInfoField_Disclaimer_VALUE = 8;
/**
*
*升级类型
*
*
* UserInfoField_Update = 16;
*/
public static final int UserInfoField_Update_VALUE = 16;
/**
* UserInfoField_WebKey = 2048;
*/
public static final int UserInfoField_WebKey_VALUE = 2048;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UserInfoField valueOf(int value) {
return forNumber(value);
}
public static UserInfoField forNumber(int value) {
switch (value) {
case 1: return UserInfoField_Basic;
case 2: return UserInfoField_API;
case 4: return UserInfoField_QotRight;
case 8: return UserInfoField_Disclaimer;
case 16: return UserInfoField_Update;
case 2048: return UserInfoField_WebKey;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UserInfoField> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UserInfoField findValueByNumber(int number) {
return UserInfoField.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.getDescriptor().getEnumTypes().get(1);
}
private static final UserInfoField[] VALUES = values();
public static UserInfoField valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private UserInfoField(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:GetUserInfo.UserInfoField)
}
public interface C2SOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetUserInfo.C2S)
com.google.protobuf.MessageOrBuilder {
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
boolean hasFlag();
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
int getFlag();
}
/**
* Protobuf type {@code GetUserInfo.C2S}
*/
public static final class C2S extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetUserInfo.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() {
flag_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private C2S(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 16: {
bitField0_ |= 0x00000001;
flag_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.C2S.class, com.moomoo.openapi.pb.GetUserInfo.C2S.Builder.class);
}
private int bitField0_;
public static final int FLAG_FIELD_NUMBER = 2;
private int flag_;
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
public boolean hasFlag() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
public int getFlag() {
return flag_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(2, flag_);
}
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(2, flag_);
}
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.GetUserInfo.C2S)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.GetUserInfo.C2S other = (com.moomoo.openapi.pb.GetUserInfo.C2S) obj;
boolean result = true;
result = result && (hasFlag() == other.hasFlag());
if (hasFlag()) {
result = result && (getFlag()
== other.getFlag());
}
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 (hasFlag()) {
hash = (37 * hash) + FLAG_FIELD_NUMBER;
hash = (53 * hash) + getFlag();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.GetUserInfo.C2S parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.C2S parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.C2S parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.C2S parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.C2S parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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 GetUserInfo.C2S}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GetUserInfo.C2S)
com.moomoo.openapi.pb.GetUserInfo.C2SOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.C2S.class, com.moomoo.openapi.pb.GetUserInfo.C2S.Builder.class);
}
// Construct using com.moomoo.openapi.pb.GetUserInfo.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) {
}
}
public Builder clear() {
super.clear();
flag_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_C2S_descriptor;
}
public com.moomoo.openapi.pb.GetUserInfo.C2S getDefaultInstanceForType() {
return com.moomoo.openapi.pb.GetUserInfo.C2S.getDefaultInstance();
}
public com.moomoo.openapi.pb.GetUserInfo.C2S build() {
com.moomoo.openapi.pb.GetUserInfo.C2S result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.GetUserInfo.C2S buildPartial() {
com.moomoo.openapi.pb.GetUserInfo.C2S result = new com.moomoo.openapi.pb.GetUserInfo.C2S(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.flag_ = flag_;
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.GetUserInfo.C2S) {
return mergeFrom((com.moomoo.openapi.pb.GetUserInfo.C2S)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.GetUserInfo.C2S other) {
if (other == com.moomoo.openapi.pb.GetUserInfo.C2S.getDefaultInstance()) return this;
if (other.hasFlag()) {
setFlag(other.getFlag());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.GetUserInfo.C2S parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.GetUserInfo.C2S) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int flag_ ;
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
public boolean hasFlag() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
public int getFlag() {
return flag_;
}
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
public Builder setFlag(int value) {
bitField0_ |= 0x00000001;
flag_ = value;
onChanged();
return this;
}
/**
*
*UserInfoField集合,不设置默认返回全部信息
*
*
* optional int32 flag = 2;
*/
public Builder clearFlag() {
bitField0_ = (bitField0_ & ~0x00000001);
flag_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:GetUserInfo.C2S)
}
// @@protoc_insertion_point(class_scope:GetUserInfo.C2S)
private static final com.moomoo.openapi.pb.GetUserInfo.C2S DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetUserInfo.C2S();
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.C2S getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface S2COrBuilder extends
// @@protoc_insertion_point(interface_extends:GetUserInfo.S2C)
com.google.protobuf.MessageOrBuilder {
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
boolean hasNickName();
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
java.lang.String getNickName();
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
com.google.protobuf.ByteString
getNickNameBytes();
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
boolean hasAvatarUrl();
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
java.lang.String getAvatarUrl();
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
com.google.protobuf.ByteString
getAvatarUrlBytes();
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
boolean hasApiLevel();
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
java.lang.String getApiLevel();
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
com.google.protobuf.ByteString
getApiLevelBytes();
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
boolean hasHkQotRight();
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
int getHkQotRight();
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
boolean hasUsQotRight();
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
int getUsQotRight();
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
boolean hasCnQotRight();
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
int getCnQotRight();
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
boolean hasIsNeedAgreeDisclaimer();
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
boolean getIsNeedAgreeDisclaimer();
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
boolean hasUserID();
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
long getUserID();
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
boolean hasUpdateType();
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
int getUpdateType();
/**
* optional string webKey = 10;
*/
boolean hasWebKey();
/**
* optional string webKey = 10;
*/
java.lang.String getWebKey();
/**
* optional string webKey = 10;
*/
com.google.protobuf.ByteString
getWebKeyBytes();
/**
* optional string webJumpUrlHead = 18;
*/
boolean hasWebJumpUrlHead();
/**
* optional string webJumpUrlHead = 18;
*/
java.lang.String getWebJumpUrlHead();
/**
* optional string webJumpUrlHead = 18;
*/
com.google.protobuf.ByteString
getWebJumpUrlHeadBytes();
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
boolean hasHkOptionQotRight();
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
int getHkOptionQotRight();
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
boolean hasHasUSOptionQotRight();
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
boolean getHasUSOptionQotRight();
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
boolean hasHkFutureQotRight();
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
int getHkFutureQotRight();
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
boolean hasSubQuota();
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
int getSubQuota();
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
boolean hasHistoryKLQuota();
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
int getHistoryKLQuota();
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
boolean hasUsFutureQotRight();
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
int getUsFutureQotRight();
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
boolean hasUsOptionQotRight();
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
int getUsOptionQotRight();
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
boolean hasUserAttribution();
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
int getUserAttribution();
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
boolean hasUpdateWhatsNew();
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
java.lang.String getUpdateWhatsNew();
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
com.google.protobuf.ByteString
getUpdateWhatsNewBytes();
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
boolean hasUsIndexQotRight();
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
int getUsIndexQotRight();
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
boolean hasUsOtcQotRight();
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
int getUsOtcQotRight();
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
boolean hasUsCMEFutureQotRight();
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
int getUsCMEFutureQotRight();
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
boolean hasUsCBOTFutureQotRight();
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
int getUsCBOTFutureQotRight();
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
boolean hasUsNYMEXFutureQotRight();
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
int getUsNYMEXFutureQotRight();
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
boolean hasUsCOMEXFutureQotRight();
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
int getUsCOMEXFutureQotRight();
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
boolean hasUsCBOEFutureQotRight();
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
int getUsCBOEFutureQotRight();
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
boolean hasSgFutureQotRight();
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
int getSgFutureQotRight();
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
boolean hasJpFutureQotRight();
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
int getJpFutureQotRight();
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
boolean hasIsAppNNOrMM();
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
boolean getIsAppNNOrMM();
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
boolean hasShQotRight();
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
int getShQotRight();
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
boolean hasSzQotRight();
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
int getSzQotRight();
}
/**
* Protobuf type {@code GetUserInfo.S2C}
*/
public static final class S2C extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetUserInfo.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() {
nickName_ = "";
avatarUrl_ = "";
apiLevel_ = "";
hkQotRight_ = 0;
usQotRight_ = 0;
cnQotRight_ = 0;
isNeedAgreeDisclaimer_ = false;
userID_ = 0L;
updateType_ = 0;
webKey_ = "";
webJumpUrlHead_ = "";
hkOptionQotRight_ = 0;
hasUSOptionQotRight_ = false;
hkFutureQotRight_ = 0;
subQuota_ = 0;
historyKLQuota_ = 0;
usFutureQotRight_ = 0;
usOptionQotRight_ = 0;
userAttribution_ = 0;
updateWhatsNew_ = "";
usIndexQotRight_ = 0;
usOtcQotRight_ = 0;
usCMEFutureQotRight_ = 0;
usCBOTFutureQotRight_ = 0;
usNYMEXFutureQotRight_ = 0;
usCOMEXFutureQotRight_ = 0;
usCBOEFutureQotRight_ = 0;
sgFutureQotRight_ = 0;
jpFutureQotRight_ = 0;
isAppNNOrMM_ = false;
shQotRight_ = 0;
szQotRight_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private S2C(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
nickName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
avatarUrl_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
apiLevel_ = bs;
break;
}
case 32: {
bitField0_ |= 0x00000008;
hkQotRight_ = input.readInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
usQotRight_ = input.readInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
cnQotRight_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
isNeedAgreeDisclaimer_ = input.readBool();
break;
}
case 64: {
bitField0_ |= 0x00000080;
userID_ = input.readInt64();
break;
}
case 72: {
bitField0_ |= 0x00000100;
updateType_ = input.readInt32();
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000200;
webKey_ = bs;
break;
}
case 88: {
bitField0_ |= 0x00000800;
hkOptionQotRight_ = input.readInt32();
break;
}
case 96: {
bitField0_ |= 0x00001000;
hasUSOptionQotRight_ = input.readBool();
break;
}
case 104: {
bitField0_ |= 0x00002000;
hkFutureQotRight_ = input.readInt32();
break;
}
case 112: {
bitField0_ |= 0x00004000;
subQuota_ = input.readInt32();
break;
}
case 120: {
bitField0_ |= 0x00008000;
historyKLQuota_ = input.readInt32();
break;
}
case 128: {
bitField0_ |= 0x00010000;
usFutureQotRight_ = input.readInt32();
break;
}
case 136: {
bitField0_ |= 0x00020000;
usOptionQotRight_ = input.readInt32();
break;
}
case 146: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
webJumpUrlHead_ = bs;
break;
}
case 152: {
bitField0_ |= 0x00040000;
userAttribution_ = input.readInt32();
break;
}
case 162: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00080000;
updateWhatsNew_ = bs;
break;
}
case 168: {
bitField0_ |= 0x00100000;
usIndexQotRight_ = input.readInt32();
break;
}
case 176: {
bitField0_ |= 0x00200000;
usOtcQotRight_ = input.readInt32();
break;
}
case 184: {
bitField0_ |= 0x00400000;
usCMEFutureQotRight_ = input.readInt32();
break;
}
case 192: {
bitField0_ |= 0x00800000;
usCBOTFutureQotRight_ = input.readInt32();
break;
}
case 200: {
bitField0_ |= 0x01000000;
usNYMEXFutureQotRight_ = input.readInt32();
break;
}
case 208: {
bitField0_ |= 0x02000000;
usCOMEXFutureQotRight_ = input.readInt32();
break;
}
case 216: {
bitField0_ |= 0x04000000;
usCBOEFutureQotRight_ = input.readInt32();
break;
}
case 224: {
bitField0_ |= 0x08000000;
sgFutureQotRight_ = input.readInt32();
break;
}
case 232: {
bitField0_ |= 0x10000000;
jpFutureQotRight_ = input.readInt32();
break;
}
case 240: {
bitField0_ |= 0x20000000;
isAppNNOrMM_ = input.readBool();
break;
}
case 248: {
bitField0_ |= 0x40000000;
shQotRight_ = input.readInt32();
break;
}
case 256: {
bitField0_ |= 0x80000000;
szQotRight_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.S2C.class, com.moomoo.openapi.pb.GetUserInfo.S2C.Builder.class);
}
private int bitField0_;
public static final int NICKNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object nickName_;
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public boolean hasNickName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public java.lang.String getNickName() {
java.lang.Object ref = nickName_;
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()) {
nickName_ = s;
}
return s;
}
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public com.google.protobuf.ByteString
getNickNameBytes() {
java.lang.Object ref = nickName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AVATARURL_FIELD_NUMBER = 2;
private volatile java.lang.Object avatarUrl_;
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public boolean hasAvatarUrl() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public java.lang.String getAvatarUrl() {
java.lang.Object ref = avatarUrl_;
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()) {
avatarUrl_ = s;
}
return s;
}
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public com.google.protobuf.ByteString
getAvatarUrlBytes() {
java.lang.Object ref = avatarUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
avatarUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APILEVEL_FIELD_NUMBER = 3;
private volatile java.lang.Object apiLevel_;
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public boolean hasApiLevel() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public java.lang.String getApiLevel() {
java.lang.Object ref = apiLevel_;
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()) {
apiLevel_ = s;
}
return s;
}
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public com.google.protobuf.ByteString
getApiLevelBytes() {
java.lang.Object ref = apiLevel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HKQOTRIGHT_FIELD_NUMBER = 4;
private int hkQotRight_;
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
public boolean hasHkQotRight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
public int getHkQotRight() {
return hkQotRight_;
}
public static final int USQOTRIGHT_FIELD_NUMBER = 5;
private int usQotRight_;
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
public boolean hasUsQotRight() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
public int getUsQotRight() {
return usQotRight_;
}
public static final int CNQOTRIGHT_FIELD_NUMBER = 6;
private int cnQotRight_;
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
public boolean hasCnQotRight() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
public int getCnQotRight() {
return cnQotRight_;
}
public static final int ISNEEDAGREEDISCLAIMER_FIELD_NUMBER = 7;
private boolean isNeedAgreeDisclaimer_;
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
public boolean hasIsNeedAgreeDisclaimer() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
public boolean getIsNeedAgreeDisclaimer() {
return isNeedAgreeDisclaimer_;
}
public static final int USERID_FIELD_NUMBER = 8;
private long userID_;
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
public boolean hasUserID() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
public long getUserID() {
return userID_;
}
public static final int UPDATETYPE_FIELD_NUMBER = 9;
private int updateType_;
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
public boolean hasUpdateType() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
public int getUpdateType() {
return updateType_;
}
public static final int WEBKEY_FIELD_NUMBER = 10;
private volatile java.lang.Object webKey_;
/**
* optional string webKey = 10;
*/
public boolean hasWebKey() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string webKey = 10;
*/
public java.lang.String getWebKey() {
java.lang.Object ref = webKey_;
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()) {
webKey_ = s;
}
return s;
}
}
/**
* optional string webKey = 10;
*/
public com.google.protobuf.ByteString
getWebKeyBytes() {
java.lang.Object ref = webKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
webKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WEBJUMPURLHEAD_FIELD_NUMBER = 18;
private volatile java.lang.Object webJumpUrlHead_;
/**
* optional string webJumpUrlHead = 18;
*/
public boolean hasWebJumpUrlHead() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string webJumpUrlHead = 18;
*/
public java.lang.String getWebJumpUrlHead() {
java.lang.Object ref = webJumpUrlHead_;
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()) {
webJumpUrlHead_ = s;
}
return s;
}
}
/**
* optional string webJumpUrlHead = 18;
*/
public com.google.protobuf.ByteString
getWebJumpUrlHeadBytes() {
java.lang.Object ref = webJumpUrlHead_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
webJumpUrlHead_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HKOPTIONQOTRIGHT_FIELD_NUMBER = 11;
private int hkOptionQotRight_;
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
public boolean hasHkOptionQotRight() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
public int getHkOptionQotRight() {
return hkOptionQotRight_;
}
public static final int HASUSOPTIONQOTRIGHT_FIELD_NUMBER = 12;
private boolean hasUSOptionQotRight_;
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
public boolean hasHasUSOptionQotRight() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
public boolean getHasUSOptionQotRight() {
return hasUSOptionQotRight_;
}
public static final int HKFUTUREQOTRIGHT_FIELD_NUMBER = 13;
private int hkFutureQotRight_;
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
public boolean hasHkFutureQotRight() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
public int getHkFutureQotRight() {
return hkFutureQotRight_;
}
public static final int SUBQUOTA_FIELD_NUMBER = 14;
private int subQuota_;
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
public boolean hasSubQuota() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
public int getSubQuota() {
return subQuota_;
}
public static final int HISTORYKLQUOTA_FIELD_NUMBER = 15;
private int historyKLQuota_;
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
public boolean hasHistoryKLQuota() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
public int getHistoryKLQuota() {
return historyKLQuota_;
}
public static final int USFUTUREQOTRIGHT_FIELD_NUMBER = 16;
private int usFutureQotRight_;
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
public boolean hasUsFutureQotRight() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
public int getUsFutureQotRight() {
return usFutureQotRight_;
}
public static final int USOPTIONQOTRIGHT_FIELD_NUMBER = 17;
private int usOptionQotRight_;
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
public boolean hasUsOptionQotRight() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
public int getUsOptionQotRight() {
return usOptionQotRight_;
}
public static final int USERATTRIBUTION_FIELD_NUMBER = 19;
private int userAttribution_;
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
public boolean hasUserAttribution() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
public int getUserAttribution() {
return userAttribution_;
}
public static final int UPDATEWHATSNEW_FIELD_NUMBER = 20;
private volatile java.lang.Object updateWhatsNew_;
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public boolean hasUpdateWhatsNew() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public java.lang.String getUpdateWhatsNew() {
java.lang.Object ref = updateWhatsNew_;
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()) {
updateWhatsNew_ = s;
}
return s;
}
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public com.google.protobuf.ByteString
getUpdateWhatsNewBytes() {
java.lang.Object ref = updateWhatsNew_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateWhatsNew_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USINDEXQOTRIGHT_FIELD_NUMBER = 21;
private int usIndexQotRight_;
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
public boolean hasUsIndexQotRight() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
public int getUsIndexQotRight() {
return usIndexQotRight_;
}
public static final int USOTCQOTRIGHT_FIELD_NUMBER = 22;
private int usOtcQotRight_;
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
public boolean hasUsOtcQotRight() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
public int getUsOtcQotRight() {
return usOtcQotRight_;
}
public static final int USCMEFUTUREQOTRIGHT_FIELD_NUMBER = 23;
private int usCMEFutureQotRight_;
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
public boolean hasUsCMEFutureQotRight() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
public int getUsCMEFutureQotRight() {
return usCMEFutureQotRight_;
}
public static final int USCBOTFUTUREQOTRIGHT_FIELD_NUMBER = 24;
private int usCBOTFutureQotRight_;
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
public boolean hasUsCBOTFutureQotRight() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
public int getUsCBOTFutureQotRight() {
return usCBOTFutureQotRight_;
}
public static final int USNYMEXFUTUREQOTRIGHT_FIELD_NUMBER = 25;
private int usNYMEXFutureQotRight_;
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
public boolean hasUsNYMEXFutureQotRight() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
public int getUsNYMEXFutureQotRight() {
return usNYMEXFutureQotRight_;
}
public static final int USCOMEXFUTUREQOTRIGHT_FIELD_NUMBER = 26;
private int usCOMEXFutureQotRight_;
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
public boolean hasUsCOMEXFutureQotRight() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
public int getUsCOMEXFutureQotRight() {
return usCOMEXFutureQotRight_;
}
public static final int USCBOEFUTUREQOTRIGHT_FIELD_NUMBER = 27;
private int usCBOEFutureQotRight_;
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
public boolean hasUsCBOEFutureQotRight() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
public int getUsCBOEFutureQotRight() {
return usCBOEFutureQotRight_;
}
public static final int SGFUTUREQOTRIGHT_FIELD_NUMBER = 28;
private int sgFutureQotRight_;
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
public boolean hasSgFutureQotRight() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
public int getSgFutureQotRight() {
return sgFutureQotRight_;
}
public static final int JPFUTUREQOTRIGHT_FIELD_NUMBER = 29;
private int jpFutureQotRight_;
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
public boolean hasJpFutureQotRight() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
public int getJpFutureQotRight() {
return jpFutureQotRight_;
}
public static final int ISAPPNNORMM_FIELD_NUMBER = 30;
private boolean isAppNNOrMM_;
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
public boolean hasIsAppNNOrMM() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
public boolean getIsAppNNOrMM() {
return isAppNNOrMM_;
}
public static final int SHQOTRIGHT_FIELD_NUMBER = 31;
private int shQotRight_;
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
public boolean hasShQotRight() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
public int getShQotRight() {
return shQotRight_;
}
public static final int SZQOTRIGHT_FIELD_NUMBER = 32;
private int szQotRight_;
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
public boolean hasSzQotRight() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
public int getSzQotRight() {
return szQotRight_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nickName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, avatarUrl_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, apiLevel_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, hkQotRight_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, usQotRight_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, cnQotRight_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeBool(7, isNeedAgreeDisclaimer_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt64(8, userID_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt32(9, updateType_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, webKey_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeInt32(11, hkOptionQotRight_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeBool(12, hasUSOptionQotRight_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeInt32(13, hkFutureQotRight_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeInt32(14, subQuota_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeInt32(15, historyKLQuota_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeInt32(16, usFutureQotRight_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
output.writeInt32(17, usOptionQotRight_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, webJumpUrlHead_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
output.writeInt32(19, userAttribution_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 20, updateWhatsNew_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
output.writeInt32(21, usIndexQotRight_);
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
output.writeInt32(22, usOtcQotRight_);
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
output.writeInt32(23, usCMEFutureQotRight_);
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
output.writeInt32(24, usCBOTFutureQotRight_);
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
output.writeInt32(25, usNYMEXFutureQotRight_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
output.writeInt32(26, usCOMEXFutureQotRight_);
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
output.writeInt32(27, usCBOEFutureQotRight_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
output.writeInt32(28, sgFutureQotRight_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
output.writeInt32(29, jpFutureQotRight_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
output.writeBool(30, isAppNNOrMM_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
output.writeInt32(31, shQotRight_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
output.writeInt32(32, szQotRight_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nickName_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, avatarUrl_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, apiLevel_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, hkQotRight_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, usQotRight_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, cnQotRight_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isNeedAgreeDisclaimer_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, userID_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, updateType_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, webKey_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, hkOptionQotRight_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, hasUSOptionQotRight_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, hkFutureQotRight_);
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, subQuota_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(15, historyKLQuota_);
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, usFutureQotRight_);
}
if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, usOptionQotRight_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, webJumpUrlHead_);
}
if (((bitField0_ & 0x00040000) == 0x00040000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(19, userAttribution_);
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, updateWhatsNew_);
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(21, usIndexQotRight_);
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(22, usOtcQotRight_);
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(23, usCMEFutureQotRight_);
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(24, usCBOTFutureQotRight_);
}
if (((bitField0_ & 0x01000000) == 0x01000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(25, usNYMEXFutureQotRight_);
}
if (((bitField0_ & 0x02000000) == 0x02000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(26, usCOMEXFutureQotRight_);
}
if (((bitField0_ & 0x04000000) == 0x04000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(27, usCBOEFutureQotRight_);
}
if (((bitField0_ & 0x08000000) == 0x08000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(28, sgFutureQotRight_);
}
if (((bitField0_ & 0x10000000) == 0x10000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(29, jpFutureQotRight_);
}
if (((bitField0_ & 0x20000000) == 0x20000000)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, isAppNNOrMM_);
}
if (((bitField0_ & 0x40000000) == 0x40000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(31, shQotRight_);
}
if (((bitField0_ & 0x80000000) == 0x80000000)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(32, szQotRight_);
}
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.GetUserInfo.S2C)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.GetUserInfo.S2C other = (com.moomoo.openapi.pb.GetUserInfo.S2C) obj;
boolean result = true;
result = result && (hasNickName() == other.hasNickName());
if (hasNickName()) {
result = result && getNickName()
.equals(other.getNickName());
}
result = result && (hasAvatarUrl() == other.hasAvatarUrl());
if (hasAvatarUrl()) {
result = result && getAvatarUrl()
.equals(other.getAvatarUrl());
}
result = result && (hasApiLevel() == other.hasApiLevel());
if (hasApiLevel()) {
result = result && getApiLevel()
.equals(other.getApiLevel());
}
result = result && (hasHkQotRight() == other.hasHkQotRight());
if (hasHkQotRight()) {
result = result && (getHkQotRight()
== other.getHkQotRight());
}
result = result && (hasUsQotRight() == other.hasUsQotRight());
if (hasUsQotRight()) {
result = result && (getUsQotRight()
== other.getUsQotRight());
}
result = result && (hasCnQotRight() == other.hasCnQotRight());
if (hasCnQotRight()) {
result = result && (getCnQotRight()
== other.getCnQotRight());
}
result = result && (hasIsNeedAgreeDisclaimer() == other.hasIsNeedAgreeDisclaimer());
if (hasIsNeedAgreeDisclaimer()) {
result = result && (getIsNeedAgreeDisclaimer()
== other.getIsNeedAgreeDisclaimer());
}
result = result && (hasUserID() == other.hasUserID());
if (hasUserID()) {
result = result && (getUserID()
== other.getUserID());
}
result = result && (hasUpdateType() == other.hasUpdateType());
if (hasUpdateType()) {
result = result && (getUpdateType()
== other.getUpdateType());
}
result = result && (hasWebKey() == other.hasWebKey());
if (hasWebKey()) {
result = result && getWebKey()
.equals(other.getWebKey());
}
result = result && (hasWebJumpUrlHead() == other.hasWebJumpUrlHead());
if (hasWebJumpUrlHead()) {
result = result && getWebJumpUrlHead()
.equals(other.getWebJumpUrlHead());
}
result = result && (hasHkOptionQotRight() == other.hasHkOptionQotRight());
if (hasHkOptionQotRight()) {
result = result && (getHkOptionQotRight()
== other.getHkOptionQotRight());
}
result = result && (hasHasUSOptionQotRight() == other.hasHasUSOptionQotRight());
if (hasHasUSOptionQotRight()) {
result = result && (getHasUSOptionQotRight()
== other.getHasUSOptionQotRight());
}
result = result && (hasHkFutureQotRight() == other.hasHkFutureQotRight());
if (hasHkFutureQotRight()) {
result = result && (getHkFutureQotRight()
== other.getHkFutureQotRight());
}
result = result && (hasSubQuota() == other.hasSubQuota());
if (hasSubQuota()) {
result = result && (getSubQuota()
== other.getSubQuota());
}
result = result && (hasHistoryKLQuota() == other.hasHistoryKLQuota());
if (hasHistoryKLQuota()) {
result = result && (getHistoryKLQuota()
== other.getHistoryKLQuota());
}
result = result && (hasUsFutureQotRight() == other.hasUsFutureQotRight());
if (hasUsFutureQotRight()) {
result = result && (getUsFutureQotRight()
== other.getUsFutureQotRight());
}
result = result && (hasUsOptionQotRight() == other.hasUsOptionQotRight());
if (hasUsOptionQotRight()) {
result = result && (getUsOptionQotRight()
== other.getUsOptionQotRight());
}
result = result && (hasUserAttribution() == other.hasUserAttribution());
if (hasUserAttribution()) {
result = result && (getUserAttribution()
== other.getUserAttribution());
}
result = result && (hasUpdateWhatsNew() == other.hasUpdateWhatsNew());
if (hasUpdateWhatsNew()) {
result = result && getUpdateWhatsNew()
.equals(other.getUpdateWhatsNew());
}
result = result && (hasUsIndexQotRight() == other.hasUsIndexQotRight());
if (hasUsIndexQotRight()) {
result = result && (getUsIndexQotRight()
== other.getUsIndexQotRight());
}
result = result && (hasUsOtcQotRight() == other.hasUsOtcQotRight());
if (hasUsOtcQotRight()) {
result = result && (getUsOtcQotRight()
== other.getUsOtcQotRight());
}
result = result && (hasUsCMEFutureQotRight() == other.hasUsCMEFutureQotRight());
if (hasUsCMEFutureQotRight()) {
result = result && (getUsCMEFutureQotRight()
== other.getUsCMEFutureQotRight());
}
result = result && (hasUsCBOTFutureQotRight() == other.hasUsCBOTFutureQotRight());
if (hasUsCBOTFutureQotRight()) {
result = result && (getUsCBOTFutureQotRight()
== other.getUsCBOTFutureQotRight());
}
result = result && (hasUsNYMEXFutureQotRight() == other.hasUsNYMEXFutureQotRight());
if (hasUsNYMEXFutureQotRight()) {
result = result && (getUsNYMEXFutureQotRight()
== other.getUsNYMEXFutureQotRight());
}
result = result && (hasUsCOMEXFutureQotRight() == other.hasUsCOMEXFutureQotRight());
if (hasUsCOMEXFutureQotRight()) {
result = result && (getUsCOMEXFutureQotRight()
== other.getUsCOMEXFutureQotRight());
}
result = result && (hasUsCBOEFutureQotRight() == other.hasUsCBOEFutureQotRight());
if (hasUsCBOEFutureQotRight()) {
result = result && (getUsCBOEFutureQotRight()
== other.getUsCBOEFutureQotRight());
}
result = result && (hasSgFutureQotRight() == other.hasSgFutureQotRight());
if (hasSgFutureQotRight()) {
result = result && (getSgFutureQotRight()
== other.getSgFutureQotRight());
}
result = result && (hasJpFutureQotRight() == other.hasJpFutureQotRight());
if (hasJpFutureQotRight()) {
result = result && (getJpFutureQotRight()
== other.getJpFutureQotRight());
}
result = result && (hasIsAppNNOrMM() == other.hasIsAppNNOrMM());
if (hasIsAppNNOrMM()) {
result = result && (getIsAppNNOrMM()
== other.getIsAppNNOrMM());
}
result = result && (hasShQotRight() == other.hasShQotRight());
if (hasShQotRight()) {
result = result && (getShQotRight()
== other.getShQotRight());
}
result = result && (hasSzQotRight() == other.hasSzQotRight());
if (hasSzQotRight()) {
result = result && (getSzQotRight()
== other.getSzQotRight());
}
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 (hasNickName()) {
hash = (37 * hash) + NICKNAME_FIELD_NUMBER;
hash = (53 * hash) + getNickName().hashCode();
}
if (hasAvatarUrl()) {
hash = (37 * hash) + AVATARURL_FIELD_NUMBER;
hash = (53 * hash) + getAvatarUrl().hashCode();
}
if (hasApiLevel()) {
hash = (37 * hash) + APILEVEL_FIELD_NUMBER;
hash = (53 * hash) + getApiLevel().hashCode();
}
if (hasHkQotRight()) {
hash = (37 * hash) + HKQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHkQotRight();
}
if (hasUsQotRight()) {
hash = (37 * hash) + USQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsQotRight();
}
if (hasCnQotRight()) {
hash = (37 * hash) + CNQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getCnQotRight();
}
if (hasIsNeedAgreeDisclaimer()) {
hash = (37 * hash) + ISNEEDAGREEDISCLAIMER_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsNeedAgreeDisclaimer());
}
if (hasUserID()) {
hash = (37 * hash) + USERID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUserID());
}
if (hasUpdateType()) {
hash = (37 * hash) + UPDATETYPE_FIELD_NUMBER;
hash = (53 * hash) + getUpdateType();
}
if (hasWebKey()) {
hash = (37 * hash) + WEBKEY_FIELD_NUMBER;
hash = (53 * hash) + getWebKey().hashCode();
}
if (hasWebJumpUrlHead()) {
hash = (37 * hash) + WEBJUMPURLHEAD_FIELD_NUMBER;
hash = (53 * hash) + getWebJumpUrlHead().hashCode();
}
if (hasHkOptionQotRight()) {
hash = (37 * hash) + HKOPTIONQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHkOptionQotRight();
}
if (hasHasUSOptionQotRight()) {
hash = (37 * hash) + HASUSOPTIONQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasUSOptionQotRight());
}
if (hasHkFutureQotRight()) {
hash = (37 * hash) + HKFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getHkFutureQotRight();
}
if (hasSubQuota()) {
hash = (37 * hash) + SUBQUOTA_FIELD_NUMBER;
hash = (53 * hash) + getSubQuota();
}
if (hasHistoryKLQuota()) {
hash = (37 * hash) + HISTORYKLQUOTA_FIELD_NUMBER;
hash = (53 * hash) + getHistoryKLQuota();
}
if (hasUsFutureQotRight()) {
hash = (37 * hash) + USFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsFutureQotRight();
}
if (hasUsOptionQotRight()) {
hash = (37 * hash) + USOPTIONQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsOptionQotRight();
}
if (hasUserAttribution()) {
hash = (37 * hash) + USERATTRIBUTION_FIELD_NUMBER;
hash = (53 * hash) + getUserAttribution();
}
if (hasUpdateWhatsNew()) {
hash = (37 * hash) + UPDATEWHATSNEW_FIELD_NUMBER;
hash = (53 * hash) + getUpdateWhatsNew().hashCode();
}
if (hasUsIndexQotRight()) {
hash = (37 * hash) + USINDEXQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsIndexQotRight();
}
if (hasUsOtcQotRight()) {
hash = (37 * hash) + USOTCQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsOtcQotRight();
}
if (hasUsCMEFutureQotRight()) {
hash = (37 * hash) + USCMEFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsCMEFutureQotRight();
}
if (hasUsCBOTFutureQotRight()) {
hash = (37 * hash) + USCBOTFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsCBOTFutureQotRight();
}
if (hasUsNYMEXFutureQotRight()) {
hash = (37 * hash) + USNYMEXFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsNYMEXFutureQotRight();
}
if (hasUsCOMEXFutureQotRight()) {
hash = (37 * hash) + USCOMEXFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsCOMEXFutureQotRight();
}
if (hasUsCBOEFutureQotRight()) {
hash = (37 * hash) + USCBOEFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getUsCBOEFutureQotRight();
}
if (hasSgFutureQotRight()) {
hash = (37 * hash) + SGFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getSgFutureQotRight();
}
if (hasJpFutureQotRight()) {
hash = (37 * hash) + JPFUTUREQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getJpFutureQotRight();
}
if (hasIsAppNNOrMM()) {
hash = (37 * hash) + ISAPPNNORMM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsAppNNOrMM());
}
if (hasShQotRight()) {
hash = (37 * hash) + SHQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getShQotRight();
}
if (hasSzQotRight()) {
hash = (37 * hash) + SZQOTRIGHT_FIELD_NUMBER;
hash = (53 * hash) + getSzQotRight();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.GetUserInfo.S2C parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.S2C parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.S2C parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.S2C parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.S2C parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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 GetUserInfo.S2C}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GetUserInfo.S2C)
com.moomoo.openapi.pb.GetUserInfo.S2COrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.S2C.class, com.moomoo.openapi.pb.GetUserInfo.S2C.Builder.class);
}
// Construct using com.moomoo.openapi.pb.GetUserInfo.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) {
}
}
public Builder clear() {
super.clear();
nickName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
avatarUrl_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
apiLevel_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
hkQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
usQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
cnQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
isNeedAgreeDisclaimer_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
userID_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
updateType_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
webKey_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
webJumpUrlHead_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
hkOptionQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
hasUSOptionQotRight_ = false;
bitField0_ = (bitField0_ & ~0x00001000);
hkFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
subQuota_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
historyKLQuota_ = 0;
bitField0_ = (bitField0_ & ~0x00008000);
usFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00010000);
usOptionQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00020000);
userAttribution_ = 0;
bitField0_ = (bitField0_ & ~0x00040000);
updateWhatsNew_ = "";
bitField0_ = (bitField0_ & ~0x00080000);
usIndexQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00100000);
usOtcQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00200000);
usCMEFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00400000);
usCBOTFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x00800000);
usNYMEXFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x01000000);
usCOMEXFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x02000000);
usCBOEFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x04000000);
sgFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x08000000);
jpFutureQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x10000000);
isAppNNOrMM_ = false;
bitField0_ = (bitField0_ & ~0x20000000);
shQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x40000000);
szQotRight_ = 0;
bitField0_ = (bitField0_ & ~0x80000000);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_S2C_descriptor;
}
public com.moomoo.openapi.pb.GetUserInfo.S2C getDefaultInstanceForType() {
return com.moomoo.openapi.pb.GetUserInfo.S2C.getDefaultInstance();
}
public com.moomoo.openapi.pb.GetUserInfo.S2C build() {
com.moomoo.openapi.pb.GetUserInfo.S2C result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.GetUserInfo.S2C buildPartial() {
com.moomoo.openapi.pb.GetUserInfo.S2C result = new com.moomoo.openapi.pb.GetUserInfo.S2C(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.nickName_ = nickName_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.avatarUrl_ = avatarUrl_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.apiLevel_ = apiLevel_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.hkQotRight_ = hkQotRight_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.usQotRight_ = usQotRight_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.cnQotRight_ = cnQotRight_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.isNeedAgreeDisclaimer_ = isNeedAgreeDisclaimer_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.userID_ = userID_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.updateType_ = updateType_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.webKey_ = webKey_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.webJumpUrlHead_ = webJumpUrlHead_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.hkOptionQotRight_ = hkOptionQotRight_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.hasUSOptionQotRight_ = hasUSOptionQotRight_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.hkFutureQotRight_ = hkFutureQotRight_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.subQuota_ = subQuota_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
result.historyKLQuota_ = historyKLQuota_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
result.usFutureQotRight_ = usFutureQotRight_;
if (((from_bitField0_ & 0x00020000) == 0x00020000)) {
to_bitField0_ |= 0x00020000;
}
result.usOptionQotRight_ = usOptionQotRight_;
if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
to_bitField0_ |= 0x00040000;
}
result.userAttribution_ = userAttribution_;
if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
to_bitField0_ |= 0x00080000;
}
result.updateWhatsNew_ = updateWhatsNew_;
if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x00100000;
}
result.usIndexQotRight_ = usIndexQotRight_;
if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00200000;
}
result.usOtcQotRight_ = usOtcQotRight_;
if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
to_bitField0_ |= 0x00400000;
}
result.usCMEFutureQotRight_ = usCMEFutureQotRight_;
if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
to_bitField0_ |= 0x00800000;
}
result.usCBOTFutureQotRight_ = usCBOTFutureQotRight_;
if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
to_bitField0_ |= 0x01000000;
}
result.usNYMEXFutureQotRight_ = usNYMEXFutureQotRight_;
if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
to_bitField0_ |= 0x02000000;
}
result.usCOMEXFutureQotRight_ = usCOMEXFutureQotRight_;
if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
to_bitField0_ |= 0x04000000;
}
result.usCBOEFutureQotRight_ = usCBOEFutureQotRight_;
if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
to_bitField0_ |= 0x08000000;
}
result.sgFutureQotRight_ = sgFutureQotRight_;
if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
to_bitField0_ |= 0x10000000;
}
result.jpFutureQotRight_ = jpFutureQotRight_;
if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
to_bitField0_ |= 0x20000000;
}
result.isAppNNOrMM_ = isAppNNOrMM_;
if (((from_bitField0_ & 0x40000000) == 0x40000000)) {
to_bitField0_ |= 0x40000000;
}
result.shQotRight_ = shQotRight_;
if (((from_bitField0_ & 0x80000000) == 0x80000000)) {
to_bitField0_ |= 0x80000000;
}
result.szQotRight_ = szQotRight_;
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.GetUserInfo.S2C) {
return mergeFrom((com.moomoo.openapi.pb.GetUserInfo.S2C)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.GetUserInfo.S2C other) {
if (other == com.moomoo.openapi.pb.GetUserInfo.S2C.getDefaultInstance()) return this;
if (other.hasNickName()) {
bitField0_ |= 0x00000001;
nickName_ = other.nickName_;
onChanged();
}
if (other.hasAvatarUrl()) {
bitField0_ |= 0x00000002;
avatarUrl_ = other.avatarUrl_;
onChanged();
}
if (other.hasApiLevel()) {
bitField0_ |= 0x00000004;
apiLevel_ = other.apiLevel_;
onChanged();
}
if (other.hasHkQotRight()) {
setHkQotRight(other.getHkQotRight());
}
if (other.hasUsQotRight()) {
setUsQotRight(other.getUsQotRight());
}
if (other.hasCnQotRight()) {
setCnQotRight(other.getCnQotRight());
}
if (other.hasIsNeedAgreeDisclaimer()) {
setIsNeedAgreeDisclaimer(other.getIsNeedAgreeDisclaimer());
}
if (other.hasUserID()) {
setUserID(other.getUserID());
}
if (other.hasUpdateType()) {
setUpdateType(other.getUpdateType());
}
if (other.hasWebKey()) {
bitField0_ |= 0x00000200;
webKey_ = other.webKey_;
onChanged();
}
if (other.hasWebJumpUrlHead()) {
bitField0_ |= 0x00000400;
webJumpUrlHead_ = other.webJumpUrlHead_;
onChanged();
}
if (other.hasHkOptionQotRight()) {
setHkOptionQotRight(other.getHkOptionQotRight());
}
if (other.hasHasUSOptionQotRight()) {
setHasUSOptionQotRight(other.getHasUSOptionQotRight());
}
if (other.hasHkFutureQotRight()) {
setHkFutureQotRight(other.getHkFutureQotRight());
}
if (other.hasSubQuota()) {
setSubQuota(other.getSubQuota());
}
if (other.hasHistoryKLQuota()) {
setHistoryKLQuota(other.getHistoryKLQuota());
}
if (other.hasUsFutureQotRight()) {
setUsFutureQotRight(other.getUsFutureQotRight());
}
if (other.hasUsOptionQotRight()) {
setUsOptionQotRight(other.getUsOptionQotRight());
}
if (other.hasUserAttribution()) {
setUserAttribution(other.getUserAttribution());
}
if (other.hasUpdateWhatsNew()) {
bitField0_ |= 0x00080000;
updateWhatsNew_ = other.updateWhatsNew_;
onChanged();
}
if (other.hasUsIndexQotRight()) {
setUsIndexQotRight(other.getUsIndexQotRight());
}
if (other.hasUsOtcQotRight()) {
setUsOtcQotRight(other.getUsOtcQotRight());
}
if (other.hasUsCMEFutureQotRight()) {
setUsCMEFutureQotRight(other.getUsCMEFutureQotRight());
}
if (other.hasUsCBOTFutureQotRight()) {
setUsCBOTFutureQotRight(other.getUsCBOTFutureQotRight());
}
if (other.hasUsNYMEXFutureQotRight()) {
setUsNYMEXFutureQotRight(other.getUsNYMEXFutureQotRight());
}
if (other.hasUsCOMEXFutureQotRight()) {
setUsCOMEXFutureQotRight(other.getUsCOMEXFutureQotRight());
}
if (other.hasUsCBOEFutureQotRight()) {
setUsCBOEFutureQotRight(other.getUsCBOEFutureQotRight());
}
if (other.hasSgFutureQotRight()) {
setSgFutureQotRight(other.getSgFutureQotRight());
}
if (other.hasJpFutureQotRight()) {
setJpFutureQotRight(other.getJpFutureQotRight());
}
if (other.hasIsAppNNOrMM()) {
setIsAppNNOrMM(other.getIsAppNNOrMM());
}
if (other.hasShQotRight()) {
setShQotRight(other.getShQotRight());
}
if (other.hasSzQotRight()) {
setSzQotRight(other.getSzQotRight());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.GetUserInfo.S2C parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.GetUserInfo.S2C) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object nickName_ = "";
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public boolean hasNickName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public java.lang.String getNickName() {
java.lang.Object ref = nickName_;
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()) {
nickName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public com.google.protobuf.ByteString
getNickNameBytes() {
java.lang.Object ref = nickName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nickName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public Builder setNickName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
nickName_ = value;
onChanged();
return this;
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public Builder clearNickName() {
bitField0_ = (bitField0_ & ~0x00000001);
nickName_ = getDefaultInstance().getNickName();
onChanged();
return this;
}
/**
*
*用户昵称
*
*
* optional string nickName = 1;
*/
public Builder setNickNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
nickName_ = value;
onChanged();
return this;
}
private java.lang.Object avatarUrl_ = "";
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public boolean hasAvatarUrl() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public java.lang.String getAvatarUrl() {
java.lang.Object ref = avatarUrl_;
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()) {
avatarUrl_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public com.google.protobuf.ByteString
getAvatarUrlBytes() {
java.lang.Object ref = avatarUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
avatarUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public Builder setAvatarUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
avatarUrl_ = value;
onChanged();
return this;
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public Builder clearAvatarUrl() {
bitField0_ = (bitField0_ & ~0x00000002);
avatarUrl_ = getDefaultInstance().getAvatarUrl();
onChanged();
return this;
}
/**
*
*用户头像url
*
*
* optional string avatarUrl = 2;
*/
public Builder setAvatarUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
avatarUrl_ = value;
onChanged();
return this;
}
private java.lang.Object apiLevel_ = "";
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public boolean hasApiLevel() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public java.lang.String getApiLevel() {
java.lang.Object ref = apiLevel_;
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()) {
apiLevel_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public com.google.protobuf.ByteString
getApiLevelBytes() {
java.lang.Object ref = apiLevel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
apiLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public Builder setApiLevel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
apiLevel_ = value;
onChanged();
return this;
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public Builder clearApiLevel() {
bitField0_ = (bitField0_ & ~0x00000004);
apiLevel_ = getDefaultInstance().getApiLevel();
onChanged();
return this;
}
/**
*
*api用户等级描述, 已在2.10版本之后废弃
*
*
* optional string apiLevel = 3;
*/
public Builder setApiLevelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
apiLevel_ = value;
onChanged();
return this;
}
private int hkQotRight_ ;
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
public boolean hasHkQotRight() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
public int getHkQotRight() {
return hkQotRight_;
}
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
public Builder setHkQotRight(int value) {
bitField0_ |= 0x00000008;
hkQotRight_ = value;
onChanged();
return this;
}
/**
*
*港股行情权限, QotRight
*
*
* optional int32 hkQotRight = 4;
*/
public Builder clearHkQotRight() {
bitField0_ = (bitField0_ & ~0x00000008);
hkQotRight_ = 0;
onChanged();
return this;
}
private int usQotRight_ ;
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
public boolean hasUsQotRight() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
public int getUsQotRight() {
return usQotRight_;
}
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
public Builder setUsQotRight(int value) {
bitField0_ |= 0x00000010;
usQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股行情权限, QotRight
*
*
* optional int32 usQotRight = 5;
*/
public Builder clearUsQotRight() {
bitField0_ = (bitField0_ & ~0x00000010);
usQotRight_ = 0;
onChanged();
return this;
}
private int cnQotRight_ ;
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
public boolean hasCnQotRight() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
public int getCnQotRight() {
return cnQotRight_;
}
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
public Builder setCnQotRight(int value) {
bitField0_ |= 0x00000020;
cnQotRight_ = value;
onChanged();
return this;
}
/**
*
*A股行情权限, QotRight // 废弃,使用shQotRight和szQotRight
*
*
* optional int32 cnQotRight = 6;
*/
public Builder clearCnQotRight() {
bitField0_ = (bitField0_ & ~0x00000020);
cnQotRight_ = 0;
onChanged();
return this;
}
private boolean isNeedAgreeDisclaimer_ ;
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
public boolean hasIsNeedAgreeDisclaimer() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
public boolean getIsNeedAgreeDisclaimer() {
return isNeedAgreeDisclaimer_;
}
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
public Builder setIsNeedAgreeDisclaimer(boolean value) {
bitField0_ |= 0x00000040;
isNeedAgreeDisclaimer_ = value;
onChanged();
return this;
}
/**
*
*已开户用户需要同意免责声明,未开户或已同意的用户返回false
*
*
* optional bool isNeedAgreeDisclaimer = 7;
*/
public Builder clearIsNeedAgreeDisclaimer() {
bitField0_ = (bitField0_ & ~0x00000040);
isNeedAgreeDisclaimer_ = false;
onChanged();
return this;
}
private long userID_ ;
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
public boolean hasUserID() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
public long getUserID() {
return userID_;
}
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
public Builder setUserID(long value) {
bitField0_ |= 0x00000080;
userID_ = value;
onChanged();
return this;
}
/**
*
*用户牛牛号
*
*
* optional int64 userID = 8;
*/
public Builder clearUserID() {
bitField0_ = (bitField0_ & ~0x00000080);
userID_ = 0L;
onChanged();
return this;
}
private int updateType_ ;
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
public boolean hasUpdateType() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
public int getUpdateType() {
return updateType_;
}
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
public Builder setUpdateType(int value) {
bitField0_ |= 0x00000100;
updateType_ = value;
onChanged();
return this;
}
/**
*
*升级类型,UpdateType
*
*
* optional int32 updateType = 9;
*/
public Builder clearUpdateType() {
bitField0_ = (bitField0_ & ~0x00000100);
updateType_ = 0;
onChanged();
return this;
}
private java.lang.Object webKey_ = "";
/**
* optional string webKey = 10;
*/
public boolean hasWebKey() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional string webKey = 10;
*/
public java.lang.String getWebKey() {
java.lang.Object ref = webKey_;
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()) {
webKey_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string webKey = 10;
*/
public com.google.protobuf.ByteString
getWebKeyBytes() {
java.lang.Object ref = webKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
webKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string webKey = 10;
*/
public Builder setWebKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
webKey_ = value;
onChanged();
return this;
}
/**
* optional string webKey = 10;
*/
public Builder clearWebKey() {
bitField0_ = (bitField0_ & ~0x00000200);
webKey_ = getDefaultInstance().getWebKey();
onChanged();
return this;
}
/**
* optional string webKey = 10;
*/
public Builder setWebKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
webKey_ = value;
onChanged();
return this;
}
private java.lang.Object webJumpUrlHead_ = "";
/**
* optional string webJumpUrlHead = 18;
*/
public boolean hasWebJumpUrlHead() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string webJumpUrlHead = 18;
*/
public java.lang.String getWebJumpUrlHead() {
java.lang.Object ref = webJumpUrlHead_;
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()) {
webJumpUrlHead_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string webJumpUrlHead = 18;
*/
public com.google.protobuf.ByteString
getWebJumpUrlHeadBytes() {
java.lang.Object ref = webJumpUrlHead_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
webJumpUrlHead_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string webJumpUrlHead = 18;
*/
public Builder setWebJumpUrlHead(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
webJumpUrlHead_ = value;
onChanged();
return this;
}
/**
* optional string webJumpUrlHead = 18;
*/
public Builder clearWebJumpUrlHead() {
bitField0_ = (bitField0_ & ~0x00000400);
webJumpUrlHead_ = getDefaultInstance().getWebJumpUrlHead();
onChanged();
return this;
}
/**
* optional string webJumpUrlHead = 18;
*/
public Builder setWebJumpUrlHeadBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
webJumpUrlHead_ = value;
onChanged();
return this;
}
private int hkOptionQotRight_ ;
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
public boolean hasHkOptionQotRight() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
public int getHkOptionQotRight() {
return hkOptionQotRight_;
}
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
public Builder setHkOptionQotRight(int value) {
bitField0_ |= 0x00000800;
hkOptionQotRight_ = value;
onChanged();
return this;
}
/**
*
*港股期权行情权限, Qot_Common.QotRight
*
*
* optional int32 hkOptionQotRight = 11;
*/
public Builder clearHkOptionQotRight() {
bitField0_ = (bitField0_ & ~0x00000800);
hkOptionQotRight_ = 0;
onChanged();
return this;
}
private boolean hasUSOptionQotRight_ ;
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
public boolean hasHasUSOptionQotRight() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
public boolean getHasUSOptionQotRight() {
return hasUSOptionQotRight_;
}
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
public Builder setHasUSOptionQotRight(boolean value) {
bitField0_ |= 0x00001000;
hasUSOptionQotRight_ = value;
onChanged();
return this;
}
/**
*
*是否有美股期权行情权限
*
*
* optional bool hasUSOptionQotRight = 12;
*/
public Builder clearHasUSOptionQotRight() {
bitField0_ = (bitField0_ & ~0x00001000);
hasUSOptionQotRight_ = false;
onChanged();
return this;
}
private int hkFutureQotRight_ ;
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
public boolean hasHkFutureQotRight() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
public int getHkFutureQotRight() {
return hkFutureQotRight_;
}
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
public Builder setHkFutureQotRight(int value) {
bitField0_ |= 0x00002000;
hkFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*港股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 hkFutureQotRight = 13;
*/
public Builder clearHkFutureQotRight() {
bitField0_ = (bitField0_ & ~0x00002000);
hkFutureQotRight_ = 0;
onChanged();
return this;
}
private int subQuota_ ;
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
public boolean hasSubQuota() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
public int getSubQuota() {
return subQuota_;
}
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
public Builder setSubQuota(int value) {
bitField0_ |= 0x00004000;
subQuota_ = value;
onChanged();
return this;
}
/**
*
*订阅额度
*
*
* optional int32 subQuota = 14;
*/
public Builder clearSubQuota() {
bitField0_ = (bitField0_ & ~0x00004000);
subQuota_ = 0;
onChanged();
return this;
}
private int historyKLQuota_ ;
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
public boolean hasHistoryKLQuota() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
public int getHistoryKLQuota() {
return historyKLQuota_;
}
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
public Builder setHistoryKLQuota(int value) {
bitField0_ |= 0x00008000;
historyKLQuota_ = value;
onChanged();
return this;
}
/**
*
*历史K线额度
*
*
* optional int32 historyKLQuota = 15;
*/
public Builder clearHistoryKLQuota() {
bitField0_ = (bitField0_ & ~0x00008000);
historyKLQuota_ = 0;
onChanged();
return this;
}
private int usFutureQotRight_ ;
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
public boolean hasUsFutureQotRight() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
public int getUsFutureQotRight() {
return usFutureQotRight_;
}
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
public Builder setUsFutureQotRight(int value) {
bitField0_ |= 0x00010000;
usFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股期货行情权限, Qot_Common.QotRight(已废弃)
*
*
* optional int32 usFutureQotRight = 16;
*/
public Builder clearUsFutureQotRight() {
bitField0_ = (bitField0_ & ~0x00010000);
usFutureQotRight_ = 0;
onChanged();
return this;
}
private int usOptionQotRight_ ;
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
public boolean hasUsOptionQotRight() {
return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
public int getUsOptionQotRight() {
return usOptionQotRight_;
}
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
public Builder setUsOptionQotRight(int value) {
bitField0_ |= 0x00020000;
usOptionQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usOptionQotRight = 17;
*/
public Builder clearUsOptionQotRight() {
bitField0_ = (bitField0_ & ~0x00020000);
usOptionQotRight_ = 0;
onChanged();
return this;
}
private int userAttribution_ ;
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
public boolean hasUserAttribution() {
return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
public int getUserAttribution() {
return userAttribution_;
}
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
public Builder setUserAttribution(int value) {
bitField0_ |= 0x00040000;
userAttribution_ = value;
onChanged();
return this;
}
/**
*
*用户注册归属地, Common.UserAttribution
*
*
* optional int32 userAttribution = 19;
*/
public Builder clearUserAttribution() {
bitField0_ = (bitField0_ & ~0x00040000);
userAttribution_ = 0;
onChanged();
return this;
}
private java.lang.Object updateWhatsNew_ = "";
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public boolean hasUpdateWhatsNew() {
return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public java.lang.String getUpdateWhatsNew() {
java.lang.Object ref = updateWhatsNew_;
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()) {
updateWhatsNew_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public com.google.protobuf.ByteString
getUpdateWhatsNewBytes() {
java.lang.Object ref = updateWhatsNew_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
updateWhatsNew_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public Builder setUpdateWhatsNew(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
updateWhatsNew_ = value;
onChanged();
return this;
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public Builder clearUpdateWhatsNew() {
bitField0_ = (bitField0_ & ~0x00080000);
updateWhatsNew_ = getDefaultInstance().getUpdateWhatsNew();
onChanged();
return this;
}
/**
*
*升级提示
*
*
* optional string updateWhatsNew = 20;
*/
public Builder setUpdateWhatsNewBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
updateWhatsNew_ = value;
onChanged();
return this;
}
private int usIndexQotRight_ ;
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
public boolean hasUsIndexQotRight() {
return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
public int getUsIndexQotRight() {
return usIndexQotRight_;
}
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
public Builder setUsIndexQotRight(int value) {
bitField0_ |= 0x00100000;
usIndexQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股指数行情权限, Qot_Common.QotRight
*
*
* optional int32 usIndexQotRight = 21;
*/
public Builder clearUsIndexQotRight() {
bitField0_ = (bitField0_ & ~0x00100000);
usIndexQotRight_ = 0;
onChanged();
return this;
}
private int usOtcQotRight_ ;
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
public boolean hasUsOtcQotRight() {
return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
public int getUsOtcQotRight() {
return usOtcQotRight_;
}
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
public Builder setUsOtcQotRight(int value) {
bitField0_ |= 0x00200000;
usOtcQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股OTC市场行情权限, Qot_Common.QotRight
*
*
* optional int32 usOtcQotRight = 22;
*/
public Builder clearUsOtcQotRight() {
bitField0_ = (bitField0_ & ~0x00200000);
usOtcQotRight_ = 0;
onChanged();
return this;
}
private int usCMEFutureQotRight_ ;
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
public boolean hasUsCMEFutureQotRight() {
return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
public int getUsCMEFutureQotRight() {
return usCMEFutureQotRight_;
}
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
public Builder setUsCMEFutureQotRight(int value) {
bitField0_ |= 0x00400000;
usCMEFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股CME期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCMEFutureQotRight = 23;
*/
public Builder clearUsCMEFutureQotRight() {
bitField0_ = (bitField0_ & ~0x00400000);
usCMEFutureQotRight_ = 0;
onChanged();
return this;
}
private int usCBOTFutureQotRight_ ;
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
public boolean hasUsCBOTFutureQotRight() {
return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
public int getUsCBOTFutureQotRight() {
return usCBOTFutureQotRight_;
}
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
public Builder setUsCBOTFutureQotRight(int value) {
bitField0_ |= 0x00800000;
usCBOTFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股CBOT期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOTFutureQotRight = 24;
*/
public Builder clearUsCBOTFutureQotRight() {
bitField0_ = (bitField0_ & ~0x00800000);
usCBOTFutureQotRight_ = 0;
onChanged();
return this;
}
private int usNYMEXFutureQotRight_ ;
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
public boolean hasUsNYMEXFutureQotRight() {
return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
public int getUsNYMEXFutureQotRight() {
return usNYMEXFutureQotRight_;
}
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
public Builder setUsNYMEXFutureQotRight(int value) {
bitField0_ |= 0x01000000;
usNYMEXFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股NYMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usNYMEXFutureQotRight = 25;
*/
public Builder clearUsNYMEXFutureQotRight() {
bitField0_ = (bitField0_ & ~0x01000000);
usNYMEXFutureQotRight_ = 0;
onChanged();
return this;
}
private int usCOMEXFutureQotRight_ ;
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
public boolean hasUsCOMEXFutureQotRight() {
return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
public int getUsCOMEXFutureQotRight() {
return usCOMEXFutureQotRight_;
}
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
public Builder setUsCOMEXFutureQotRight(int value) {
bitField0_ |= 0x02000000;
usCOMEXFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股COMEX期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCOMEXFutureQotRight = 26;
*/
public Builder clearUsCOMEXFutureQotRight() {
bitField0_ = (bitField0_ & ~0x02000000);
usCOMEXFutureQotRight_ = 0;
onChanged();
return this;
}
private int usCBOEFutureQotRight_ ;
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
public boolean hasUsCBOEFutureQotRight() {
return ((bitField0_ & 0x04000000) == 0x04000000);
}
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
public int getUsCBOEFutureQotRight() {
return usCBOEFutureQotRight_;
}
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
public Builder setUsCBOEFutureQotRight(int value) {
bitField0_ |= 0x04000000;
usCBOEFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*美股CBOE期货行情权限, Qot_Common.QotRight
*
*
* optional int32 usCBOEFutureQotRight = 27;
*/
public Builder clearUsCBOEFutureQotRight() {
bitField0_ = (bitField0_ & ~0x04000000);
usCBOEFutureQotRight_ = 0;
onChanged();
return this;
}
private int sgFutureQotRight_ ;
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
public boolean hasSgFutureQotRight() {
return ((bitField0_ & 0x08000000) == 0x08000000);
}
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
public int getSgFutureQotRight() {
return sgFutureQotRight_;
}
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
public Builder setSgFutureQotRight(int value) {
bitField0_ |= 0x08000000;
sgFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*新加坡市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 sgFutureQotRight = 28;
*/
public Builder clearSgFutureQotRight() {
bitField0_ = (bitField0_ & ~0x08000000);
sgFutureQotRight_ = 0;
onChanged();
return this;
}
private int jpFutureQotRight_ ;
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
public boolean hasJpFutureQotRight() {
return ((bitField0_ & 0x10000000) == 0x10000000);
}
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
public int getJpFutureQotRight() {
return jpFutureQotRight_;
}
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
public Builder setJpFutureQotRight(int value) {
bitField0_ |= 0x10000000;
jpFutureQotRight_ = value;
onChanged();
return this;
}
/**
*
*日本市场期货行情权限, Qot_Common.QotRight
*
*
* optional int32 jpFutureQotRight = 29;
*/
public Builder clearJpFutureQotRight() {
bitField0_ = (bitField0_ & ~0x10000000);
jpFutureQotRight_ = 0;
onChanged();
return this;
}
private boolean isAppNNOrMM_ ;
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
public boolean hasIsAppNNOrMM() {
return ((bitField0_ & 0x20000000) == 0x20000000);
}
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
public boolean getIsAppNNOrMM() {
return isAppNNOrMM_;
}
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
public Builder setIsAppNNOrMM(boolean value) {
bitField0_ |= 0x20000000;
isAppNNOrMM_ = value;
onChanged();
return this;
}
/**
*
*true:NN false:MM
*
*
* optional bool isAppNNOrMM = 30;
*/
public Builder clearIsAppNNOrMM() {
bitField0_ = (bitField0_ & ~0x20000000);
isAppNNOrMM_ = false;
onChanged();
return this;
}
private int shQotRight_ ;
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
public boolean hasShQotRight() {
return ((bitField0_ & 0x40000000) == 0x40000000);
}
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
public int getShQotRight() {
return shQotRight_;
}
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
public Builder setShQotRight(int value) {
bitField0_ |= 0x40000000;
shQotRight_ = value;
onChanged();
return this;
}
/**
*
*上海市场行情权限, Qot_Common.QotRight
*
*
* optional int32 shQotRight = 31;
*/
public Builder clearShQotRight() {
bitField0_ = (bitField0_ & ~0x40000000);
shQotRight_ = 0;
onChanged();
return this;
}
private int szQotRight_ ;
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
public boolean hasSzQotRight() {
return ((bitField0_ & 0x80000000) == 0x80000000);
}
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
public int getSzQotRight() {
return szQotRight_;
}
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
public Builder setSzQotRight(int value) {
bitField0_ |= 0x80000000;
szQotRight_ = value;
onChanged();
return this;
}
/**
*
*深圳市场行情权限, Qot_Common.QotRight
*
*
* optional int32 szQotRight = 32;
*/
public Builder clearSzQotRight() {
bitField0_ = (bitField0_ & ~0x80000000);
szQotRight_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:GetUserInfo.S2C)
}
// @@protoc_insertion_point(class_scope:GetUserInfo.S2C)
private static final com.moomoo.openapi.pb.GetUserInfo.S2C DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetUserInfo.S2C();
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.S2C getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetUserInfo.Request)
com.google.protobuf.MessageOrBuilder {
/**
* required .GetUserInfo.C2S c2s = 1;
*/
boolean hasC2S();
/**
* required .GetUserInfo.C2S c2s = 1;
*/
com.moomoo.openapi.pb.GetUserInfo.C2S getC2S();
/**
* required .GetUserInfo.C2S c2s = 1;
*/
com.moomoo.openapi.pb.GetUserInfo.C2SOrBuilder getC2SOrBuilder();
}
/**
* Protobuf type {@code GetUserInfo.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetUserInfo.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.GetUserInfo.C2S.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = c2S_.toBuilder();
}
c2S_ = input.readMessage(com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.internal_static_GetUserInfo_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.Request.class, com.moomoo.openapi.pb.GetUserInfo.Request.Builder.class);
}
private int bitField0_;
public static final int C2S_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.GetUserInfo.C2S c2S_;
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.GetUserInfo.C2S getC2S() {
return c2S_ == null ? com.moomoo.openapi.pb.GetUserInfo.C2S.getDefaultInstance() : c2S_;
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.GetUserInfo.C2SOrBuilder getC2SOrBuilder() {
return c2S_ == null ? com.moomoo.openapi.pb.GetUserInfo.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;
}
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.GetUserInfo.Request)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.GetUserInfo.Request other = (com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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 GetUserInfo.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GetUserInfo.Request)
com.moomoo.openapi.pb.GetUserInfo.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.Request.class, com.moomoo.openapi.pb.GetUserInfo.Request.Builder.class);
}
// Construct using com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.internal_static_GetUserInfo_Request_descriptor;
}
public com.moomoo.openapi.pb.GetUserInfo.Request getDefaultInstanceForType() {
return com.moomoo.openapi.pb.GetUserInfo.Request.getDefaultInstance();
}
public com.moomoo.openapi.pb.GetUserInfo.Request build() {
com.moomoo.openapi.pb.GetUserInfo.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.GetUserInfo.Request buildPartial() {
com.moomoo.openapi.pb.GetUserInfo.Request result = new com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request) {
return mergeFrom((com.moomoo.openapi.pb.GetUserInfo.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.GetUserInfo.Request other) {
if (other == com.moomoo.openapi.pb.GetUserInfo.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;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.GetUserInfo.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.GetUserInfo.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.GetUserInfo.C2S c2S_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.GetUserInfo.C2S, com.moomoo.openapi.pb.GetUserInfo.C2S.Builder, com.moomoo.openapi.pb.GetUserInfo.C2SOrBuilder> c2SBuilder_;
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.GetUserInfo.C2S getC2S() {
if (c2SBuilder_ == null) {
return c2S_ == null ? com.moomoo.openapi.pb.GetUserInfo.C2S.getDefaultInstance() : c2S_;
} else {
return c2SBuilder_.getMessage();
}
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public Builder setC2S(com.moomoo.openapi.pb.GetUserInfo.C2S value) {
if (c2SBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
c2S_ = value;
onChanged();
} else {
c2SBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public Builder setC2S(
com.moomoo.openapi.pb.GetUserInfo.C2S.Builder builderForValue) {
if (c2SBuilder_ == null) {
c2S_ = builderForValue.build();
onChanged();
} else {
c2SBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public Builder mergeC2S(com.moomoo.openapi.pb.GetUserInfo.C2S value) {
if (c2SBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
c2S_ != null &&
c2S_ != com.moomoo.openapi.pb.GetUserInfo.C2S.getDefaultInstance()) {
c2S_ =
com.moomoo.openapi.pb.GetUserInfo.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial();
} else {
c2S_ = value;
}
onChanged();
} else {
c2SBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public Builder clearC2S() {
if (c2SBuilder_ == null) {
c2S_ = null;
onChanged();
} else {
c2SBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.GetUserInfo.C2S.Builder getC2SBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getC2SFieldBuilder().getBuilder();
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.GetUserInfo.C2SOrBuilder getC2SOrBuilder() {
if (c2SBuilder_ != null) {
return c2SBuilder_.getMessageOrBuilder();
} else {
return c2S_ == null ?
com.moomoo.openapi.pb.GetUserInfo.C2S.getDefaultInstance() : c2S_;
}
}
/**
* required .GetUserInfo.C2S c2s = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.GetUserInfo.C2S, com.moomoo.openapi.pb.GetUserInfo.C2S.Builder, com.moomoo.openapi.pb.GetUserInfo.C2SOrBuilder>
getC2SFieldBuilder() {
if (c2SBuilder_ == null) {
c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.GetUserInfo.C2S, com.moomoo.openapi.pb.GetUserInfo.C2S.Builder, com.moomoo.openapi.pb.GetUserInfo.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:GetUserInfo.Request)
}
// @@protoc_insertion_point(class_scope:GetUserInfo.Request)
private static final com.moomoo.openapi.pb.GetUserInfo.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetUserInfo.Request();
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:GetUserInfo.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
*返回结果,参见Common.RetType的枚举定义
*
*
* required int32 retType = 1 [default = -400];
*/
boolean hasRetType();
/**
*
*返回结果,参见Common.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();
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
boolean hasErrCode();
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
int getErrCode();
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
boolean hasS2C();
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
com.moomoo.openapi.pb.GetUserInfo.S2C getS2C();
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
com.moomoo.openapi.pb.GetUserInfo.S2COrBuilder getS2COrBuilder();
}
/**
* Protobuf type {@code GetUserInfo.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GetUserInfo.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.GetUserInfo.S2C.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = s2C_.toBuilder();
}
s2C_ = input.readMessage(com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.internal_static_GetUserInfo_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.Response.class, com.moomoo.openapi.pb.GetUserInfo.Response.Builder.class);
}
private int bitField0_;
public static final int RETTYPE_FIELD_NUMBER = 1;
private int retType_;
/**
*
*返回结果,参见Common.RetType的枚举定义
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*返回结果,参见Common.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_;
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
public static final int S2C_FIELD_NUMBER = 4;
private com.moomoo.openapi.pb.GetUserInfo.S2C s2C_;
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.GetUserInfo.S2C getS2C() {
return s2C_ == null ? com.moomoo.openapi.pb.GetUserInfo.S2C.getDefaultInstance() : s2C_;
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.GetUserInfo.S2COrBuilder getS2COrBuilder() {
return s2C_ == null ? com.moomoo.openapi.pb.GetUserInfo.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;
}
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.GetUserInfo.Response)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.GetUserInfo.Response other = (com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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.GetUserInfo.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 GetUserInfo.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GetUserInfo.Response)
com.moomoo.openapi.pb.GetUserInfo.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.GetUserInfo.internal_static_GetUserInfo_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.GetUserInfo.Response.class, com.moomoo.openapi.pb.GetUserInfo.Response.Builder.class);
}
// Construct using com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.internal_static_GetUserInfo_Response_descriptor;
}
public com.moomoo.openapi.pb.GetUserInfo.Response getDefaultInstanceForType() {
return com.moomoo.openapi.pb.GetUserInfo.Response.getDefaultInstance();
}
public com.moomoo.openapi.pb.GetUserInfo.Response build() {
com.moomoo.openapi.pb.GetUserInfo.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.GetUserInfo.Response buildPartial() {
com.moomoo.openapi.pb.GetUserInfo.Response result = new com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response) {
return mergeFrom((com.moomoo.openapi.pb.GetUserInfo.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.GetUserInfo.Response other) {
if (other == com.moomoo.openapi.pb.GetUserInfo.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;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.GetUserInfo.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.GetUserInfo.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int retType_ = -400;
/**
*
*返回结果,参见Common.RetType的枚举定义
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*返回结果,参见Common.RetType的枚举定义
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
/**
*
*返回结果,参见Common.RetType的枚举定义
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder setRetType(int value) {
bitField0_ |= 0x00000001;
retType_ = value;
onChanged();
return this;
}
/**
*
*返回结果,参见Common.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_ ;
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
public Builder setErrCode(int value) {
bitField0_ |= 0x00000004;
errCode_ = value;
onChanged();
return this;
}
/**
*
*错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
*
*
* optional int32 errCode = 3;
*/
public Builder clearErrCode() {
bitField0_ = (bitField0_ & ~0x00000004);
errCode_ = 0;
onChanged();
return this;
}
private com.moomoo.openapi.pb.GetUserInfo.S2C s2C_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.GetUserInfo.S2C, com.moomoo.openapi.pb.GetUserInfo.S2C.Builder, com.moomoo.openapi.pb.GetUserInfo.S2COrBuilder> s2CBuilder_;
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.GetUserInfo.S2C getS2C() {
if (s2CBuilder_ == null) {
return s2C_ == null ? com.moomoo.openapi.pb.GetUserInfo.S2C.getDefaultInstance() : s2C_;
} else {
return s2CBuilder_.getMessage();
}
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public Builder setS2C(com.moomoo.openapi.pb.GetUserInfo.S2C value) {
if (s2CBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
s2C_ = value;
onChanged();
} else {
s2CBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public Builder setS2C(
com.moomoo.openapi.pb.GetUserInfo.S2C.Builder builderForValue) {
if (s2CBuilder_ == null) {
s2C_ = builderForValue.build();
onChanged();
} else {
s2CBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public Builder mergeS2C(com.moomoo.openapi.pb.GetUserInfo.S2C value) {
if (s2CBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
s2C_ != null &&
s2C_ != com.moomoo.openapi.pb.GetUserInfo.S2C.getDefaultInstance()) {
s2C_ =
com.moomoo.openapi.pb.GetUserInfo.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial();
} else {
s2C_ = value;
}
onChanged();
} else {
s2CBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public Builder clearS2C() {
if (s2CBuilder_ == null) {
s2C_ = null;
onChanged();
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.GetUserInfo.S2C.Builder getS2CBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getS2CFieldBuilder().getBuilder();
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.GetUserInfo.S2COrBuilder getS2COrBuilder() {
if (s2CBuilder_ != null) {
return s2CBuilder_.getMessageOrBuilder();
} else {
return s2C_ == null ?
com.moomoo.openapi.pb.GetUserInfo.S2C.getDefaultInstance() : s2C_;
}
}
/**
* optional .GetUserInfo.S2C s2c = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.GetUserInfo.S2C, com.moomoo.openapi.pb.GetUserInfo.S2C.Builder, com.moomoo.openapi.pb.GetUserInfo.S2COrBuilder>
getS2CFieldBuilder() {
if (s2CBuilder_ == null) {
s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.GetUserInfo.S2C, com.moomoo.openapi.pb.GetUserInfo.S2C.Builder, com.moomoo.openapi.pb.GetUserInfo.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:GetUserInfo.Response)
}
// @@protoc_insertion_point(class_scope:GetUserInfo.Response)
private static final com.moomoo.openapi.pb.GetUserInfo.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.GetUserInfo.Response();
}
public static com.moomoo.openapi.pb.GetUserInfo.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.GetUserInfo.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetUserInfo_C2S_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetUserInfo_C2S_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetUserInfo_S2C_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetUserInfo_S2C_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetUserInfo_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetUserInfo_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GetUserInfo_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GetUserInfo_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\021GetUserInfo.proto\022\013GetUserInfo\032\014Common" +
".proto\"\023\n\003C2S\022\014\n\004flag\030\002 \001(\005\"\373\005\n\003S2C\022\020\n\010n" +
"ickName\030\001 \001(\t\022\021\n\tavatarUrl\030\002 \001(\t\022\020\n\010apiL" +
"evel\030\003 \001(\t\022\022\n\nhkQotRight\030\004 \001(\005\022\022\n\nusQotR" +
"ight\030\005 \001(\005\022\022\n\ncnQotRight\030\006 \001(\005\022\035\n\025isNeed" +
"AgreeDisclaimer\030\007 \001(\010\022\016\n\006userID\030\010 \001(\003\022\022\n" +
"\nupdateType\030\t \001(\005\022\016\n\006webKey\030\n \001(\t\022\026\n\016web" +
"JumpUrlHead\030\022 \001(\t\022\030\n\020hkOptionQotRight\030\013 " +
"\001(\005\022\033\n\023hasUSOptionQotRight\030\014 \001(\010\022\030\n\020hkFu" +
"tureQotRight\030\r \001(\005\022\020\n\010subQuota\030\016 \001(\005\022\026\n\016" +
"historyKLQuota\030\017 \001(\005\022\030\n\020usFutureQotRight" +
"\030\020 \001(\005\022\030\n\020usOptionQotRight\030\021 \001(\005\022\027\n\017user" +
"Attribution\030\023 \001(\005\022\026\n\016updateWhatsNew\030\024 \001(" +
"\t\022\027\n\017usIndexQotRight\030\025 \001(\005\022\025\n\rusOtcQotRi" +
"ght\030\026 \001(\005\022\033\n\023usCMEFutureQotRight\030\027 \001(\005\022\034" +
"\n\024usCBOTFutureQotRight\030\030 \001(\005\022\035\n\025usNYMEXF" +
"utureQotRight\030\031 \001(\005\022\035\n\025usCOMEXFutureQotR" +
"ight\030\032 \001(\005\022\034\n\024usCBOEFutureQotRight\030\033 \001(\005" +
"\022\030\n\020sgFutureQotRight\030\034 \001(\005\022\030\n\020jpFutureQo" +
"tRight\030\035 \001(\005\022\023\n\013isAppNNOrMM\030\036 \001(\010\022\022\n\nshQ" +
"otRight\030\037 \001(\005\022\022\n\nszQotRight\030 \001(\005\"(\n\007Req" +
"uest\022\035\n\003c2s\030\001 \002(\0132\020.GetUserInfo.C2S\"a\n\010R" +
"esponse\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\035\n\003s2c\030\004 \001(\0132\020.G" +
"etUserInfo.S2C*N\n\nUpdateType\022\023\n\017UpdateTy" +
"pe_None\020\000\022\025\n\021UpdateType_Advice\020\001\022\024\n\020Upda" +
"teType_Force\020\002*\256\001\n\rUserInfoField\022\027\n\023User" +
"InfoField_Basic\020\001\022\025\n\021UserInfoField_API\020\002" +
"\022\032\n\026UserInfoField_QotRight\020\004\022\034\n\030UserInfo" +
"Field_Disclaimer\020\010\022\030\n\024UserInfoField_Upda" +
"te\020\020\022\031\n\024UserInfoField_WebKey\020\200\020BD\n\025com.m" +
"oomoo.openapi.pbZ+github.com/futuopen/ft" +
"api4go/pb/getuserinfo"
};
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(),
}, assigner);
internal_static_GetUserInfo_C2S_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GetUserInfo_C2S_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetUserInfo_C2S_descriptor,
new java.lang.String[] { "Flag", });
internal_static_GetUserInfo_S2C_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_GetUserInfo_S2C_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetUserInfo_S2C_descriptor,
new java.lang.String[] { "NickName", "AvatarUrl", "ApiLevel", "HkQotRight", "UsQotRight", "CnQotRight", "IsNeedAgreeDisclaimer", "UserID", "UpdateType", "WebKey", "WebJumpUrlHead", "HkOptionQotRight", "HasUSOptionQotRight", "HkFutureQotRight", "SubQuota", "HistoryKLQuota", "UsFutureQotRight", "UsOptionQotRight", "UserAttribution", "UpdateWhatsNew", "UsIndexQotRight", "UsOtcQotRight", "UsCMEFutureQotRight", "UsCBOTFutureQotRight", "UsNYMEXFutureQotRight", "UsCOMEXFutureQotRight", "UsCBOEFutureQotRight", "SgFutureQotRight", "JpFutureQotRight", "IsAppNNOrMM", "ShQotRight", "SzQotRight", });
internal_static_GetUserInfo_Request_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_GetUserInfo_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetUserInfo_Request_descriptor,
new java.lang.String[] { "C2S", });
internal_static_GetUserInfo_Response_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_GetUserInfo_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GetUserInfo_Response_descriptor,
new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", });
com.moomoo.openapi.pb.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}