com.moomoo.openapi.pb.QotSetPriceReminder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moomoo-api Show documentation
Show all versions of moomoo-api Show documentation
Moomoo OpenAPI quantitative transaction interface for Java.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_SetPriceReminder.proto
package com.moomoo.openapi.pb;
public final class QotSetPriceReminder {
private QotSetPriceReminder() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code Qot_SetPriceReminder.SetPriceReminderOp}
*/
public enum SetPriceReminderOp
implements com.google.protobuf.ProtocolMessageEnum {
/**
* SetPriceReminderOp_Unknown = 0;
*/
SetPriceReminderOp_Unknown(0),
/**
*
*新增
*
*
* SetPriceReminderOp_Add = 1;
*/
SetPriceReminderOp_Add(1),
/**
*
*删除
*
*
* SetPriceReminderOp_Del = 2;
*/
SetPriceReminderOp_Del(2),
/**
*
*启用
*
*
* SetPriceReminderOp_Enable = 3;
*/
SetPriceReminderOp_Enable(3),
/**
*
*禁用
*
*
* SetPriceReminderOp_Disable = 4;
*/
SetPriceReminderOp_Disable(4),
/**
*
*修改
*
*
* SetPriceReminderOp_Modify = 5;
*/
SetPriceReminderOp_Modify(5),
/**
*
*删除该支股票下所有到价提醒
*
*
* SetPriceReminderOp_DelAll = 6;
*/
SetPriceReminderOp_DelAll(6),
;
/**
* SetPriceReminderOp_Unknown = 0;
*/
public static final int SetPriceReminderOp_Unknown_VALUE = 0;
/**
*
*新增
*
*
* SetPriceReminderOp_Add = 1;
*/
public static final int SetPriceReminderOp_Add_VALUE = 1;
/**
*
*删除
*
*
* SetPriceReminderOp_Del = 2;
*/
public static final int SetPriceReminderOp_Del_VALUE = 2;
/**
*
*启用
*
*
* SetPriceReminderOp_Enable = 3;
*/
public static final int SetPriceReminderOp_Enable_VALUE = 3;
/**
*
*禁用
*
*
* SetPriceReminderOp_Disable = 4;
*/
public static final int SetPriceReminderOp_Disable_VALUE = 4;
/**
*
*修改
*
*
* SetPriceReminderOp_Modify = 5;
*/
public static final int SetPriceReminderOp_Modify_VALUE = 5;
/**
*
*删除该支股票下所有到价提醒
*
*
* SetPriceReminderOp_DelAll = 6;
*/
public static final int SetPriceReminderOp_DelAll_VALUE = 6;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SetPriceReminderOp valueOf(int value) {
return forNumber(value);
}
public static SetPriceReminderOp forNumber(int value) {
switch (value) {
case 0: return SetPriceReminderOp_Unknown;
case 1: return SetPriceReminderOp_Add;
case 2: return SetPriceReminderOp_Del;
case 3: return SetPriceReminderOp_Enable;
case 4: return SetPriceReminderOp_Disable;
case 5: return SetPriceReminderOp_Modify;
case 6: return SetPriceReminderOp_DelAll;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SetPriceReminderOp> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SetPriceReminderOp findValueByNumber(int number) {
return SetPriceReminderOp.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.QotSetPriceReminder.getDescriptor().getEnumTypes().get(0);
}
private static final SetPriceReminderOp[] VALUES = values();
public static SetPriceReminderOp 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 SetPriceReminderOp(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:Qot_SetPriceReminder.SetPriceReminderOp)
}
public interface C2SOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_SetPriceReminder.C2S)
com.google.protobuf.MessageOrBuilder {
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
boolean hasSecurity();
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
com.moomoo.openapi.pb.QotCommon.Security getSecurity();
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder();
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
boolean hasOp();
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
int getOp();
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
boolean hasKey();
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
long getKey();
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
boolean hasType();
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
int getType();
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
boolean hasFreq();
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
int getFreq();
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
boolean hasValue();
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
double getValue();
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
boolean hasNote();
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
java.lang.String getNote();
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
com.google.protobuf.ByteString
getNoteBytes();
}
/**
* Protobuf type {@code Qot_SetPriceReminder.C2S}
*/
public static final class C2S extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_SetPriceReminder.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() {
op_ = 0;
key_ = 0L;
type_ = 0;
freq_ = 0;
value_ = 0D;
note_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private C2S(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.moomoo.openapi.pb.QotCommon.Security.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = security_.toBuilder();
}
security_ = input.readMessage(com.moomoo.openapi.pb.QotCommon.Security.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(security_);
security_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
op_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
key_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
type_ = input.readInt32();
break;
}
case 41: {
bitField0_ |= 0x00000020;
value_ = input.readDouble();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
note_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000010;
freq_ = 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.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.C2S.class, com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder.class);
}
private int bitField0_;
public static final int SECURITY_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotCommon.Security security_;
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public boolean hasSecurity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurity() {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder() {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
public static final int OP_FIELD_NUMBER = 2;
private int op_;
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
public boolean hasOp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
public int getOp() {
return op_;
}
public static final int KEY_FIELD_NUMBER = 3;
private long key_;
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
public long getKey() {
return key_;
}
public static final int TYPE_FIELD_NUMBER = 4;
private int type_;
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
public int getType() {
return type_;
}
public static final int FREQ_FIELD_NUMBER = 7;
private int freq_;
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
public boolean hasFreq() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
public int getFreq() {
return freq_;
}
public static final int VALUE_FIELD_NUMBER = 5;
private double value_;
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
public double getValue() {
return value_;
}
public static final int NOTE_FIELD_NUMBER = 6;
private volatile java.lang.Object note_;
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public boolean hasNote() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public java.lang.String getNote() {
java.lang.Object ref = note_;
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()) {
note_ = s;
}
return s;
}
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public com.google.protobuf.ByteString
getNoteBytes() {
java.lang.Object ref = note_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
note_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasSecurity()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasOp()) {
memoizedIsInitialized = 0;
return false;
}
if (!getSecurity().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getSecurity());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt32(2, op_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, key_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, type_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeDouble(5, value_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, note_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(7, freq_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSecurity());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, op_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, key_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, type_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, value_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, note_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, freq_);
}
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.QotSetPriceReminder.C2S)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotSetPriceReminder.C2S other = (com.moomoo.openapi.pb.QotSetPriceReminder.C2S) obj;
boolean result = true;
result = result && (hasSecurity() == other.hasSecurity());
if (hasSecurity()) {
result = result && getSecurity()
.equals(other.getSecurity());
}
result = result && (hasOp() == other.hasOp());
if (hasOp()) {
result = result && (getOp()
== other.getOp());
}
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && (getKey()
== other.getKey());
}
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && (getType()
== other.getType());
}
result = result && (hasFreq() == other.hasFreq());
if (hasFreq()) {
result = result && (getFreq()
== other.getFreq());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && (
java.lang.Double.doubleToLongBits(getValue())
== java.lang.Double.doubleToLongBits(
other.getValue()));
}
result = result && (hasNote() == other.hasNote());
if (hasNote()) {
result = result && getNote()
.equals(other.getNote());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSecurity()) {
hash = (37 * hash) + SECURITY_FIELD_NUMBER;
hash = (53 * hash) + getSecurity().hashCode();
}
if (hasOp()) {
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + getOp();
}
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKey());
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasFreq()) {
hash = (37 * hash) + FREQ_FIELD_NUMBER;
hash = (53 * hash) + getFreq();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
}
if (hasNote()) {
hash = (37 * hash) + NOTE_FIELD_NUMBER;
hash = (53 * hash) + getNote().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.C2S parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.C2S parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.C2S parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.C2S parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.C2S parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.C2S prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_SetPriceReminder.C2S}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_SetPriceReminder.C2S)
com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_C2S_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_C2S_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.C2S.class, com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotSetPriceReminder.C2S.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSecurityFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (securityBuilder_ == null) {
security_ = null;
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
op_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
key_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
freq_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
value_ = 0D;
bitField0_ = (bitField0_ & ~0x00000020);
note_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_C2S_descriptor;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.C2S getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotSetPriceReminder.C2S build() {
com.moomoo.openapi.pb.QotSetPriceReminder.C2S result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.C2S buildPartial() {
com.moomoo.openapi.pb.QotSetPriceReminder.C2S result = new com.moomoo.openapi.pb.QotSetPriceReminder.C2S(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (securityBuilder_ == null) {
result.security_ = security_;
} else {
result.security_ = securityBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.op_ = op_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.freq_ = freq_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.note_ = note_;
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.QotSetPriceReminder.C2S) {
return mergeFrom((com.moomoo.openapi.pb.QotSetPriceReminder.C2S)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotSetPriceReminder.C2S other) {
if (other == com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance()) return this;
if (other.hasSecurity()) {
mergeSecurity(other.getSecurity());
}
if (other.hasOp()) {
setOp(other.getOp());
}
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasFreq()) {
setFreq(other.getFreq());
}
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasNote()) {
bitField0_ |= 0x00000040;
note_ = other.note_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasSecurity()) {
return false;
}
if (!hasOp()) {
return false;
}
if (!getSecurity().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.QotSetPriceReminder.C2S parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotSetPriceReminder.C2S) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotCommon.Security security_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder> securityBuilder_;
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public boolean hasSecurity() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security getSecurity() {
if (securityBuilder_ == null) {
return security_ == null ? com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
} else {
return securityBuilder_.getMessage();
}
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder setSecurity(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
security_ = value;
onChanged();
} else {
securityBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder setSecurity(
com.moomoo.openapi.pb.QotCommon.Security.Builder builderForValue) {
if (securityBuilder_ == null) {
security_ = builderForValue.build();
onChanged();
} else {
securityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder mergeSecurity(com.moomoo.openapi.pb.QotCommon.Security value) {
if (securityBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
security_ != null &&
security_ != com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance()) {
security_ =
com.moomoo.openapi.pb.QotCommon.Security.newBuilder(security_).mergeFrom(value).buildPartial();
} else {
security_ = value;
}
onChanged();
} else {
securityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public Builder clearSecurity() {
if (securityBuilder_ == null) {
security_ = null;
onChanged();
} else {
securityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.Security.Builder getSecurityBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSecurityFieldBuilder().getBuilder();
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
public com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder getSecurityOrBuilder() {
if (securityBuilder_ != null) {
return securityBuilder_.getMessageOrBuilder();
} else {
return security_ == null ?
com.moomoo.openapi.pb.QotCommon.Security.getDefaultInstance() : security_;
}
}
/**
*
* 股票
*
*
* required .Qot_Common.Security security = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>
getSecurityFieldBuilder() {
if (securityBuilder_ == null) {
securityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotCommon.Security, com.moomoo.openapi.pb.QotCommon.Security.Builder, com.moomoo.openapi.pb.QotCommon.SecurityOrBuilder>(
getSecurity(),
getParentForChildren(),
isClean());
security_ = null;
}
return securityBuilder_;
}
private int op_ ;
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
public boolean hasOp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
public int getOp() {
return op_;
}
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
public Builder setOp(int value) {
bitField0_ |= 0x00000002;
op_ = value;
onChanged();
return this;
}
/**
*
* SetPriceReminderOp,操作类型
*
*
* required int32 op = 2;
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000002);
op_ = 0;
onChanged();
return this;
}
private long key_ ;
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
public long getKey() {
return key_;
}
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
public Builder setKey(long value) {
bitField0_ |= 0x00000004;
key_ = value;
onChanged();
return this;
}
/**
*
* 到价提醒的标识,GetPriceReminder协议可获得,用于指定要操作的到价提醒项,对于新增的情况不需要填
*
*
* optional int64 key = 3;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000004);
key_ = 0L;
onChanged();
return this;
}
private int type_ ;
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
public int getType() {
return type_;
}
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
public Builder setType(int value) {
bitField0_ |= 0x00000008;
type_ = value;
onChanged();
return this;
}
/**
*
* Qot_Common::PriceReminderType,提醒类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 type = 4;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
onChanged();
return this;
}
private int freq_ ;
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
public boolean hasFreq() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
public int getFreq() {
return freq_;
}
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
public Builder setFreq(int value) {
bitField0_ |= 0x00000010;
freq_ = value;
onChanged();
return this;
}
/**
*
* Qot_Common::PriceReminderFreq,提醒频率类型,删除、启用、禁用的情况下会忽略该字段
*
*
* optional int32 freq = 7;
*/
public Builder clearFreq() {
bitField0_ = (bitField0_ & ~0x00000010);
freq_ = 0;
onChanged();
return this;
}
private double value_ ;
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
public double getValue() {
return value_;
}
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
public Builder setValue(double value) {
bitField0_ |= 0x00000020;
value_ = value;
onChanged();
return this;
}
/**
*
* 提醒值,删除、启用、禁用的情况下会忽略该字段(精确到小数点后 3 位,超出部分会被舍弃)
*
*
* optional double value = 5;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000020);
value_ = 0D;
onChanged();
return this;
}
private java.lang.Object note_ = "";
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public boolean hasNote() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public java.lang.String getNote() {
java.lang.Object ref = note_;
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()) {
note_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public com.google.protobuf.ByteString
getNoteBytes() {
java.lang.Object ref = note_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
note_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public Builder setNote(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
note_ = value;
onChanged();
return this;
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public Builder clearNote() {
bitField0_ = (bitField0_ & ~0x00000040);
note_ = getDefaultInstance().getNote();
onChanged();
return this;
}
/**
*
* 用户设置到价提醒时的标注,仅支持 20 个以内的中文字符,删除、启用、禁用的情况下会忽略该字段
*
*
* optional string note = 6;
*/
public Builder setNoteBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
note_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_SetPriceReminder.C2S)
}
// @@protoc_insertion_point(class_scope:Qot_SetPriceReminder.C2S)
private static final com.moomoo.openapi.pb.QotSetPriceReminder.C2S DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotSetPriceReminder.C2S();
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.C2S getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface S2COrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_SetPriceReminder.S2C)
com.google.protobuf.MessageOrBuilder {
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
boolean hasKey();
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
long getKey();
}
/**
* Protobuf type {@code Qot_SetPriceReminder.S2C}
*/
public static final class S2C extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_SetPriceReminder.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() {
key_ = 0L;
}
@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 8: {
bitField0_ |= 0x00000001;
key_ = input.readInt64();
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.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.S2C.class, com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private long key_;
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
public long getKey() {
return key_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
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.writeInt64(1, key_);
}
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
.computeInt64Size(1, key_);
}
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.QotSetPriceReminder.S2C)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotSetPriceReminder.S2C other = (com.moomoo.openapi.pb.QotSetPriceReminder.S2C) obj;
boolean result = true;
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && (getKey()
== other.getKey());
}
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 (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKey());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.S2C parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.S2C parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.S2C parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.S2C parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.S2C parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.S2C prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_SetPriceReminder.S2C}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_SetPriceReminder.S2C)
com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_S2C_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_S2C_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.S2C.class, com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotSetPriceReminder.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();
key_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_S2C_descriptor;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.S2C getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotSetPriceReminder.S2C build() {
com.moomoo.openapi.pb.QotSetPriceReminder.S2C result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.S2C buildPartial() {
com.moomoo.openapi.pb.QotSetPriceReminder.S2C result = new com.moomoo.openapi.pb.QotSetPriceReminder.S2C(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
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.QotSetPriceReminder.S2C) {
return mergeFrom((com.moomoo.openapi.pb.QotSetPriceReminder.S2C)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotSetPriceReminder.S2C other) {
if (other == com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance()) return this;
if (other.hasKey()) {
setKey(other.getKey());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasKey()) {
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.QotSetPriceReminder.S2C parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotSetPriceReminder.S2C) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long key_ ;
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
public long getKey() {
return key_;
}
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
public Builder setKey(long value) {
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
*
*设置成功的情况下返回对应的key,不成功返回0
*
*
* required int64 key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_SetPriceReminder.S2C)
}
// @@protoc_insertion_point(class_scope:Qot_SetPriceReminder.S2C)
private static final com.moomoo.openapi.pb.QotSetPriceReminder.S2C DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotSetPriceReminder.S2C();
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.S2C getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_SetPriceReminder.Request)
com.google.protobuf.MessageOrBuilder {
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
boolean hasC2S();
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
com.moomoo.openapi.pb.QotSetPriceReminder.C2S getC2S();
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder getC2SOrBuilder();
}
/**
* Protobuf type {@code Qot_SetPriceReminder.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_SetPriceReminder.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.QotSetPriceReminder.C2S.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = c2S_.toBuilder();
}
c2S_ = input.readMessage(com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.Request.class, com.moomoo.openapi.pb.QotSetPriceReminder.Request.Builder.class);
}
private int bitField0_;
public static final int C2S_FIELD_NUMBER = 1;
private com.moomoo.openapi.pb.QotSetPriceReminder.C2S c2S_;
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.C2S getC2S() {
return c2S_ == null ? com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance() : c2S_;
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder getC2SOrBuilder() {
return c2S_ == null ? com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance() : c2S_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasC2S()) {
memoizedIsInitialized = 0;
return false;
}
if (!getC2S().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(1, getC2S());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getC2S());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.moomoo.openapi.pb.QotSetPriceReminder.Request)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotSetPriceReminder.Request other = (com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.Request prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_SetPriceReminder.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_SetPriceReminder.Request)
com.moomoo.openapi.pb.QotSetPriceReminder.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Request_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.Request.class, com.moomoo.openapi.pb.QotSetPriceReminder.Request.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Request_descriptor;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.Request getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotSetPriceReminder.Request.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotSetPriceReminder.Request build() {
com.moomoo.openapi.pb.QotSetPriceReminder.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.Request buildPartial() {
com.moomoo.openapi.pb.QotSetPriceReminder.Request result = new com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request) {
return mergeFrom((com.moomoo.openapi.pb.QotSetPriceReminder.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotSetPriceReminder.Request other) {
if (other == com.moomoo.openapi.pb.QotSetPriceReminder.Request.getDefaultInstance()) return this;
if (other.hasC2S()) {
mergeC2S(other.getC2S());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasC2S()) {
return false;
}
if (!getC2S().isInitialized()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.QotSetPriceReminder.Request parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotSetPriceReminder.Request) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.moomoo.openapi.pb.QotSetPriceReminder.C2S c2S_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotSetPriceReminder.C2S, com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder, com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder> c2SBuilder_;
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public boolean hasC2S() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.C2S getC2S() {
if (c2SBuilder_ == null) {
return c2S_ == null ? com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance() : c2S_;
} else {
return c2SBuilder_.getMessage();
}
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public Builder setC2S(com.moomoo.openapi.pb.QotSetPriceReminder.C2S value) {
if (c2SBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
c2S_ = value;
onChanged();
} else {
c2SBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public Builder setC2S(
com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder builderForValue) {
if (c2SBuilder_ == null) {
c2S_ = builderForValue.build();
onChanged();
} else {
c2SBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public Builder mergeC2S(com.moomoo.openapi.pb.QotSetPriceReminder.C2S value) {
if (c2SBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
c2S_ != null &&
c2S_ != com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance()) {
c2S_ =
com.moomoo.openapi.pb.QotSetPriceReminder.C2S.newBuilder(c2S_).mergeFrom(value).buildPartial();
} else {
c2S_ = value;
}
onChanged();
} else {
c2SBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public Builder clearC2S() {
if (c2SBuilder_ == null) {
c2S_ = null;
onChanged();
} else {
c2SBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder getC2SBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getC2SFieldBuilder().getBuilder();
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder getC2SOrBuilder() {
if (c2SBuilder_ != null) {
return c2SBuilder_.getMessageOrBuilder();
} else {
return c2S_ == null ?
com.moomoo.openapi.pb.QotSetPriceReminder.C2S.getDefaultInstance() : c2S_;
}
}
/**
* required .Qot_SetPriceReminder.C2S c2s = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotSetPriceReminder.C2S, com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder, com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder>
getC2SFieldBuilder() {
if (c2SBuilder_ == null) {
c2SBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotSetPriceReminder.C2S, com.moomoo.openapi.pb.QotSetPriceReminder.C2S.Builder, com.moomoo.openapi.pb.QotSetPriceReminder.C2SOrBuilder>(
getC2S(),
getParentForChildren(),
isClean());
c2S_ = null;
}
return c2SBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_SetPriceReminder.Request)
}
// @@protoc_insertion_point(class_scope:Qot_SetPriceReminder.Request)
private static final com.moomoo.openapi.pb.QotSetPriceReminder.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotSetPriceReminder.Request();
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:Qot_SetPriceReminder.Response)
com.google.protobuf.MessageOrBuilder {
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
boolean hasRetType();
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
int getRetType();
/**
* optional string retMsg = 2;
*/
boolean hasRetMsg();
/**
* optional string retMsg = 2;
*/
java.lang.String getRetMsg();
/**
* optional string retMsg = 2;
*/
com.google.protobuf.ByteString
getRetMsgBytes();
/**
* optional int32 errCode = 3;
*/
boolean hasErrCode();
/**
* optional int32 errCode = 3;
*/
int getErrCode();
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
boolean hasS2C();
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotSetPriceReminder.S2C getS2C();
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder getS2COrBuilder();
}
/**
* Protobuf type {@code Qot_SetPriceReminder.Response}
*/
public static final class Response extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Qot_SetPriceReminder.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.QotSetPriceReminder.S2C.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = s2C_.toBuilder();
}
s2C_ = input.readMessage(com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.Response.class, com.moomoo.openapi.pb.QotSetPriceReminder.Response.Builder.class);
}
private int bitField0_;
public static final int RETTYPE_FIELD_NUMBER = 1;
private int retType_;
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
public static final int RETMSG_FIELD_NUMBER = 2;
private volatile java.lang.Object retMsg_;
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRCODE_FIELD_NUMBER = 3;
private int errCode_;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
public static final int S2C_FIELD_NUMBER = 4;
private com.moomoo.openapi.pb.QotSetPriceReminder.S2C s2C_;
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.S2C getS2C() {
return s2C_ == null ? com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance() : s2C_;
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder getS2COrBuilder() {
return s2C_ == null ? com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance() : s2C_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasRetType()) {
memoizedIsInitialized = 0;
return false;
}
if (hasS2C()) {
if (!getS2C().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, retType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, retMsg_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, errCode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getS2C());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, retType_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, retMsg_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, errCode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getS2C());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.moomoo.openapi.pb.QotSetPriceReminder.Response)) {
return super.equals(obj);
}
com.moomoo.openapi.pb.QotSetPriceReminder.Response other = (com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.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.QotSetPriceReminder.Response prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code Qot_SetPriceReminder.Response}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Qot_SetPriceReminder.Response)
com.moomoo.openapi.pb.QotSetPriceReminder.ResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Response_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.moomoo.openapi.pb.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Response_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.moomoo.openapi.pb.QotSetPriceReminder.Response.class, com.moomoo.openapi.pb.QotSetPriceReminder.Response.Builder.class);
}
// Construct using com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.internal_static_Qot_SetPriceReminder_Response_descriptor;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.Response getDefaultInstanceForType() {
return com.moomoo.openapi.pb.QotSetPriceReminder.Response.getDefaultInstance();
}
public com.moomoo.openapi.pb.QotSetPriceReminder.Response build() {
com.moomoo.openapi.pb.QotSetPriceReminder.Response result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.moomoo.openapi.pb.QotSetPriceReminder.Response buildPartial() {
com.moomoo.openapi.pb.QotSetPriceReminder.Response result = new com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response) {
return mergeFrom((com.moomoo.openapi.pb.QotSetPriceReminder.Response)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.moomoo.openapi.pb.QotSetPriceReminder.Response other) {
if (other == com.moomoo.openapi.pb.QotSetPriceReminder.Response.getDefaultInstance()) return this;
if (other.hasRetType()) {
setRetType(other.getRetType());
}
if (other.hasRetMsg()) {
bitField0_ |= 0x00000002;
retMsg_ = other.retMsg_;
onChanged();
}
if (other.hasErrCode()) {
setErrCode(other.getErrCode());
}
if (other.hasS2C()) {
mergeS2C(other.getS2C());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasRetType()) {
return false;
}
if (hasS2C()) {
if (!getS2C().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.moomoo.openapi.pb.QotSetPriceReminder.Response parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.moomoo.openapi.pb.QotSetPriceReminder.Response) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int retType_ = -400;
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public boolean hasRetType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public int getRetType() {
return retType_;
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder setRetType(int value) {
bitField0_ |= 0x00000001;
retType_ = value;
onChanged();
return this;
}
/**
*
*RetType,返回结果
*
*
* required int32 retType = 1 [default = -400];
*/
public Builder clearRetType() {
bitField0_ = (bitField0_ & ~0x00000001);
retType_ = -400;
onChanged();
return this;
}
private java.lang.Object retMsg_ = "";
/**
* optional string retMsg = 2;
*/
public boolean hasRetMsg() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string retMsg = 2;
*/
public java.lang.String getRetMsg() {
java.lang.Object ref = retMsg_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
retMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string retMsg = 2;
*/
public com.google.protobuf.ByteString
getRetMsgBytes() {
java.lang.Object ref = retMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
retMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder clearRetMsg() {
bitField0_ = (bitField0_ & ~0x00000002);
retMsg_ = getDefaultInstance().getRetMsg();
onChanged();
return this;
}
/**
* optional string retMsg = 2;
*/
public Builder setRetMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
retMsg_ = value;
onChanged();
return this;
}
private int errCode_ ;
/**
* optional int32 errCode = 3;
*/
public boolean hasErrCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 errCode = 3;
*/
public int getErrCode() {
return errCode_;
}
/**
* optional int32 errCode = 3;
*/
public Builder setErrCode(int value) {
bitField0_ |= 0x00000004;
errCode_ = value;
onChanged();
return this;
}
/**
* optional int32 errCode = 3;
*/
public Builder clearErrCode() {
bitField0_ = (bitField0_ & ~0x00000004);
errCode_ = 0;
onChanged();
return this;
}
private com.moomoo.openapi.pb.QotSetPriceReminder.S2C s2C_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotSetPriceReminder.S2C, com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder, com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder> s2CBuilder_;
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public boolean hasS2C() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.S2C getS2C() {
if (s2CBuilder_ == null) {
return s2C_ == null ? com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance() : s2C_;
} else {
return s2CBuilder_.getMessage();
}
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public Builder setS2C(com.moomoo.openapi.pb.QotSetPriceReminder.S2C value) {
if (s2CBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
s2C_ = value;
onChanged();
} else {
s2CBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public Builder setS2C(
com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder builderForValue) {
if (s2CBuilder_ == null) {
s2C_ = builderForValue.build();
onChanged();
} else {
s2CBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public Builder mergeS2C(com.moomoo.openapi.pb.QotSetPriceReminder.S2C value) {
if (s2CBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
s2C_ != null &&
s2C_ != com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance()) {
s2C_ =
com.moomoo.openapi.pb.QotSetPriceReminder.S2C.newBuilder(s2C_).mergeFrom(value).buildPartial();
} else {
s2C_ = value;
}
onChanged();
} else {
s2CBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public Builder clearS2C() {
if (s2CBuilder_ == null) {
s2C_ = null;
onChanged();
} else {
s2CBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder getS2CBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getS2CFieldBuilder().getBuilder();
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
public com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder getS2COrBuilder() {
if (s2CBuilder_ != null) {
return s2CBuilder_.getMessageOrBuilder();
} else {
return s2C_ == null ?
com.moomoo.openapi.pb.QotSetPriceReminder.S2C.getDefaultInstance() : s2C_;
}
}
/**
* optional .Qot_SetPriceReminder.S2C s2c = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotSetPriceReminder.S2C, com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder, com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder>
getS2CFieldBuilder() {
if (s2CBuilder_ == null) {
s2CBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.moomoo.openapi.pb.QotSetPriceReminder.S2C, com.moomoo.openapi.pb.QotSetPriceReminder.S2C.Builder, com.moomoo.openapi.pb.QotSetPriceReminder.S2COrBuilder>(
getS2C(),
getParentForChildren(),
isClean());
s2C_ = null;
}
return s2CBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:Qot_SetPriceReminder.Response)
}
// @@protoc_insertion_point(class_scope:Qot_SetPriceReminder.Response)
private static final com.moomoo.openapi.pb.QotSetPriceReminder.Response DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.moomoo.openapi.pb.QotSetPriceReminder.Response();
}
public static com.moomoo.openapi.pb.QotSetPriceReminder.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.QotSetPriceReminder.Response getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_SetPriceReminder_C2S_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_SetPriceReminder_C2S_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_SetPriceReminder_S2C_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_SetPriceReminder_S2C_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_SetPriceReminder_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_SetPriceReminder_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_Qot_SetPriceReminder_Response_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_Qot_SetPriceReminder_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\032Qot_SetPriceReminder.proto\022\024Qot_SetPri" +
"ceReminder\032\014Common.proto\032\020Qot_Common.pro" +
"to\"\177\n\003C2S\022&\n\010security\030\001 \002(\0132\024.Qot_Common" +
".Security\022\n\n\002op\030\002 \002(\005\022\013\n\003key\030\003 \001(\003\022\014\n\004ty" +
"pe\030\004 \001(\005\022\014\n\004freq\030\007 \001(\005\022\r\n\005value\030\005 \001(\001\022\014\n" +
"\004note\030\006 \001(\t\"\022\n\003S2C\022\013\n\003key\030\001 \002(\003\"1\n\007Reque" +
"st\022&\n\003c2s\030\001 \002(\0132\031.Qot_SetPriceReminder.C" +
"2S\"j\n\010Response\022\025\n\007retType\030\001 \002(\005:\004-400\022\016\n" +
"\006retMsg\030\002 \001(\t\022\017\n\007errCode\030\003 \001(\005\022&\n\003s2c\030\004 " +
"\001(\0132\031.Qot_SetPriceReminder.S2C*\351\001\n\022SetPr" +
"iceReminderOp\022\036\n\032SetPriceReminderOp_Unkn" +
"own\020\000\022\032\n\026SetPriceReminderOp_Add\020\001\022\032\n\026Set" +
"PriceReminderOp_Del\020\002\022\035\n\031SetPriceReminde" +
"rOp_Enable\020\003\022\036\n\032SetPriceReminderOp_Disab" +
"le\020\004\022\035\n\031SetPriceReminderOp_Modify\020\005\022\035\n\031S" +
"etPriceReminderOp_DelAll\020\006BL\n\025com.moomoo" +
".openapi.pbZ3github.com/futuopen/ftapi4g" +
"o/pb/qotsetpricereminder"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.moomoo.openapi.pb.Common.getDescriptor(),
com.moomoo.openapi.pb.QotCommon.getDescriptor(),
}, assigner);
internal_static_Qot_SetPriceReminder_C2S_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Qot_SetPriceReminder_C2S_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_SetPriceReminder_C2S_descriptor,
new java.lang.String[] { "Security", "Op", "Key", "Type", "Freq", "Value", "Note", });
internal_static_Qot_SetPriceReminder_S2C_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Qot_SetPriceReminder_S2C_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_SetPriceReminder_S2C_descriptor,
new java.lang.String[] { "Key", });
internal_static_Qot_SetPriceReminder_Request_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_Qot_SetPriceReminder_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_SetPriceReminder_Request_descriptor,
new java.lang.String[] { "C2S", });
internal_static_Qot_SetPriceReminder_Response_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_Qot_SetPriceReminder_Response_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_Qot_SetPriceReminder_Response_descriptor,
new java.lang.String[] { "RetType", "RetMsg", "ErrCode", "S2C", });
com.moomoo.openapi.pb.Common.getDescriptor();
com.moomoo.openapi.pb.QotCommon.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}