
cn.leancloud.push.lite.proto.Messages Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: messages.proto
package cn.leancloud.push.lite.proto;
public final class Messages {
private Messages() {}
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 cn.leancloud.push.lite.proto.CommandType}
*/
public enum CommandType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* session = 0;
*/
session(0),
/**
* conv = 1;
*/
conv(1),
/**
* direct = 2;
*/
direct(2),
/**
* ack = 3;
*/
ack(3),
/**
* rcp = 4;
*/
rcp(4),
/**
* unread = 5;
*/
unread(5),
/**
* logs = 6;
*/
logs(6),
/**
* error = 7;
*/
error(7),
/**
* login = 8;
*/
login(8),
/**
* data = 9;
*/
data(9),
/**
* room = 10;
*/
room(10),
/**
* read = 11;
*/
read(11),
/**
* presence = 12;
*/
presence(12),
/**
* report = 13;
*/
report(13),
/**
* echo = 14;
*/
echo(14),
/**
* loggedin = 15;
*/
loggedin(15),
/**
* logout = 16;
*/
logout(16),
/**
* loggedout = 17;
*/
loggedout(17),
/**
* patch = 18;
*/
patch(18),
/**
* pubsub = 19;
*/
pubsub(19),
/**
* blacklist = 20;
*/
blacklist(20),
/**
* goaway = 21;
*/
goaway(21),
;
/**
* session = 0;
*/
public static final int session_VALUE = 0;
/**
* conv = 1;
*/
public static final int conv_VALUE = 1;
/**
* direct = 2;
*/
public static final int direct_VALUE = 2;
/**
* ack = 3;
*/
public static final int ack_VALUE = 3;
/**
* rcp = 4;
*/
public static final int rcp_VALUE = 4;
/**
* unread = 5;
*/
public static final int unread_VALUE = 5;
/**
* logs = 6;
*/
public static final int logs_VALUE = 6;
/**
* error = 7;
*/
public static final int error_VALUE = 7;
/**
* login = 8;
*/
public static final int login_VALUE = 8;
/**
* data = 9;
*/
public static final int data_VALUE = 9;
/**
* room = 10;
*/
public static final int room_VALUE = 10;
/**
* read = 11;
*/
public static final int read_VALUE = 11;
/**
* presence = 12;
*/
public static final int presence_VALUE = 12;
/**
* report = 13;
*/
public static final int report_VALUE = 13;
/**
* echo = 14;
*/
public static final int echo_VALUE = 14;
/**
* loggedin = 15;
*/
public static final int loggedin_VALUE = 15;
/**
* logout = 16;
*/
public static final int logout_VALUE = 16;
/**
* loggedout = 17;
*/
public static final int loggedout_VALUE = 17;
/**
* patch = 18;
*/
public static final int patch_VALUE = 18;
/**
* pubsub = 19;
*/
public static final int pubsub_VALUE = 19;
/**
* blacklist = 20;
*/
public static final int blacklist_VALUE = 20;
/**
* goaway = 21;
*/
public static final int goaway_VALUE = 21;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CommandType valueOf(int value) {
return forNumber(value);
}
public static CommandType forNumber(int value) {
switch (value) {
case 0: return session;
case 1: return conv;
case 2: return direct;
case 3: return ack;
case 4: return rcp;
case 5: return unread;
case 6: return logs;
case 7: return error;
case 8: return login;
case 9: return data;
case 10: return room;
case 11: return read;
case 12: return presence;
case 13: return report;
case 14: return echo;
case 15: return loggedin;
case 16: return logout;
case 17: return loggedout;
case 18: return patch;
case 19: return pubsub;
case 20: return blacklist;
case 21: return goaway;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CommandType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CommandType findValueByNumber(int number) {
return CommandType.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 cn.leancloud.push.lite.proto.Messages.getDescriptor().getEnumTypes().get(0);
}
private static final CommandType[] VALUES = values();
public static CommandType 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 CommandType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cn.leancloud.push.lite.proto.CommandType)
}
/**
* Protobuf enum {@code cn.leancloud.push.lite.proto.OpType}
*/
public enum OpType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* session
*
*
* open = 1;
*/
open(1),
/**
* add = 2;
*/
add(2),
/**
* remove = 3;
*/
remove(3),
/**
* close = 4;
*/
close(4),
/**
* opened = 5;
*/
opened(5),
/**
* closed = 6;
*/
closed(6),
/**
* query = 7;
*/
query(7),
/**
* query_result = 8;
*/
query_result(8),
/**
* conflict = 9;
*/
conflict(9),
/**
* added = 10;
*/
added(10),
/**
* removed = 11;
*/
removed(11),
/**
* refresh = 12;
*/
refresh(12),
/**
* refreshed = 13;
*/
refreshed(13),
/**
*
* conv
*
*
* start = 30;
*/
start(30),
/**
* started = 31;
*/
started(31),
/**
* joined = 32;
*/
joined(32),
/**
* members_joined = 33;
*/
members_joined(33),
/**
*
* add = 34; reuse session.add
* added = 35; reuse session.added
* remove = 37; reuse session.remove
* removed = 38; reuse session.removed
*
*
* left = 39;
*/
left(39),
/**
* members_left = 40;
*/
members_left(40),
/**
*
* query = 41; reuse session.query
*
*
* results = 42;
*/
results(42),
/**
* count = 43;
*/
count(43),
/**
* result = 44;
*/
result(44),
/**
* update = 45;
*/
update(45),
/**
* updated = 46;
*/
updated(46),
/**
* mute = 47;
*/
mute(47),
/**
* unmute = 48;
*/
unmute(48),
/**
* status = 49;
*/
status(49),
/**
* members = 50;
*/
members(50),
/**
* max_read = 51;
*/
max_read(51),
/**
* is_member = 52;
*/
is_member(52),
/**
* member_info_update = 53;
*/
member_info_update(53),
/**
* member_info_updated = 54;
*/
member_info_updated(54),
/**
* member_info_changed = 55;
*/
member_info_changed(55),
/**
*
* room
*
*
* join = 80;
*/
join(80),
/**
* invite = 81;
*/
invite(81),
/**
* leave = 82;
*/
leave(82),
/**
* kick = 83;
*/
kick(83),
/**
* reject = 84;
*/
reject(84),
/**
* invited = 85;
*/
invited(85),
/**
*
* joined = 32; reuse the value in conv section
* left = 39; reuse the value in conv section
*
*
* kicked = 86;
*/
kicked(86),
/**
*
* report
*
*
* upload = 100;
*/
upload(100),
/**
* uploaded = 101;
*/
uploaded(101),
/**
*
* pubsub
*
*
* subscribe = 120;
*/
subscribe(120),
/**
* subscribed = 121;
*/
subscribed(121),
/**
* unsubscribe = 122;
*/
unsubscribe(122),
/**
* unsubscribed = 123;
*/
unsubscribed(123),
/**
* is_subscribed = 124;
*/
is_subscribed(124),
/**
*
* patch
*
*
* modify = 150;
*/
modify(150),
/**
* modified = 151;
*/
modified(151),
/**
*
* blacklist, query, query_result defined with 7, 8
*
*
* block = 170;
*/
block(170),
/**
* unblock = 171;
*/
unblock(171),
/**
* blocked = 172;
*/
blocked(172),
/**
* unblocked = 173;
*/
unblocked(173),
/**
* members_blocked = 174;
*/
members_blocked(174),
/**
* members_unblocked = 175;
*/
members_unblocked(175),
/**
* check_block = 176;
*/
check_block(176),
/**
* check_result = 177;
*/
check_result(177),
/**
* add_shutup = 180;
*/
add_shutup(180),
/**
* remove_shutup = 181;
*/
remove_shutup(181),
/**
* query_shutup = 182;
*/
query_shutup(182),
/**
* shutup_added = 183;
*/
shutup_added(183),
/**
* shutup_removed = 184;
*/
shutup_removed(184),
/**
* shutup_result = 185;
*/
shutup_result(185),
/**
* shutuped = 186;
*/
shutuped(186),
/**
* unshutuped = 187;
*/
unshutuped(187),
/**
* members_shutuped = 188;
*/
members_shutuped(188),
/**
* members_unshutuped = 189;
*/
members_unshutuped(189),
/**
*
* check_result define in 177
*
*
* check_shutup = 190;
*/
check_shutup(190),
;
/**
*
* session
*
*
* open = 1;
*/
public static final int open_VALUE = 1;
/**
* add = 2;
*/
public static final int add_VALUE = 2;
/**
* remove = 3;
*/
public static final int remove_VALUE = 3;
/**
* close = 4;
*/
public static final int close_VALUE = 4;
/**
* opened = 5;
*/
public static final int opened_VALUE = 5;
/**
* closed = 6;
*/
public static final int closed_VALUE = 6;
/**
* query = 7;
*/
public static final int query_VALUE = 7;
/**
* query_result = 8;
*/
public static final int query_result_VALUE = 8;
/**
* conflict = 9;
*/
public static final int conflict_VALUE = 9;
/**
* added = 10;
*/
public static final int added_VALUE = 10;
/**
* removed = 11;
*/
public static final int removed_VALUE = 11;
/**
* refresh = 12;
*/
public static final int refresh_VALUE = 12;
/**
* refreshed = 13;
*/
public static final int refreshed_VALUE = 13;
/**
*
* conv
*
*
* start = 30;
*/
public static final int start_VALUE = 30;
/**
* started = 31;
*/
public static final int started_VALUE = 31;
/**
* joined = 32;
*/
public static final int joined_VALUE = 32;
/**
* members_joined = 33;
*/
public static final int members_joined_VALUE = 33;
/**
*
* add = 34; reuse session.add
* added = 35; reuse session.added
* remove = 37; reuse session.remove
* removed = 38; reuse session.removed
*
*
* left = 39;
*/
public static final int left_VALUE = 39;
/**
* members_left = 40;
*/
public static final int members_left_VALUE = 40;
/**
*
* query = 41; reuse session.query
*
*
* results = 42;
*/
public static final int results_VALUE = 42;
/**
* count = 43;
*/
public static final int count_VALUE = 43;
/**
* result = 44;
*/
public static final int result_VALUE = 44;
/**
* update = 45;
*/
public static final int update_VALUE = 45;
/**
* updated = 46;
*/
public static final int updated_VALUE = 46;
/**
* mute = 47;
*/
public static final int mute_VALUE = 47;
/**
* unmute = 48;
*/
public static final int unmute_VALUE = 48;
/**
* status = 49;
*/
public static final int status_VALUE = 49;
/**
* members = 50;
*/
public static final int members_VALUE = 50;
/**
* max_read = 51;
*/
public static final int max_read_VALUE = 51;
/**
* is_member = 52;
*/
public static final int is_member_VALUE = 52;
/**
* member_info_update = 53;
*/
public static final int member_info_update_VALUE = 53;
/**
* member_info_updated = 54;
*/
public static final int member_info_updated_VALUE = 54;
/**
* member_info_changed = 55;
*/
public static final int member_info_changed_VALUE = 55;
/**
*
* room
*
*
* join = 80;
*/
public static final int join_VALUE = 80;
/**
* invite = 81;
*/
public static final int invite_VALUE = 81;
/**
* leave = 82;
*/
public static final int leave_VALUE = 82;
/**
* kick = 83;
*/
public static final int kick_VALUE = 83;
/**
* reject = 84;
*/
public static final int reject_VALUE = 84;
/**
* invited = 85;
*/
public static final int invited_VALUE = 85;
/**
*
* joined = 32; reuse the value in conv section
* left = 39; reuse the value in conv section
*
*
* kicked = 86;
*/
public static final int kicked_VALUE = 86;
/**
*
* report
*
*
* upload = 100;
*/
public static final int upload_VALUE = 100;
/**
* uploaded = 101;
*/
public static final int uploaded_VALUE = 101;
/**
*
* pubsub
*
*
* subscribe = 120;
*/
public static final int subscribe_VALUE = 120;
/**
* subscribed = 121;
*/
public static final int subscribed_VALUE = 121;
/**
* unsubscribe = 122;
*/
public static final int unsubscribe_VALUE = 122;
/**
* unsubscribed = 123;
*/
public static final int unsubscribed_VALUE = 123;
/**
* is_subscribed = 124;
*/
public static final int is_subscribed_VALUE = 124;
/**
*
* patch
*
*
* modify = 150;
*/
public static final int modify_VALUE = 150;
/**
* modified = 151;
*/
public static final int modified_VALUE = 151;
/**
*
* blacklist, query, query_result defined with 7, 8
*
*
* block = 170;
*/
public static final int block_VALUE = 170;
/**
* unblock = 171;
*/
public static final int unblock_VALUE = 171;
/**
* blocked = 172;
*/
public static final int blocked_VALUE = 172;
/**
* unblocked = 173;
*/
public static final int unblocked_VALUE = 173;
/**
* members_blocked = 174;
*/
public static final int members_blocked_VALUE = 174;
/**
* members_unblocked = 175;
*/
public static final int members_unblocked_VALUE = 175;
/**
* check_block = 176;
*/
public static final int check_block_VALUE = 176;
/**
* check_result = 177;
*/
public static final int check_result_VALUE = 177;
/**
* add_shutup = 180;
*/
public static final int add_shutup_VALUE = 180;
/**
* remove_shutup = 181;
*/
public static final int remove_shutup_VALUE = 181;
/**
* query_shutup = 182;
*/
public static final int query_shutup_VALUE = 182;
/**
* shutup_added = 183;
*/
public static final int shutup_added_VALUE = 183;
/**
* shutup_removed = 184;
*/
public static final int shutup_removed_VALUE = 184;
/**
* shutup_result = 185;
*/
public static final int shutup_result_VALUE = 185;
/**
* shutuped = 186;
*/
public static final int shutuped_VALUE = 186;
/**
* unshutuped = 187;
*/
public static final int unshutuped_VALUE = 187;
/**
* members_shutuped = 188;
*/
public static final int members_shutuped_VALUE = 188;
/**
* members_unshutuped = 189;
*/
public static final int members_unshutuped_VALUE = 189;
/**
*
* check_result define in 177
*
*
* check_shutup = 190;
*/
public static final int check_shutup_VALUE = 190;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OpType valueOf(int value) {
return forNumber(value);
}
public static OpType forNumber(int value) {
switch (value) {
case 1: return open;
case 2: return add;
case 3: return remove;
case 4: return close;
case 5: return opened;
case 6: return closed;
case 7: return query;
case 8: return query_result;
case 9: return conflict;
case 10: return added;
case 11: return removed;
case 12: return refresh;
case 13: return refreshed;
case 30: return start;
case 31: return started;
case 32: return joined;
case 33: return members_joined;
case 39: return left;
case 40: return members_left;
case 42: return results;
case 43: return count;
case 44: return result;
case 45: return update;
case 46: return updated;
case 47: return mute;
case 48: return unmute;
case 49: return status;
case 50: return members;
case 51: return max_read;
case 52: return is_member;
case 53: return member_info_update;
case 54: return member_info_updated;
case 55: return member_info_changed;
case 80: return join;
case 81: return invite;
case 82: return leave;
case 83: return kick;
case 84: return reject;
case 85: return invited;
case 86: return kicked;
case 100: return upload;
case 101: return uploaded;
case 120: return subscribe;
case 121: return subscribed;
case 122: return unsubscribe;
case 123: return unsubscribed;
case 124: return is_subscribed;
case 150: return modify;
case 151: return modified;
case 170: return block;
case 171: return unblock;
case 172: return blocked;
case 173: return unblocked;
case 174: return members_blocked;
case 175: return members_unblocked;
case 176: return check_block;
case 177: return check_result;
case 180: return add_shutup;
case 181: return remove_shutup;
case 182: return query_shutup;
case 183: return shutup_added;
case 184: return shutup_removed;
case 185: return shutup_result;
case 186: return shutuped;
case 187: return unshutuped;
case 188: return members_shutuped;
case 189: return members_unshutuped;
case 190: return check_shutup;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OpType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OpType findValueByNumber(int number) {
return OpType.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 cn.leancloud.push.lite.proto.Messages.getDescriptor().getEnumTypes().get(1);
}
private static final OpType[] VALUES = values();
public static OpType 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 OpType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cn.leancloud.push.lite.proto.OpType)
}
/**
* Protobuf enum {@code cn.leancloud.push.lite.proto.StatusType}
*/
public enum StatusType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* on = 1;
*/
on(1),
/**
* off = 2;
*/
off(2),
;
/**
* on = 1;
*/
public static final int on_VALUE = 1;
/**
* off = 2;
*/
public static final int off_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatusType valueOf(int value) {
return forNumber(value);
}
public static StatusType forNumber(int value) {
switch (value) {
case 1: return on;
case 2: return off;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
StatusType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public StatusType findValueByNumber(int number) {
return StatusType.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 cn.leancloud.push.lite.proto.Messages.getDescriptor().getEnumTypes().get(2);
}
private static final StatusType[] VALUES = values();
public static StatusType 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 StatusType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cn.leancloud.push.lite.proto.StatusType)
}
public interface JsonObjectMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:cn.leancloud.push.lite.proto.JsonObjectMessage)
com.google.protobuf.MessageOrBuilder {
/**
* required string data = 1;
*/
boolean hasData();
/**
* required string data = 1;
*/
java.lang.String getData();
/**
* required string data = 1;
*/
com.google.protobuf.ByteString
getDataBytes();
}
/**
* Protobuf type {@code cn.leancloud.push.lite.proto.JsonObjectMessage}
*/
public static final class JsonObjectMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.leancloud.push.lite.proto.JsonObjectMessage)
JsonObjectMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use JsonObjectMessage.newBuilder() to construct.
private JsonObjectMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JsonObjectMessage() {
data_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JsonObjectMessage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
data_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.class, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder.class);
}
private int bitField0_;
public static final int DATA_FIELD_NUMBER = 1;
private volatile java.lang.Object data_;
/**
* required string data = 1;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string data = 1;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
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()) {
data_ = s;
}
return s;
}
}
/**
* required string data = 1;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = 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 (!hasData()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_);
}
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 cn.leancloud.push.lite.proto.Messages.JsonObjectMessage)) {
return super.equals(obj);
}
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage other = (cn.leancloud.push.lite.proto.Messages.JsonObjectMessage) obj;
boolean result = true;
result = result && (hasData() == other.hasData());
if (hasData()) {
result = result && getData()
.equals(other.getData());
}
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 (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage 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 cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage 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 cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage 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(cn.leancloud.push.lite.proto.Messages.JsonObjectMessage 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 cn.leancloud.push.lite.proto.JsonObjectMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.leancloud.push.lite.proto.JsonObjectMessage)
cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.class, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder.class);
}
// Construct using cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.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();
data_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_descriptor;
}
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage getDefaultInstanceForType() {
return cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.getDefaultInstance();
}
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage build() {
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage buildPartial() {
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage result = new cn.leancloud.push.lite.proto.Messages.JsonObjectMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.data_ = data_;
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 cn.leancloud.push.lite.proto.Messages.JsonObjectMessage) {
return mergeFrom((cn.leancloud.push.lite.proto.Messages.JsonObjectMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.leancloud.push.lite.proto.Messages.JsonObjectMessage other) {
if (other == cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.getDefaultInstance()) return this;
if (other.hasData()) {
bitField0_ |= 0x00000001;
data_ = other.data_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasData()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.leancloud.push.lite.proto.Messages.JsonObjectMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object data_ = "";
/**
* required string data = 1;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string data = 1;
*/
public java.lang.String getData() {
java.lang.Object ref = data_;
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()) {
data_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string data = 1;
*/
public com.google.protobuf.ByteString
getDataBytes() {
java.lang.Object ref = data_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
data_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string data = 1;
*/
public Builder setData(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
data_ = value;
onChanged();
return this;
}
/**
* required string data = 1;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000001);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
/**
* required string data = 1;
*/
public Builder setDataBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
data_ = 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:cn.leancloud.push.lite.proto.JsonObjectMessage)
}
// @@protoc_insertion_point(class_scope:cn.leancloud.push.lite.proto.JsonObjectMessage)
private static final cn.leancloud.push.lite.proto.Messages.JsonObjectMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.leancloud.push.lite.proto.Messages.JsonObjectMessage();
}
public static cn.leancloud.push.lite.proto.Messages.JsonObjectMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public JsonObjectMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JsonObjectMessage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cn.leancloud.push.lite.proto.DataCommand)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string ids = 1;
*/
java.util.List
getIdsList();
/**
* repeated string ids = 1;
*/
int getIdsCount();
/**
* repeated string ids = 1;
*/
java.lang.String getIds(int index);
/**
* repeated string ids = 1;
*/
com.google.protobuf.ByteString
getIdsBytes(int index);
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
java.util.List
getMsgList();
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage getMsg(int index);
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
int getMsgCount();
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
java.util.List extends cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder>
getMsgOrBuilderList();
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder getMsgOrBuilder(
int index);
/**
* optional bool offline = 3;
*/
boolean hasOffline();
/**
* optional bool offline = 3;
*/
boolean getOffline();
}
/**
* Protobuf type {@code cn.leancloud.push.lite.proto.DataCommand}
*/
public static final class DataCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.leancloud.push.lite.proto.DataCommand)
DataCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataCommand.newBuilder() to construct.
private DataCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataCommand() {
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
msg_ = java.util.Collections.emptyList();
offline_ = false;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataCommand(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
ids_.add(bs);
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
msg_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
msg_.add(
input.readMessage(cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.PARSER, extensionRegistry));
break;
}
case 24: {
bitField0_ |= 0x00000001;
offline_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = ids_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
msg_ = java.util.Collections.unmodifiableList(msg_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_DataCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_DataCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.DataCommand.class, cn.leancloud.push.lite.proto.Messages.DataCommand.Builder.class);
}
private int bitField0_;
public static final int IDS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList ids_;
/**
* repeated string ids = 1;
*/
public com.google.protobuf.ProtocolStringList
getIdsList() {
return ids_;
}
/**
* repeated string ids = 1;
*/
public int getIdsCount() {
return ids_.size();
}
/**
* repeated string ids = 1;
*/
public java.lang.String getIds(int index) {
return ids_.get(index);
}
/**
* repeated string ids = 1;
*/
public com.google.protobuf.ByteString
getIdsBytes(int index) {
return ids_.getByteString(index);
}
public static final int MSG_FIELD_NUMBER = 2;
private java.util.List msg_;
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public java.util.List getMsgList() {
return msg_;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public java.util.List extends cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder>
getMsgOrBuilderList() {
return msg_;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public int getMsgCount() {
return msg_.size();
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage getMsg(int index) {
return msg_.get(index);
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder getMsgOrBuilder(
int index) {
return msg_.get(index);
}
public static final int OFFLINE_FIELD_NUMBER = 3;
private boolean offline_;
/**
* optional bool offline = 3;
*/
public boolean hasOffline() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bool offline = 3;
*/
public boolean getOffline() {
return offline_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getMsgCount(); i++) {
if (!getMsg(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < ids_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i));
}
for (int i = 0; i < msg_.size(); i++) {
output.writeMessage(2, msg_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(3, offline_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < ids_.size(); i++) {
dataSize += computeStringSizeNoTag(ids_.getRaw(i));
}
size += dataSize;
size += 1 * getIdsList().size();
}
for (int i = 0; i < msg_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, msg_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, offline_);
}
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 cn.leancloud.push.lite.proto.Messages.DataCommand)) {
return super.equals(obj);
}
cn.leancloud.push.lite.proto.Messages.DataCommand other = (cn.leancloud.push.lite.proto.Messages.DataCommand) obj;
boolean result = true;
result = result && getIdsList()
.equals(other.getIdsList());
result = result && getMsgList()
.equals(other.getMsgList());
result = result && (hasOffline() == other.hasOffline());
if (hasOffline()) {
result = result && (getOffline()
== other.getOffline());
}
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 (getIdsCount() > 0) {
hash = (37 * hash) + IDS_FIELD_NUMBER;
hash = (53 * hash) + getIdsList().hashCode();
}
if (getMsgCount() > 0) {
hash = (37 * hash) + MSG_FIELD_NUMBER;
hash = (53 * hash) + getMsgList().hashCode();
}
if (hasOffline()) {
hash = (37 * hash) + OFFLINE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getOffline());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand 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 cn.leancloud.push.lite.proto.Messages.DataCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand 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 cn.leancloud.push.lite.proto.Messages.DataCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand 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(cn.leancloud.push.lite.proto.Messages.DataCommand 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 cn.leancloud.push.lite.proto.DataCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.leancloud.push.lite.proto.DataCommand)
cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_DataCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_DataCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.DataCommand.class, cn.leancloud.push.lite.proto.Messages.DataCommand.Builder.class);
}
// Construct using cn.leancloud.push.lite.proto.Messages.DataCommand.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMsgFieldBuilder();
}
}
public Builder clear() {
super.clear();
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
if (msgBuilder_ == null) {
msg_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
msgBuilder_.clear();
}
offline_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_DataCommand_descriptor;
}
public cn.leancloud.push.lite.proto.Messages.DataCommand getDefaultInstanceForType() {
return cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance();
}
public cn.leancloud.push.lite.proto.Messages.DataCommand build() {
cn.leancloud.push.lite.proto.Messages.DataCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.leancloud.push.lite.proto.Messages.DataCommand buildPartial() {
cn.leancloud.push.lite.proto.Messages.DataCommand result = new cn.leancloud.push.lite.proto.Messages.DataCommand(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = ids_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ids_ = ids_;
if (msgBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
msg_ = java.util.Collections.unmodifiableList(msg_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.msg_ = msg_;
} else {
result.msg_ = msgBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000001;
}
result.offline_ = offline_;
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 cn.leancloud.push.lite.proto.Messages.DataCommand) {
return mergeFrom((cn.leancloud.push.lite.proto.Messages.DataCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.leancloud.push.lite.proto.Messages.DataCommand other) {
if (other == cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance()) return this;
if (!other.ids_.isEmpty()) {
if (ids_.isEmpty()) {
ids_ = other.ids_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdsIsMutable();
ids_.addAll(other.ids_);
}
onChanged();
}
if (msgBuilder_ == null) {
if (!other.msg_.isEmpty()) {
if (msg_.isEmpty()) {
msg_ = other.msg_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMsgIsMutable();
msg_.addAll(other.msg_);
}
onChanged();
}
} else {
if (!other.msg_.isEmpty()) {
if (msgBuilder_.isEmpty()) {
msgBuilder_.dispose();
msgBuilder_ = null;
msg_ = other.msg_;
bitField0_ = (bitField0_ & ~0x00000002);
msgBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMsgFieldBuilder() : null;
} else {
msgBuilder_.addAllMessages(other.msg_);
}
}
}
if (other.hasOffline()) {
setOffline(other.getOffline());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getMsgCount(); i++) {
if (!getMsg(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.leancloud.push.lite.proto.Messages.DataCommand parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.leancloud.push.lite.proto.Messages.DataCommand) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
ids_ = new com.google.protobuf.LazyStringArrayList(ids_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string ids = 1;
*/
public com.google.protobuf.ProtocolStringList
getIdsList() {
return ids_.getUnmodifiableView();
}
/**
* repeated string ids = 1;
*/
public int getIdsCount() {
return ids_.size();
}
/**
* repeated string ids = 1;
*/
public java.lang.String getIds(int index) {
return ids_.get(index);
}
/**
* repeated string ids = 1;
*/
public com.google.protobuf.ByteString
getIdsBytes(int index) {
return ids_.getByteString(index);
}
/**
* repeated string ids = 1;
*/
public Builder setIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder addIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder addAllIds(
java.lang.Iterable values) {
ensureIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ids_);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder clearIds() {
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string ids = 1;
*/
public Builder addIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
return this;
}
private java.util.List msg_ =
java.util.Collections.emptyList();
private void ensureMsgIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
msg_ = new java.util.ArrayList(msg_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder, cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder> msgBuilder_;
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public java.util.List getMsgList() {
if (msgBuilder_ == null) {
return java.util.Collections.unmodifiableList(msg_);
} else {
return msgBuilder_.getMessageList();
}
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public int getMsgCount() {
if (msgBuilder_ == null) {
return msg_.size();
} else {
return msgBuilder_.getCount();
}
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage getMsg(int index) {
if (msgBuilder_ == null) {
return msg_.get(index);
} else {
return msgBuilder_.getMessage(index);
}
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder setMsg(
int index, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage value) {
if (msgBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMsgIsMutable();
msg_.set(index, value);
onChanged();
} else {
msgBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder setMsg(
int index, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder builderForValue) {
if (msgBuilder_ == null) {
ensureMsgIsMutable();
msg_.set(index, builderForValue.build());
onChanged();
} else {
msgBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder addMsg(cn.leancloud.push.lite.proto.Messages.JsonObjectMessage value) {
if (msgBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMsgIsMutable();
msg_.add(value);
onChanged();
} else {
msgBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder addMsg(
int index, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage value) {
if (msgBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMsgIsMutable();
msg_.add(index, value);
onChanged();
} else {
msgBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder addMsg(
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder builderForValue) {
if (msgBuilder_ == null) {
ensureMsgIsMutable();
msg_.add(builderForValue.build());
onChanged();
} else {
msgBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder addMsg(
int index, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder builderForValue) {
if (msgBuilder_ == null) {
ensureMsgIsMutable();
msg_.add(index, builderForValue.build());
onChanged();
} else {
msgBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder addAllMsg(
java.lang.Iterable extends cn.leancloud.push.lite.proto.Messages.JsonObjectMessage> values) {
if (msgBuilder_ == null) {
ensureMsgIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, msg_);
onChanged();
} else {
msgBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder clearMsg() {
if (msgBuilder_ == null) {
msg_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
msgBuilder_.clear();
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public Builder removeMsg(int index) {
if (msgBuilder_ == null) {
ensureMsgIsMutable();
msg_.remove(index);
onChanged();
} else {
msgBuilder_.remove(index);
}
return this;
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder getMsgBuilder(
int index) {
return getMsgFieldBuilder().getBuilder(index);
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder getMsgOrBuilder(
int index) {
if (msgBuilder_ == null) {
return msg_.get(index); } else {
return msgBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public java.util.List extends cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder>
getMsgOrBuilderList() {
if (msgBuilder_ != null) {
return msgBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(msg_);
}
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder addMsgBuilder() {
return getMsgFieldBuilder().addBuilder(
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.getDefaultInstance());
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder addMsgBuilder(
int index) {
return getMsgFieldBuilder().addBuilder(
index, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.getDefaultInstance());
}
/**
* repeated .cn.leancloud.push.lite.proto.JsonObjectMessage msg = 2;
*/
public java.util.List
getMsgBuilderList() {
return getMsgFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder, cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder>
getMsgFieldBuilder() {
if (msgBuilder_ == null) {
msgBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.JsonObjectMessage, cn.leancloud.push.lite.proto.Messages.JsonObjectMessage.Builder, cn.leancloud.push.lite.proto.Messages.JsonObjectMessageOrBuilder>(
msg_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
msg_ = null;
}
return msgBuilder_;
}
private boolean offline_ ;
/**
* optional bool offline = 3;
*/
public boolean hasOffline() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional bool offline = 3;
*/
public boolean getOffline() {
return offline_;
}
/**
* optional bool offline = 3;
*/
public Builder setOffline(boolean value) {
bitField0_ |= 0x00000004;
offline_ = value;
onChanged();
return this;
}
/**
* optional bool offline = 3;
*/
public Builder clearOffline() {
bitField0_ = (bitField0_ & ~0x00000004);
offline_ = false;
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:cn.leancloud.push.lite.proto.DataCommand)
}
// @@protoc_insertion_point(class_scope:cn.leancloud.push.lite.proto.DataCommand)
private static final cn.leancloud.push.lite.proto.Messages.DataCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.leancloud.push.lite.proto.Messages.DataCommand();
}
public static cn.leancloud.push.lite.proto.Messages.DataCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public DataCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataCommand(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public cn.leancloud.push.lite.proto.Messages.DataCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ErrorCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cn.leancloud.push.lite.proto.ErrorCommand)
com.google.protobuf.MessageOrBuilder {
/**
* required int32 code = 1;
*/
boolean hasCode();
/**
* required int32 code = 1;
*/
int getCode();
/**
* required string reason = 2;
*/
boolean hasReason();
/**
* required string reason = 2;
*/
java.lang.String getReason();
/**
* required string reason = 2;
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* optional int32 appCode = 3;
*/
boolean hasAppCode();
/**
* optional int32 appCode = 3;
*/
int getAppCode();
/**
* optional string detail = 4;
*/
boolean hasDetail();
/**
* optional string detail = 4;
*/
java.lang.String getDetail();
/**
* optional string detail = 4;
*/
com.google.protobuf.ByteString
getDetailBytes();
/**
* repeated string pids = 5;
*/
java.util.List
getPidsList();
/**
* repeated string pids = 5;
*/
int getPidsCount();
/**
* repeated string pids = 5;
*/
java.lang.String getPids(int index);
/**
* repeated string pids = 5;
*/
com.google.protobuf.ByteString
getPidsBytes(int index);
/**
* optional string appMsg = 6;
*/
boolean hasAppMsg();
/**
* optional string appMsg = 6;
*/
java.lang.String getAppMsg();
/**
* optional string appMsg = 6;
*/
com.google.protobuf.ByteString
getAppMsgBytes();
}
/**
* Protobuf type {@code cn.leancloud.push.lite.proto.ErrorCommand}
*/
public static final class ErrorCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.leancloud.push.lite.proto.ErrorCommand)
ErrorCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use ErrorCommand.newBuilder() to construct.
private ErrorCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ErrorCommand() {
code_ = 0;
reason_ = "";
appCode_ = 0;
detail_ = "";
pids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
appMsg_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ErrorCommand(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
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;
code_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
reason_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
appCode_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
detail_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
pids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
pids_.add(bs);
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
appMsg_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
pids_ = pids_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_ErrorCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_ErrorCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.ErrorCommand.class, cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder.class);
}
private int bitField0_;
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* required int32 code = 1;
*/
public boolean hasCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 code = 1;
*/
public int getCode() {
return code_;
}
public static final int REASON_FIELD_NUMBER = 2;
private volatile java.lang.Object reason_;
/**
* required string reason = 2;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string reason = 2;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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()) {
reason_ = s;
}
return s;
}
}
/**
* required string reason = 2;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int APPCODE_FIELD_NUMBER = 3;
private int appCode_;
/**
* optional int32 appCode = 3;
*/
public boolean hasAppCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 appCode = 3;
*/
public int getAppCode() {
return appCode_;
}
public static final int DETAIL_FIELD_NUMBER = 4;
private volatile java.lang.Object detail_;
/**
* optional string detail = 4;
*/
public boolean hasDetail() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string detail = 4;
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
}
}
/**
* optional string detail = 4;
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PIDS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList pids_;
/**
* repeated string pids = 5;
*/
public com.google.protobuf.ProtocolStringList
getPidsList() {
return pids_;
}
/**
* repeated string pids = 5;
*/
public int getPidsCount() {
return pids_.size();
}
/**
* repeated string pids = 5;
*/
public java.lang.String getPids(int index) {
return pids_.get(index);
}
/**
* repeated string pids = 5;
*/
public com.google.protobuf.ByteString
getPidsBytes(int index) {
return pids_.getByteString(index);
}
public static final int APPMSG_FIELD_NUMBER = 6;
private volatile java.lang.Object appMsg_;
/**
* optional string appMsg = 6;
*/
public boolean hasAppMsg() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional string appMsg = 6;
*/
public java.lang.String getAppMsg() {
java.lang.Object ref = appMsg_;
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()) {
appMsg_ = s;
}
return s;
}
}
/**
* optional string appMsg = 6;
*/
public com.google.protobuf.ByteString
getAppMsgBytes() {
java.lang.Object ref = appMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appMsg_ = 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 (!hasCode()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasReason()) {
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, code_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, appCode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, detail_);
}
for (int i = 0; i < pids_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pids_.getRaw(i));
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, appMsg_);
}
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, code_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, appCode_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, detail_);
}
{
int dataSize = 0;
for (int i = 0; i < pids_.size(); i++) {
dataSize += computeStringSizeNoTag(pids_.getRaw(i));
}
size += dataSize;
size += 1 * getPidsList().size();
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, appMsg_);
}
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 cn.leancloud.push.lite.proto.Messages.ErrorCommand)) {
return super.equals(obj);
}
cn.leancloud.push.lite.proto.Messages.ErrorCommand other = (cn.leancloud.push.lite.proto.Messages.ErrorCommand) obj;
boolean result = true;
result = result && (hasCode() == other.hasCode());
if (hasCode()) {
result = result && (getCode()
== other.getCode());
}
result = result && (hasReason() == other.hasReason());
if (hasReason()) {
result = result && getReason()
.equals(other.getReason());
}
result = result && (hasAppCode() == other.hasAppCode());
if (hasAppCode()) {
result = result && (getAppCode()
== other.getAppCode());
}
result = result && (hasDetail() == other.hasDetail());
if (hasDetail()) {
result = result && getDetail()
.equals(other.getDetail());
}
result = result && getPidsList()
.equals(other.getPidsList());
result = result && (hasAppMsg() == other.hasAppMsg());
if (hasAppMsg()) {
result = result && getAppMsg()
.equals(other.getAppMsg());
}
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 (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
}
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasAppCode()) {
hash = (37 * hash) + APPCODE_FIELD_NUMBER;
hash = (53 * hash) + getAppCode();
}
if (hasDetail()) {
hash = (37 * hash) + DETAIL_FIELD_NUMBER;
hash = (53 * hash) + getDetail().hashCode();
}
if (getPidsCount() > 0) {
hash = (37 * hash) + PIDS_FIELD_NUMBER;
hash = (53 * hash) + getPidsList().hashCode();
}
if (hasAppMsg()) {
hash = (37 * hash) + APPMSG_FIELD_NUMBER;
hash = (53 * hash) + getAppMsg().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand 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 cn.leancloud.push.lite.proto.Messages.ErrorCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand 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 cn.leancloud.push.lite.proto.Messages.ErrorCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand 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(cn.leancloud.push.lite.proto.Messages.ErrorCommand 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 cn.leancloud.push.lite.proto.ErrorCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.leancloud.push.lite.proto.ErrorCommand)
cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_ErrorCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_ErrorCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.ErrorCommand.class, cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder.class);
}
// Construct using cn.leancloud.push.lite.proto.Messages.ErrorCommand.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();
code_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
reason_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
appCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
detail_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
pids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
appMsg_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_ErrorCommand_descriptor;
}
public cn.leancloud.push.lite.proto.Messages.ErrorCommand getDefaultInstanceForType() {
return cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance();
}
public cn.leancloud.push.lite.proto.Messages.ErrorCommand build() {
cn.leancloud.push.lite.proto.Messages.ErrorCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.leancloud.push.lite.proto.Messages.ErrorCommand buildPartial() {
cn.leancloud.push.lite.proto.Messages.ErrorCommand result = new cn.leancloud.push.lite.proto.Messages.ErrorCommand(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.code_ = code_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.reason_ = reason_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.appCode_ = appCode_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.detail_ = detail_;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
pids_ = pids_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.pids_ = pids_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000010;
}
result.appMsg_ = appMsg_;
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 cn.leancloud.push.lite.proto.Messages.ErrorCommand) {
return mergeFrom((cn.leancloud.push.lite.proto.Messages.ErrorCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.leancloud.push.lite.proto.Messages.ErrorCommand other) {
if (other == cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance()) return this;
if (other.hasCode()) {
setCode(other.getCode());
}
if (other.hasReason()) {
bitField0_ |= 0x00000002;
reason_ = other.reason_;
onChanged();
}
if (other.hasAppCode()) {
setAppCode(other.getAppCode());
}
if (other.hasDetail()) {
bitField0_ |= 0x00000008;
detail_ = other.detail_;
onChanged();
}
if (!other.pids_.isEmpty()) {
if (pids_.isEmpty()) {
pids_ = other.pids_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePidsIsMutable();
pids_.addAll(other.pids_);
}
onChanged();
}
if (other.hasAppMsg()) {
bitField0_ |= 0x00000020;
appMsg_ = other.appMsg_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasCode()) {
return false;
}
if (!hasReason()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.leancloud.push.lite.proto.Messages.ErrorCommand parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.leancloud.push.lite.proto.Messages.ErrorCommand) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int code_ ;
/**
* required int32 code = 1;
*/
public boolean hasCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required int32 code = 1;
*/
public int getCode() {
return code_;
}
/**
* required int32 code = 1;
*/
public Builder setCode(int value) {
bitField0_ |= 0x00000001;
code_ = value;
onChanged();
return this;
}
/**
* required int32 code = 1;
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000001);
code_ = 0;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* required string reason = 2;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required string reason = 2;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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()) {
reason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string reason = 2;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string reason = 2;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
reason_ = value;
onChanged();
return this;
}
/**
* required string reason = 2;
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000002);
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* required string reason = 2;
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
reason_ = value;
onChanged();
return this;
}
private int appCode_ ;
/**
* optional int32 appCode = 3;
*/
public boolean hasAppCode() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int32 appCode = 3;
*/
public int getAppCode() {
return appCode_;
}
/**
* optional int32 appCode = 3;
*/
public Builder setAppCode(int value) {
bitField0_ |= 0x00000004;
appCode_ = value;
onChanged();
return this;
}
/**
* optional int32 appCode = 3;
*/
public Builder clearAppCode() {
bitField0_ = (bitField0_ & ~0x00000004);
appCode_ = 0;
onChanged();
return this;
}
private java.lang.Object detail_ = "";
/**
* optional string detail = 4;
*/
public boolean hasDetail() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string detail = 4;
*/
public java.lang.String getDetail() {
java.lang.Object ref = detail_;
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()) {
detail_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string detail = 4;
*/
public com.google.protobuf.ByteString
getDetailBytes() {
java.lang.Object ref = detail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
detail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string detail = 4;
*/
public Builder setDetail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
detail_ = value;
onChanged();
return this;
}
/**
* optional string detail = 4;
*/
public Builder clearDetail() {
bitField0_ = (bitField0_ & ~0x00000008);
detail_ = getDefaultInstance().getDetail();
onChanged();
return this;
}
/**
* optional string detail = 4;
*/
public Builder setDetailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
detail_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList pids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePidsIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
pids_ = new com.google.protobuf.LazyStringArrayList(pids_);
bitField0_ |= 0x00000010;
}
}
/**
* repeated string pids = 5;
*/
public com.google.protobuf.ProtocolStringList
getPidsList() {
return pids_.getUnmodifiableView();
}
/**
* repeated string pids = 5;
*/
public int getPidsCount() {
return pids_.size();
}
/**
* repeated string pids = 5;
*/
public java.lang.String getPids(int index) {
return pids_.get(index);
}
/**
* repeated string pids = 5;
*/
public com.google.protobuf.ByteString
getPidsBytes(int index) {
return pids_.getByteString(index);
}
/**
* repeated string pids = 5;
*/
public Builder setPids(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePidsIsMutable();
pids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string pids = 5;
*/
public Builder addPids(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePidsIsMutable();
pids_.add(value);
onChanged();
return this;
}
/**
* repeated string pids = 5;
*/
public Builder addAllPids(
java.lang.Iterable values) {
ensurePidsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pids_);
onChanged();
return this;
}
/**
* repeated string pids = 5;
*/
public Builder clearPids() {
pids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* repeated string pids = 5;
*/
public Builder addPidsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensurePidsIsMutable();
pids_.add(value);
onChanged();
return this;
}
private java.lang.Object appMsg_ = "";
/**
* optional string appMsg = 6;
*/
public boolean hasAppMsg() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string appMsg = 6;
*/
public java.lang.String getAppMsg() {
java.lang.Object ref = appMsg_;
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()) {
appMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string appMsg = 6;
*/
public com.google.protobuf.ByteString
getAppMsgBytes() {
java.lang.Object ref = appMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string appMsg = 6;
*/
public Builder setAppMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
appMsg_ = value;
onChanged();
return this;
}
/**
* optional string appMsg = 6;
*/
public Builder clearAppMsg() {
bitField0_ = (bitField0_ & ~0x00000020);
appMsg_ = getDefaultInstance().getAppMsg();
onChanged();
return this;
}
/**
* optional string appMsg = 6;
*/
public Builder setAppMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
appMsg_ = 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:cn.leancloud.push.lite.proto.ErrorCommand)
}
// @@protoc_insertion_point(class_scope:cn.leancloud.push.lite.proto.ErrorCommand)
private static final cn.leancloud.push.lite.proto.Messages.ErrorCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.leancloud.push.lite.proto.Messages.ErrorCommand();
}
public static cn.leancloud.push.lite.proto.Messages.ErrorCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ErrorCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ErrorCommand(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public cn.leancloud.push.lite.proto.Messages.ErrorCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AckCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cn.leancloud.push.lite.proto.AckCommand)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 code = 1;
*/
boolean hasCode();
/**
* optional int32 code = 1;
*/
int getCode();
/**
* optional string reason = 2;
*/
boolean hasReason();
/**
* optional string reason = 2;
*/
java.lang.String getReason();
/**
* optional string reason = 2;
*/
com.google.protobuf.ByteString
getReasonBytes();
/**
* optional string mid = 3;
*/
boolean hasMid();
/**
* optional string mid = 3;
*/
java.lang.String getMid();
/**
* optional string mid = 3;
*/
com.google.protobuf.ByteString
getMidBytes();
/**
* optional string cid = 4;
*/
boolean hasCid();
/**
* optional string cid = 4;
*/
java.lang.String getCid();
/**
* optional string cid = 4;
*/
com.google.protobuf.ByteString
getCidBytes();
/**
* optional int64 t = 5;
*/
boolean hasT();
/**
* optional int64 t = 5;
*/
long getT();
/**
* optional string uid = 6;
*/
boolean hasUid();
/**
* optional string uid = 6;
*/
java.lang.String getUid();
/**
* optional string uid = 6;
*/
com.google.protobuf.ByteString
getUidBytes();
/**
* optional int64 fromts = 7;
*/
boolean hasFromts();
/**
* optional int64 fromts = 7;
*/
long getFromts();
/**
* optional int64 tots = 8;
*/
boolean hasTots();
/**
* optional int64 tots = 8;
*/
long getTots();
/**
* optional string type = 9;
*/
boolean hasType();
/**
* optional string type = 9;
*/
java.lang.String getType();
/**
* optional string type = 9;
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* repeated string ids = 10;
*/
java.util.List
getIdsList();
/**
* repeated string ids = 10;
*/
int getIdsCount();
/**
* repeated string ids = 10;
*/
java.lang.String getIds(int index);
/**
* repeated string ids = 10;
*/
com.google.protobuf.ByteString
getIdsBytes(int index);
/**
* optional int32 appCode = 11;
*/
boolean hasAppCode();
/**
* optional int32 appCode = 11;
*/
int getAppCode();
/**
* optional string appMsg = 12;
*/
boolean hasAppMsg();
/**
* optional string appMsg = 12;
*/
java.lang.String getAppMsg();
/**
* optional string appMsg = 12;
*/
com.google.protobuf.ByteString
getAppMsgBytes();
}
/**
* Protobuf type {@code cn.leancloud.push.lite.proto.AckCommand}
*/
public static final class AckCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.leancloud.push.lite.proto.AckCommand)
AckCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use AckCommand.newBuilder() to construct.
private AckCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AckCommand() {
code_ = 0;
reason_ = "";
mid_ = "";
cid_ = "";
t_ = 0L;
uid_ = "";
fromts_ = 0L;
tots_ = 0L;
type_ = "";
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
appCode_ = 0;
appMsg_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AckCommand(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
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;
code_ = input.readInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
reason_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
mid_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
cid_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
t_ = input.readInt64();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
uid_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
fromts_ = input.readInt64();
break;
}
case 64: {
bitField0_ |= 0x00000080;
tots_ = input.readInt64();
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
type_ = bs;
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
ids_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
ids_.add(bs);
break;
}
case 88: {
bitField0_ |= 0x00000200;
appCode_ = input.readInt32();
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
appMsg_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
ids_ = ids_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_AckCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_AckCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.AckCommand.class, cn.leancloud.push.lite.proto.Messages.AckCommand.Builder.class);
}
private int bitField0_;
public static final int CODE_FIELD_NUMBER = 1;
private int code_;
/**
* optional int32 code = 1;
*/
public boolean hasCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 code = 1;
*/
public int getCode() {
return code_;
}
public static final int REASON_FIELD_NUMBER = 2;
private volatile java.lang.Object reason_;
/**
* optional string reason = 2;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string reason = 2;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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()) {
reason_ = s;
}
return s;
}
}
/**
* optional string reason = 2;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MID_FIELD_NUMBER = 3;
private volatile java.lang.Object mid_;
/**
* optional string mid = 3;
*/
public boolean hasMid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string mid = 3;
*/
public java.lang.String getMid() {
java.lang.Object ref = mid_;
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()) {
mid_ = s;
}
return s;
}
}
/**
* optional string mid = 3;
*/
public com.google.protobuf.ByteString
getMidBytes() {
java.lang.Object ref = mid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CID_FIELD_NUMBER = 4;
private volatile java.lang.Object cid_;
/**
* optional string cid = 4;
*/
public boolean hasCid() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string cid = 4;
*/
public java.lang.String getCid() {
java.lang.Object ref = cid_;
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()) {
cid_ = s;
}
return s;
}
}
/**
* optional string cid = 4;
*/
public com.google.protobuf.ByteString
getCidBytes() {
java.lang.Object ref = cid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int T_FIELD_NUMBER = 5;
private long t_;
/**
* optional int64 t = 5;
*/
public boolean hasT() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 t = 5;
*/
public long getT() {
return t_;
}
public static final int UID_FIELD_NUMBER = 6;
private volatile java.lang.Object uid_;
/**
* optional string uid = 6;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string uid = 6;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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()) {
uid_ = s;
}
return s;
}
}
/**
* optional string uid = 6;
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FROMTS_FIELD_NUMBER = 7;
private long fromts_;
/**
* optional int64 fromts = 7;
*/
public boolean hasFromts() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int64 fromts = 7;
*/
public long getFromts() {
return fromts_;
}
public static final int TOTS_FIELD_NUMBER = 8;
private long tots_;
/**
* optional int64 tots = 8;
*/
public boolean hasTots() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int64 tots = 8;
*/
public long getTots() {
return tots_;
}
public static final int TYPE_FIELD_NUMBER = 9;
private volatile java.lang.Object type_;
/**
* optional string type = 9;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string type = 9;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
}
}
/**
* optional string type = 9;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IDS_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList ids_;
/**
* repeated string ids = 10;
*/
public com.google.protobuf.ProtocolStringList
getIdsList() {
return ids_;
}
/**
* repeated string ids = 10;
*/
public int getIdsCount() {
return ids_.size();
}
/**
* repeated string ids = 10;
*/
public java.lang.String getIds(int index) {
return ids_.get(index);
}
/**
* repeated string ids = 10;
*/
public com.google.protobuf.ByteString
getIdsBytes(int index) {
return ids_.getByteString(index);
}
public static final int APPCODE_FIELD_NUMBER = 11;
private int appCode_;
/**
* optional int32 appCode = 11;
*/
public boolean hasAppCode() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional int32 appCode = 11;
*/
public int getAppCode() {
return appCode_;
}
public static final int APPMSG_FIELD_NUMBER = 12;
private volatile java.lang.Object appMsg_;
/**
* optional string appMsg = 12;
*/
public boolean hasAppMsg() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional string appMsg = 12;
*/
public java.lang.String getAppMsg() {
java.lang.Object ref = appMsg_;
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()) {
appMsg_ = s;
}
return s;
}
}
/**
* optional string appMsg = 12;
*/
public com.google.protobuf.ByteString
getAppMsgBytes() {
java.lang.Object ref = appMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appMsg_ = 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;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, code_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, reason_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mid_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, cid_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, t_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uid_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt64(7, fromts_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt64(8, tots_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, type_);
}
for (int i = 0; i < ids_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, ids_.getRaw(i));
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt32(11, appCode_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, appMsg_);
}
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, code_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, reason_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mid_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, cid_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(5, t_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uid_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, fromts_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, tots_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, type_);
}
{
int dataSize = 0;
for (int i = 0; i < ids_.size(); i++) {
dataSize += computeStringSizeNoTag(ids_.getRaw(i));
}
size += dataSize;
size += 1 * getIdsList().size();
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, appCode_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, appMsg_);
}
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 cn.leancloud.push.lite.proto.Messages.AckCommand)) {
return super.equals(obj);
}
cn.leancloud.push.lite.proto.Messages.AckCommand other = (cn.leancloud.push.lite.proto.Messages.AckCommand) obj;
boolean result = true;
result = result && (hasCode() == other.hasCode());
if (hasCode()) {
result = result && (getCode()
== other.getCode());
}
result = result && (hasReason() == other.hasReason());
if (hasReason()) {
result = result && getReason()
.equals(other.getReason());
}
result = result && (hasMid() == other.hasMid());
if (hasMid()) {
result = result && getMid()
.equals(other.getMid());
}
result = result && (hasCid() == other.hasCid());
if (hasCid()) {
result = result && getCid()
.equals(other.getCid());
}
result = result && (hasT() == other.hasT());
if (hasT()) {
result = result && (getT()
== other.getT());
}
result = result && (hasUid() == other.hasUid());
if (hasUid()) {
result = result && getUid()
.equals(other.getUid());
}
result = result && (hasFromts() == other.hasFromts());
if (hasFromts()) {
result = result && (getFromts()
== other.getFromts());
}
result = result && (hasTots() == other.hasTots());
if (hasTots()) {
result = result && (getTots()
== other.getTots());
}
result = result && (hasType() == other.hasType());
if (hasType()) {
result = result && getType()
.equals(other.getType());
}
result = result && getIdsList()
.equals(other.getIdsList());
result = result && (hasAppCode() == other.hasAppCode());
if (hasAppCode()) {
result = result && (getAppCode()
== other.getAppCode());
}
result = result && (hasAppMsg() == other.hasAppMsg());
if (hasAppMsg()) {
result = result && getAppMsg()
.equals(other.getAppMsg());
}
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 (hasCode()) {
hash = (37 * hash) + CODE_FIELD_NUMBER;
hash = (53 * hash) + getCode();
}
if (hasReason()) {
hash = (37 * hash) + REASON_FIELD_NUMBER;
hash = (53 * hash) + getReason().hashCode();
}
if (hasMid()) {
hash = (37 * hash) + MID_FIELD_NUMBER;
hash = (53 * hash) + getMid().hashCode();
}
if (hasCid()) {
hash = (37 * hash) + CID_FIELD_NUMBER;
hash = (53 * hash) + getCid().hashCode();
}
if (hasT()) {
hash = (37 * hash) + T_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getT());
}
if (hasUid()) {
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
}
if (hasFromts()) {
hash = (37 * hash) + FROMTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getFromts());
}
if (hasTots()) {
hash = (37 * hash) + TOTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTots());
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (getIdsCount() > 0) {
hash = (37 * hash) + IDS_FIELD_NUMBER;
hash = (53 * hash) + getIdsList().hashCode();
}
if (hasAppCode()) {
hash = (37 * hash) + APPCODE_FIELD_NUMBER;
hash = (53 * hash) + getAppCode();
}
if (hasAppMsg()) {
hash = (37 * hash) + APPMSG_FIELD_NUMBER;
hash = (53 * hash) + getAppMsg().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand 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 cn.leancloud.push.lite.proto.Messages.AckCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand 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 cn.leancloud.push.lite.proto.Messages.AckCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand 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(cn.leancloud.push.lite.proto.Messages.AckCommand 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 cn.leancloud.push.lite.proto.AckCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.leancloud.push.lite.proto.AckCommand)
cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_AckCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_AckCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.AckCommand.class, cn.leancloud.push.lite.proto.Messages.AckCommand.Builder.class);
}
// Construct using cn.leancloud.push.lite.proto.Messages.AckCommand.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();
code_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
reason_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
mid_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
cid_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
t_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
uid_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
fromts_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
tots_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
appCode_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
appMsg_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_AckCommand_descriptor;
}
public cn.leancloud.push.lite.proto.Messages.AckCommand getDefaultInstanceForType() {
return cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance();
}
public cn.leancloud.push.lite.proto.Messages.AckCommand build() {
cn.leancloud.push.lite.proto.Messages.AckCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.leancloud.push.lite.proto.Messages.AckCommand buildPartial() {
cn.leancloud.push.lite.proto.Messages.AckCommand result = new cn.leancloud.push.lite.proto.Messages.AckCommand(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.code_ = code_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.reason_ = reason_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.mid_ = mid_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.cid_ = cid_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.t_ = t_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.uid_ = uid_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.fromts_ = fromts_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.tots_ = tots_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.type_ = type_;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
ids_ = ids_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.ids_ = ids_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000200;
}
result.appCode_ = appCode_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000400;
}
result.appMsg_ = appMsg_;
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 cn.leancloud.push.lite.proto.Messages.AckCommand) {
return mergeFrom((cn.leancloud.push.lite.proto.Messages.AckCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.leancloud.push.lite.proto.Messages.AckCommand other) {
if (other == cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance()) return this;
if (other.hasCode()) {
setCode(other.getCode());
}
if (other.hasReason()) {
bitField0_ |= 0x00000002;
reason_ = other.reason_;
onChanged();
}
if (other.hasMid()) {
bitField0_ |= 0x00000004;
mid_ = other.mid_;
onChanged();
}
if (other.hasCid()) {
bitField0_ |= 0x00000008;
cid_ = other.cid_;
onChanged();
}
if (other.hasT()) {
setT(other.getT());
}
if (other.hasUid()) {
bitField0_ |= 0x00000020;
uid_ = other.uid_;
onChanged();
}
if (other.hasFromts()) {
setFromts(other.getFromts());
}
if (other.hasTots()) {
setTots(other.getTots());
}
if (other.hasType()) {
bitField0_ |= 0x00000100;
type_ = other.type_;
onChanged();
}
if (!other.ids_.isEmpty()) {
if (ids_.isEmpty()) {
ids_ = other.ids_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureIdsIsMutable();
ids_.addAll(other.ids_);
}
onChanged();
}
if (other.hasAppCode()) {
setAppCode(other.getAppCode());
}
if (other.hasAppMsg()) {
bitField0_ |= 0x00000800;
appMsg_ = other.appMsg_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.leancloud.push.lite.proto.Messages.AckCommand parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.leancloud.push.lite.proto.Messages.AckCommand) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int code_ ;
/**
* optional int32 code = 1;
*/
public boolean hasCode() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int32 code = 1;
*/
public int getCode() {
return code_;
}
/**
* optional int32 code = 1;
*/
public Builder setCode(int value) {
bitField0_ |= 0x00000001;
code_ = value;
onChanged();
return this;
}
/**
* optional int32 code = 1;
*/
public Builder clearCode() {
bitField0_ = (bitField0_ & ~0x00000001);
code_ = 0;
onChanged();
return this;
}
private java.lang.Object reason_ = "";
/**
* optional string reason = 2;
*/
public boolean hasReason() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string reason = 2;
*/
public java.lang.String getReason() {
java.lang.Object ref = reason_;
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()) {
reason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string reason = 2;
*/
public com.google.protobuf.ByteString
getReasonBytes() {
java.lang.Object ref = reason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
reason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string reason = 2;
*/
public Builder setReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
reason_ = value;
onChanged();
return this;
}
/**
* optional string reason = 2;
*/
public Builder clearReason() {
bitField0_ = (bitField0_ & ~0x00000002);
reason_ = getDefaultInstance().getReason();
onChanged();
return this;
}
/**
* optional string reason = 2;
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
reason_ = value;
onChanged();
return this;
}
private java.lang.Object mid_ = "";
/**
* optional string mid = 3;
*/
public boolean hasMid() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string mid = 3;
*/
public java.lang.String getMid() {
java.lang.Object ref = mid_;
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()) {
mid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mid = 3;
*/
public com.google.protobuf.ByteString
getMidBytes() {
java.lang.Object ref = mid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string mid = 3;
*/
public Builder setMid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
mid_ = value;
onChanged();
return this;
}
/**
* optional string mid = 3;
*/
public Builder clearMid() {
bitField0_ = (bitField0_ & ~0x00000004);
mid_ = getDefaultInstance().getMid();
onChanged();
return this;
}
/**
* optional string mid = 3;
*/
public Builder setMidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
mid_ = value;
onChanged();
return this;
}
private java.lang.Object cid_ = "";
/**
* optional string cid = 4;
*/
public boolean hasCid() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string cid = 4;
*/
public java.lang.String getCid() {
java.lang.Object ref = cid_;
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()) {
cid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string cid = 4;
*/
public com.google.protobuf.ByteString
getCidBytes() {
java.lang.Object ref = cid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
cid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string cid = 4;
*/
public Builder setCid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
cid_ = value;
onChanged();
return this;
}
/**
* optional string cid = 4;
*/
public Builder clearCid() {
bitField0_ = (bitField0_ & ~0x00000008);
cid_ = getDefaultInstance().getCid();
onChanged();
return this;
}
/**
* optional string cid = 4;
*/
public Builder setCidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
cid_ = value;
onChanged();
return this;
}
private long t_ ;
/**
* optional int64 t = 5;
*/
public boolean hasT() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 t = 5;
*/
public long getT() {
return t_;
}
/**
* optional int64 t = 5;
*/
public Builder setT(long value) {
bitField0_ |= 0x00000010;
t_ = value;
onChanged();
return this;
}
/**
* optional int64 t = 5;
*/
public Builder clearT() {
bitField0_ = (bitField0_ & ~0x00000010);
t_ = 0L;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
* optional string uid = 6;
*/
public boolean hasUid() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string uid = 6;
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
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()) {
uid_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string uid = 6;
*/
public com.google.protobuf.ByteString
getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string uid = 6;
*/
public Builder setUid(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
uid_ = value;
onChanged();
return this;
}
/**
* optional string uid = 6;
*/
public Builder clearUid() {
bitField0_ = (bitField0_ & ~0x00000020);
uid_ = getDefaultInstance().getUid();
onChanged();
return this;
}
/**
* optional string uid = 6;
*/
public Builder setUidBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
uid_ = value;
onChanged();
return this;
}
private long fromts_ ;
/**
* optional int64 fromts = 7;
*/
public boolean hasFromts() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int64 fromts = 7;
*/
public long getFromts() {
return fromts_;
}
/**
* optional int64 fromts = 7;
*/
public Builder setFromts(long value) {
bitField0_ |= 0x00000040;
fromts_ = value;
onChanged();
return this;
}
/**
* optional int64 fromts = 7;
*/
public Builder clearFromts() {
bitField0_ = (bitField0_ & ~0x00000040);
fromts_ = 0L;
onChanged();
return this;
}
private long tots_ ;
/**
* optional int64 tots = 8;
*/
public boolean hasTots() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int64 tots = 8;
*/
public long getTots() {
return tots_;
}
/**
* optional int64 tots = 8;
*/
public Builder setTots(long value) {
bitField0_ |= 0x00000080;
tots_ = value;
onChanged();
return this;
}
/**
* optional int64 tots = 8;
*/
public Builder clearTots() {
bitField0_ = (bitField0_ & ~0x00000080);
tots_ = 0L;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* optional string type = 9;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional string type = 9;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
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()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string type = 9;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string type = 9;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
type_ = value;
onChanged();
return this;
}
/**
* optional string type = 9;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000100);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* optional string type = 9;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
type_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIdsIsMutable() {
if (!((bitField0_ & 0x00000200) == 0x00000200)) {
ids_ = new com.google.protobuf.LazyStringArrayList(ids_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated string ids = 10;
*/
public com.google.protobuf.ProtocolStringList
getIdsList() {
return ids_.getUnmodifiableView();
}
/**
* repeated string ids = 10;
*/
public int getIdsCount() {
return ids_.size();
}
/**
* repeated string ids = 10;
*/
public java.lang.String getIds(int index) {
return ids_.get(index);
}
/**
* repeated string ids = 10;
*/
public com.google.protobuf.ByteString
getIdsBytes(int index) {
return ids_.getByteString(index);
}
/**
* repeated string ids = 10;
*/
public Builder setIds(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.set(index, value);
onChanged();
return this;
}
/**
* repeated string ids = 10;
*/
public Builder addIds(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
return this;
}
/**
* repeated string ids = 10;
*/
public Builder addAllIds(
java.lang.Iterable values) {
ensureIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, ids_);
onChanged();
return this;
}
/**
* repeated string ids = 10;
*/
public Builder clearIds() {
ids_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* repeated string ids = 10;
*/
public Builder addIdsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureIdsIsMutable();
ids_.add(value);
onChanged();
return this;
}
private int appCode_ ;
/**
* optional int32 appCode = 11;
*/
public boolean hasAppCode() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional int32 appCode = 11;
*/
public int getAppCode() {
return appCode_;
}
/**
* optional int32 appCode = 11;
*/
public Builder setAppCode(int value) {
bitField0_ |= 0x00000400;
appCode_ = value;
onChanged();
return this;
}
/**
* optional int32 appCode = 11;
*/
public Builder clearAppCode() {
bitField0_ = (bitField0_ & ~0x00000400);
appCode_ = 0;
onChanged();
return this;
}
private java.lang.Object appMsg_ = "";
/**
* optional string appMsg = 12;
*/
public boolean hasAppMsg() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional string appMsg = 12;
*/
public java.lang.String getAppMsg() {
java.lang.Object ref = appMsg_;
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()) {
appMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string appMsg = 12;
*/
public com.google.protobuf.ByteString
getAppMsgBytes() {
java.lang.Object ref = appMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string appMsg = 12;
*/
public Builder setAppMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
appMsg_ = value;
onChanged();
return this;
}
/**
* optional string appMsg = 12;
*/
public Builder clearAppMsg() {
bitField0_ = (bitField0_ & ~0x00000800);
appMsg_ = getDefaultInstance().getAppMsg();
onChanged();
return this;
}
/**
* optional string appMsg = 12;
*/
public Builder setAppMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
appMsg_ = 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:cn.leancloud.push.lite.proto.AckCommand)
}
// @@protoc_insertion_point(class_scope:cn.leancloud.push.lite.proto.AckCommand)
private static final cn.leancloud.push.lite.proto.Messages.AckCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.leancloud.push.lite.proto.Messages.AckCommand();
}
public static cn.leancloud.push.lite.proto.Messages.AckCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public AckCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AckCommand(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public cn.leancloud.push.lite.proto.Messages.AckCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GenericCommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:cn.leancloud.push.lite.proto.GenericCommand)
com.google.protobuf.MessageOrBuilder {
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
boolean hasCmd();
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
cn.leancloud.push.lite.proto.Messages.CommandType getCmd();
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
boolean hasOp();
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
cn.leancloud.push.lite.proto.Messages.OpType getOp();
/**
* optional string appId = 3;
*/
boolean hasAppId();
/**
* optional string appId = 3;
*/
java.lang.String getAppId();
/**
* optional string appId = 3;
*/
com.google.protobuf.ByteString
getAppIdBytes();
/**
* optional string peerId = 4;
*/
boolean hasPeerId();
/**
* optional string peerId = 4;
*/
java.lang.String getPeerId();
/**
* optional string peerId = 4;
*/
com.google.protobuf.ByteString
getPeerIdBytes();
/**
* optional int32 i = 5;
*/
boolean hasI();
/**
* optional int32 i = 5;
*/
int getI();
/**
* optional string installationId = 6;
*/
boolean hasInstallationId();
/**
* optional string installationId = 6;
*/
java.lang.String getInstallationId();
/**
* optional string installationId = 6;
*/
com.google.protobuf.ByteString
getInstallationIdBytes();
/**
* optional int32 priority = 7;
*/
boolean hasPriority();
/**
* optional int32 priority = 7;
*/
int getPriority();
/**
* optional int32 service = 8;
*/
boolean hasService();
/**
* optional int32 service = 8;
*/
int getService();
/**
* optional int64 serverTs = 9;
*/
boolean hasServerTs();
/**
* optional int64 serverTs = 9;
*/
long getServerTs();
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
boolean hasDataMessage();
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
cn.leancloud.push.lite.proto.Messages.DataCommand getDataMessage();
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder getDataMessageOrBuilder();
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
boolean hasErrorMessage();
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
cn.leancloud.push.lite.proto.Messages.ErrorCommand getErrorMessage();
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder getErrorMessageOrBuilder();
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
boolean hasAckMessage();
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
cn.leancloud.push.lite.proto.Messages.AckCommand getAckMessage();
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder getAckMessageOrBuilder();
}
/**
* Protobuf type {@code cn.leancloud.push.lite.proto.GenericCommand}
*/
public static final class GenericCommand extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cn.leancloud.push.lite.proto.GenericCommand)
GenericCommandOrBuilder {
private static final long serialVersionUID = 0L;
// Use GenericCommand.newBuilder() to construct.
private GenericCommand(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GenericCommand() {
cmd_ = 0;
op_ = 1;
appId_ = "";
peerId_ = "";
i_ = 0;
installationId_ = "";
priority_ = 0;
service_ = 0;
serverTs_ = 0L;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GenericCommand(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
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: {
int rawValue = input.readEnum();
cn.leancloud.push.lite.proto.Messages.CommandType value = cn.leancloud.push.lite.proto.Messages.CommandType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
cmd_ = rawValue;
}
break;
}
case 16: {
int rawValue = input.readEnum();
cn.leancloud.push.lite.proto.Messages.OpType value = cn.leancloud.push.lite.proto.Messages.OpType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
op_ = rawValue;
}
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
appId_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
peerId_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
i_ = input.readInt32();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
installationId_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
priority_ = input.readInt32();
break;
}
case 64: {
bitField0_ |= 0x00000080;
service_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
serverTs_ = input.readInt64();
break;
}
case 810: {
cn.leancloud.push.lite.proto.Messages.DataCommand.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) == 0x00000200)) {
subBuilder = dataMessage_.toBuilder();
}
dataMessage_ = input.readMessage(cn.leancloud.push.lite.proto.Messages.DataCommand.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataMessage_);
dataMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 826: {
cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) == 0x00000400)) {
subBuilder = errorMessage_.toBuilder();
}
errorMessage_ = input.readMessage(cn.leancloud.push.lite.proto.Messages.ErrorCommand.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorMessage_);
errorMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000400;
break;
}
case 842: {
cn.leancloud.push.lite.proto.Messages.AckCommand.Builder subBuilder = null;
if (((bitField0_ & 0x00000800) == 0x00000800)) {
subBuilder = ackMessage_.toBuilder();
}
ackMessage_ = input.readMessage(cn.leancloud.push.lite.proto.Messages.AckCommand.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ackMessage_);
ackMessage_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000800;
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 cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_GenericCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_GenericCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.GenericCommand.class, cn.leancloud.push.lite.proto.Messages.GenericCommand.Builder.class);
}
private int bitField0_;
public static final int CMD_FIELD_NUMBER = 1;
private int cmd_;
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
public boolean hasCmd() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
public cn.leancloud.push.lite.proto.Messages.CommandType getCmd() {
cn.leancloud.push.lite.proto.Messages.CommandType result = cn.leancloud.push.lite.proto.Messages.CommandType.valueOf(cmd_);
return result == null ? cn.leancloud.push.lite.proto.Messages.CommandType.session : result;
}
public static final int OP_FIELD_NUMBER = 2;
private int op_;
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
public boolean hasOp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
public cn.leancloud.push.lite.proto.Messages.OpType getOp() {
cn.leancloud.push.lite.proto.Messages.OpType result = cn.leancloud.push.lite.proto.Messages.OpType.valueOf(op_);
return result == null ? cn.leancloud.push.lite.proto.Messages.OpType.open : result;
}
public static final int APPID_FIELD_NUMBER = 3;
private volatile java.lang.Object appId_;
/**
* optional string appId = 3;
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string appId = 3;
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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()) {
appId_ = s;
}
return s;
}
}
/**
* optional string appId = 3;
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PEERID_FIELD_NUMBER = 4;
private volatile java.lang.Object peerId_;
/**
* optional string peerId = 4;
*/
public boolean hasPeerId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string peerId = 4;
*/
public java.lang.String getPeerId() {
java.lang.Object ref = peerId_;
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()) {
peerId_ = s;
}
return s;
}
}
/**
* optional string peerId = 4;
*/
public com.google.protobuf.ByteString
getPeerIdBytes() {
java.lang.Object ref = peerId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
peerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int I_FIELD_NUMBER = 5;
private int i_;
/**
* optional int32 i = 5;
*/
public boolean hasI() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 i = 5;
*/
public int getI() {
return i_;
}
public static final int INSTALLATIONID_FIELD_NUMBER = 6;
private volatile java.lang.Object installationId_;
/**
* optional string installationId = 6;
*/
public boolean hasInstallationId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string installationId = 6;
*/
public java.lang.String getInstallationId() {
java.lang.Object ref = installationId_;
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()) {
installationId_ = s;
}
return s;
}
}
/**
* optional string installationId = 6;
*/
public com.google.protobuf.ByteString
getInstallationIdBytes() {
java.lang.Object ref = installationId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
installationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PRIORITY_FIELD_NUMBER = 7;
private int priority_;
/**
* optional int32 priority = 7;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 priority = 7;
*/
public int getPriority() {
return priority_;
}
public static final int SERVICE_FIELD_NUMBER = 8;
private int service_;
/**
* optional int32 service = 8;
*/
public boolean hasService() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 service = 8;
*/
public int getService() {
return service_;
}
public static final int SERVERTS_FIELD_NUMBER = 9;
private long serverTs_;
/**
* optional int64 serverTs = 9;
*/
public boolean hasServerTs() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 serverTs = 9;
*/
public long getServerTs() {
return serverTs_;
}
public static final int DATAMESSAGE_FIELD_NUMBER = 101;
private cn.leancloud.push.lite.proto.Messages.DataCommand dataMessage_;
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public boolean hasDataMessage() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public cn.leancloud.push.lite.proto.Messages.DataCommand getDataMessage() {
return dataMessage_ == null ? cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance() : dataMessage_;
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder getDataMessageOrBuilder() {
return dataMessage_ == null ? cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance() : dataMessage_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 103;
private cn.leancloud.push.lite.proto.Messages.ErrorCommand errorMessage_;
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public cn.leancloud.push.lite.proto.Messages.ErrorCommand getErrorMessage() {
return errorMessage_ == null ? cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance() : errorMessage_;
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder getErrorMessageOrBuilder() {
return errorMessage_ == null ? cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance() : errorMessage_;
}
public static final int ACKMESSAGE_FIELD_NUMBER = 105;
private cn.leancloud.push.lite.proto.Messages.AckCommand ackMessage_;
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public boolean hasAckMessage() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public cn.leancloud.push.lite.proto.Messages.AckCommand getAckMessage() {
return ackMessage_ == null ? cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance() : ackMessage_;
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder getAckMessageOrBuilder() {
return ackMessage_ == null ? cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance() : ackMessage_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasDataMessage()) {
if (!getDataMessage().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasErrorMessage()) {
if (!getErrorMessage().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.writeEnum(1, cmd_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeEnum(2, op_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, appId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, peerId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, i_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, installationId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt32(7, priority_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeInt32(8, service_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeInt64(9, serverTs_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeMessage(101, getDataMessage());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeMessage(103, getErrorMessage());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeMessage(105, getAckMessage());
}
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
.computeEnumSize(1, cmd_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, op_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, appId_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, peerId_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, i_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, installationId_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, priority_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, service_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(9, serverTs_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(101, getDataMessage());
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(103, getErrorMessage());
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(105, getAckMessage());
}
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 cn.leancloud.push.lite.proto.Messages.GenericCommand)) {
return super.equals(obj);
}
cn.leancloud.push.lite.proto.Messages.GenericCommand other = (cn.leancloud.push.lite.proto.Messages.GenericCommand) obj;
boolean result = true;
result = result && (hasCmd() == other.hasCmd());
if (hasCmd()) {
result = result && cmd_ == other.cmd_;
}
result = result && (hasOp() == other.hasOp());
if (hasOp()) {
result = result && op_ == other.op_;
}
result = result && (hasAppId() == other.hasAppId());
if (hasAppId()) {
result = result && getAppId()
.equals(other.getAppId());
}
result = result && (hasPeerId() == other.hasPeerId());
if (hasPeerId()) {
result = result && getPeerId()
.equals(other.getPeerId());
}
result = result && (hasI() == other.hasI());
if (hasI()) {
result = result && (getI()
== other.getI());
}
result = result && (hasInstallationId() == other.hasInstallationId());
if (hasInstallationId()) {
result = result && getInstallationId()
.equals(other.getInstallationId());
}
result = result && (hasPriority() == other.hasPriority());
if (hasPriority()) {
result = result && (getPriority()
== other.getPriority());
}
result = result && (hasService() == other.hasService());
if (hasService()) {
result = result && (getService()
== other.getService());
}
result = result && (hasServerTs() == other.hasServerTs());
if (hasServerTs()) {
result = result && (getServerTs()
== other.getServerTs());
}
result = result && (hasDataMessage() == other.hasDataMessage());
if (hasDataMessage()) {
result = result && getDataMessage()
.equals(other.getDataMessage());
}
result = result && (hasErrorMessage() == other.hasErrorMessage());
if (hasErrorMessage()) {
result = result && getErrorMessage()
.equals(other.getErrorMessage());
}
result = result && (hasAckMessage() == other.hasAckMessage());
if (hasAckMessage()) {
result = result && getAckMessage()
.equals(other.getAckMessage());
}
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 (hasCmd()) {
hash = (37 * hash) + CMD_FIELD_NUMBER;
hash = (53 * hash) + cmd_;
}
if (hasOp()) {
hash = (37 * hash) + OP_FIELD_NUMBER;
hash = (53 * hash) + op_;
}
if (hasAppId()) {
hash = (37 * hash) + APPID_FIELD_NUMBER;
hash = (53 * hash) + getAppId().hashCode();
}
if (hasPeerId()) {
hash = (37 * hash) + PEERID_FIELD_NUMBER;
hash = (53 * hash) + getPeerId().hashCode();
}
if (hasI()) {
hash = (37 * hash) + I_FIELD_NUMBER;
hash = (53 * hash) + getI();
}
if (hasInstallationId()) {
hash = (37 * hash) + INSTALLATIONID_FIELD_NUMBER;
hash = (53 * hash) + getInstallationId().hashCode();
}
if (hasPriority()) {
hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
hash = (53 * hash) + getPriority();
}
if (hasService()) {
hash = (37 * hash) + SERVICE_FIELD_NUMBER;
hash = (53 * hash) + getService();
}
if (hasServerTs()) {
hash = (37 * hash) + SERVERTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getServerTs());
}
if (hasDataMessage()) {
hash = (37 * hash) + DATAMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getDataMessage().hashCode();
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
if (hasAckMessage()) {
hash = (37 * hash) + ACKMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getAckMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand 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 cn.leancloud.push.lite.proto.Messages.GenericCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand 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 cn.leancloud.push.lite.proto.Messages.GenericCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand 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(cn.leancloud.push.lite.proto.Messages.GenericCommand 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 cn.leancloud.push.lite.proto.GenericCommand}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cn.leancloud.push.lite.proto.GenericCommand)
cn.leancloud.push.lite.proto.Messages.GenericCommandOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_GenericCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_GenericCommand_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cn.leancloud.push.lite.proto.Messages.GenericCommand.class, cn.leancloud.push.lite.proto.Messages.GenericCommand.Builder.class);
}
// Construct using cn.leancloud.push.lite.proto.Messages.GenericCommand.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataMessageFieldBuilder();
getErrorMessageFieldBuilder();
getAckMessageFieldBuilder();
}
}
public Builder clear() {
super.clear();
cmd_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
op_ = 1;
bitField0_ = (bitField0_ & ~0x00000002);
appId_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
peerId_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
i_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
installationId_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
priority_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
service_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
serverTs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
if (dataMessageBuilder_ == null) {
dataMessage_ = null;
} else {
dataMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
if (errorMessageBuilder_ == null) {
errorMessage_ = null;
} else {
errorMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (ackMessageBuilder_ == null) {
ackMessage_ = null;
} else {
ackMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cn.leancloud.push.lite.proto.Messages.internal_static_cn_leancloud_push_lite_proto_GenericCommand_descriptor;
}
public cn.leancloud.push.lite.proto.Messages.GenericCommand getDefaultInstanceForType() {
return cn.leancloud.push.lite.proto.Messages.GenericCommand.getDefaultInstance();
}
public cn.leancloud.push.lite.proto.Messages.GenericCommand build() {
cn.leancloud.push.lite.proto.Messages.GenericCommand result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public cn.leancloud.push.lite.proto.Messages.GenericCommand buildPartial() {
cn.leancloud.push.lite.proto.Messages.GenericCommand result = new cn.leancloud.push.lite.proto.Messages.GenericCommand(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.cmd_ = cmd_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.op_ = op_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.appId_ = appId_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.peerId_ = peerId_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.i_ = i_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.installationId_ = installationId_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.priority_ = priority_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.service_ = service_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.serverTs_ = serverTs_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
if (dataMessageBuilder_ == null) {
result.dataMessage_ = dataMessage_;
} else {
result.dataMessage_ = dataMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
if (errorMessageBuilder_ == null) {
result.errorMessage_ = errorMessage_;
} else {
result.errorMessage_ = errorMessageBuilder_.build();
}
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
if (ackMessageBuilder_ == null) {
result.ackMessage_ = ackMessage_;
} else {
result.ackMessage_ = ackMessageBuilder_.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 cn.leancloud.push.lite.proto.Messages.GenericCommand) {
return mergeFrom((cn.leancloud.push.lite.proto.Messages.GenericCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cn.leancloud.push.lite.proto.Messages.GenericCommand other) {
if (other == cn.leancloud.push.lite.proto.Messages.GenericCommand.getDefaultInstance()) return this;
if (other.hasCmd()) {
setCmd(other.getCmd());
}
if (other.hasOp()) {
setOp(other.getOp());
}
if (other.hasAppId()) {
bitField0_ |= 0x00000004;
appId_ = other.appId_;
onChanged();
}
if (other.hasPeerId()) {
bitField0_ |= 0x00000008;
peerId_ = other.peerId_;
onChanged();
}
if (other.hasI()) {
setI(other.getI());
}
if (other.hasInstallationId()) {
bitField0_ |= 0x00000020;
installationId_ = other.installationId_;
onChanged();
}
if (other.hasPriority()) {
setPriority(other.getPriority());
}
if (other.hasService()) {
setService(other.getService());
}
if (other.hasServerTs()) {
setServerTs(other.getServerTs());
}
if (other.hasDataMessage()) {
mergeDataMessage(other.getDataMessage());
}
if (other.hasErrorMessage()) {
mergeErrorMessage(other.getErrorMessage());
}
if (other.hasAckMessage()) {
mergeAckMessage(other.getAckMessage());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (hasDataMessage()) {
if (!getDataMessage().isInitialized()) {
return false;
}
}
if (hasErrorMessage()) {
if (!getErrorMessage().isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cn.leancloud.push.lite.proto.Messages.GenericCommand parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cn.leancloud.push.lite.proto.Messages.GenericCommand) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int cmd_ = 0;
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
public boolean hasCmd() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
public cn.leancloud.push.lite.proto.Messages.CommandType getCmd() {
cn.leancloud.push.lite.proto.Messages.CommandType result = cn.leancloud.push.lite.proto.Messages.CommandType.valueOf(cmd_);
return result == null ? cn.leancloud.push.lite.proto.Messages.CommandType.session : result;
}
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
public Builder setCmd(cn.leancloud.push.lite.proto.Messages.CommandType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
cmd_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.CommandType cmd = 1;
*/
public Builder clearCmd() {
bitField0_ = (bitField0_ & ~0x00000001);
cmd_ = 0;
onChanged();
return this;
}
private int op_ = 1;
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
public boolean hasOp() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
public cn.leancloud.push.lite.proto.Messages.OpType getOp() {
cn.leancloud.push.lite.proto.Messages.OpType result = cn.leancloud.push.lite.proto.Messages.OpType.valueOf(op_);
return result == null ? cn.leancloud.push.lite.proto.Messages.OpType.open : result;
}
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
public Builder setOp(cn.leancloud.push.lite.proto.Messages.OpType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
op_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.OpType op = 2;
*/
public Builder clearOp() {
bitField0_ = (bitField0_ & ~0x00000002);
op_ = 1;
onChanged();
return this;
}
private java.lang.Object appId_ = "";
/**
* optional string appId = 3;
*/
public boolean hasAppId() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string appId = 3;
*/
public java.lang.String getAppId() {
java.lang.Object ref = appId_;
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()) {
appId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string appId = 3;
*/
public com.google.protobuf.ByteString
getAppIdBytes() {
java.lang.Object ref = appId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
appId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string appId = 3;
*/
public Builder setAppId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appId_ = value;
onChanged();
return this;
}
/**
* optional string appId = 3;
*/
public Builder clearAppId() {
bitField0_ = (bitField0_ & ~0x00000004);
appId_ = getDefaultInstance().getAppId();
onChanged();
return this;
}
/**
* optional string appId = 3;
*/
public Builder setAppIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
appId_ = value;
onChanged();
return this;
}
private java.lang.Object peerId_ = "";
/**
* optional string peerId = 4;
*/
public boolean hasPeerId() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string peerId = 4;
*/
public java.lang.String getPeerId() {
java.lang.Object ref = peerId_;
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()) {
peerId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string peerId = 4;
*/
public com.google.protobuf.ByteString
getPeerIdBytes() {
java.lang.Object ref = peerId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
peerId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string peerId = 4;
*/
public Builder setPeerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
peerId_ = value;
onChanged();
return this;
}
/**
* optional string peerId = 4;
*/
public Builder clearPeerId() {
bitField0_ = (bitField0_ & ~0x00000008);
peerId_ = getDefaultInstance().getPeerId();
onChanged();
return this;
}
/**
* optional string peerId = 4;
*/
public Builder setPeerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
peerId_ = value;
onChanged();
return this;
}
private int i_ ;
/**
* optional int32 i = 5;
*/
public boolean hasI() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int32 i = 5;
*/
public int getI() {
return i_;
}
/**
* optional int32 i = 5;
*/
public Builder setI(int value) {
bitField0_ |= 0x00000010;
i_ = value;
onChanged();
return this;
}
/**
* optional int32 i = 5;
*/
public Builder clearI() {
bitField0_ = (bitField0_ & ~0x00000010);
i_ = 0;
onChanged();
return this;
}
private java.lang.Object installationId_ = "";
/**
* optional string installationId = 6;
*/
public boolean hasInstallationId() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional string installationId = 6;
*/
public java.lang.String getInstallationId() {
java.lang.Object ref = installationId_;
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()) {
installationId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string installationId = 6;
*/
public com.google.protobuf.ByteString
getInstallationIdBytes() {
java.lang.Object ref = installationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
installationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string installationId = 6;
*/
public Builder setInstallationId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
installationId_ = value;
onChanged();
return this;
}
/**
* optional string installationId = 6;
*/
public Builder clearInstallationId() {
bitField0_ = (bitField0_ & ~0x00000020);
installationId_ = getDefaultInstance().getInstallationId();
onChanged();
return this;
}
/**
* optional string installationId = 6;
*/
public Builder setInstallationIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
installationId_ = value;
onChanged();
return this;
}
private int priority_ ;
/**
* optional int32 priority = 7;
*/
public boolean hasPriority() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* optional int32 priority = 7;
*/
public int getPriority() {
return priority_;
}
/**
* optional int32 priority = 7;
*/
public Builder setPriority(int value) {
bitField0_ |= 0x00000040;
priority_ = value;
onChanged();
return this;
}
/**
* optional int32 priority = 7;
*/
public Builder clearPriority() {
bitField0_ = (bitField0_ & ~0x00000040);
priority_ = 0;
onChanged();
return this;
}
private int service_ ;
/**
* optional int32 service = 8;
*/
public boolean hasService() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* optional int32 service = 8;
*/
public int getService() {
return service_;
}
/**
* optional int32 service = 8;
*/
public Builder setService(int value) {
bitField0_ |= 0x00000080;
service_ = value;
onChanged();
return this;
}
/**
* optional int32 service = 8;
*/
public Builder clearService() {
bitField0_ = (bitField0_ & ~0x00000080);
service_ = 0;
onChanged();
return this;
}
private long serverTs_ ;
/**
* optional int64 serverTs = 9;
*/
public boolean hasServerTs() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* optional int64 serverTs = 9;
*/
public long getServerTs() {
return serverTs_;
}
/**
* optional int64 serverTs = 9;
*/
public Builder setServerTs(long value) {
bitField0_ |= 0x00000100;
serverTs_ = value;
onChanged();
return this;
}
/**
* optional int64 serverTs = 9;
*/
public Builder clearServerTs() {
bitField0_ = (bitField0_ & ~0x00000100);
serverTs_ = 0L;
onChanged();
return this;
}
private cn.leancloud.push.lite.proto.Messages.DataCommand dataMessage_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.DataCommand, cn.leancloud.push.lite.proto.Messages.DataCommand.Builder, cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder> dataMessageBuilder_;
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public boolean hasDataMessage() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public cn.leancloud.push.lite.proto.Messages.DataCommand getDataMessage() {
if (dataMessageBuilder_ == null) {
return dataMessage_ == null ? cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance() : dataMessage_;
} else {
return dataMessageBuilder_.getMessage();
}
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public Builder setDataMessage(cn.leancloud.push.lite.proto.Messages.DataCommand value) {
if (dataMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataMessage_ = value;
onChanged();
} else {
dataMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public Builder setDataMessage(
cn.leancloud.push.lite.proto.Messages.DataCommand.Builder builderForValue) {
if (dataMessageBuilder_ == null) {
dataMessage_ = builderForValue.build();
onChanged();
} else {
dataMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public Builder mergeDataMessage(cn.leancloud.push.lite.proto.Messages.DataCommand value) {
if (dataMessageBuilder_ == null) {
if (((bitField0_ & 0x00000200) == 0x00000200) &&
dataMessage_ != null &&
dataMessage_ != cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance()) {
dataMessage_ =
cn.leancloud.push.lite.proto.Messages.DataCommand.newBuilder(dataMessage_).mergeFrom(value).buildPartial();
} else {
dataMessage_ = value;
}
onChanged();
} else {
dataMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public Builder clearDataMessage() {
if (dataMessageBuilder_ == null) {
dataMessage_ = null;
onChanged();
} else {
dataMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public cn.leancloud.push.lite.proto.Messages.DataCommand.Builder getDataMessageBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getDataMessageFieldBuilder().getBuilder();
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
public cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder getDataMessageOrBuilder() {
if (dataMessageBuilder_ != null) {
return dataMessageBuilder_.getMessageOrBuilder();
} else {
return dataMessage_ == null ?
cn.leancloud.push.lite.proto.Messages.DataCommand.getDefaultInstance() : dataMessage_;
}
}
/**
* optional .cn.leancloud.push.lite.proto.DataCommand dataMessage = 101;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.DataCommand, cn.leancloud.push.lite.proto.Messages.DataCommand.Builder, cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder>
getDataMessageFieldBuilder() {
if (dataMessageBuilder_ == null) {
dataMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.DataCommand, cn.leancloud.push.lite.proto.Messages.DataCommand.Builder, cn.leancloud.push.lite.proto.Messages.DataCommandOrBuilder>(
getDataMessage(),
getParentForChildren(),
isClean());
dataMessage_ = null;
}
return dataMessageBuilder_;
}
private cn.leancloud.push.lite.proto.Messages.ErrorCommand errorMessage_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.ErrorCommand, cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder, cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder> errorMessageBuilder_;
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public cn.leancloud.push.lite.proto.Messages.ErrorCommand getErrorMessage() {
if (errorMessageBuilder_ == null) {
return errorMessage_ == null ? cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance() : errorMessage_;
} else {
return errorMessageBuilder_.getMessage();
}
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public Builder setErrorMessage(cn.leancloud.push.lite.proto.Messages.ErrorCommand value) {
if (errorMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
} else {
errorMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public Builder setErrorMessage(
cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder builderForValue) {
if (errorMessageBuilder_ == null) {
errorMessage_ = builderForValue.build();
onChanged();
} else {
errorMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public Builder mergeErrorMessage(cn.leancloud.push.lite.proto.Messages.ErrorCommand value) {
if (errorMessageBuilder_ == null) {
if (((bitField0_ & 0x00000400) == 0x00000400) &&
errorMessage_ != null &&
errorMessage_ != cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance()) {
errorMessage_ =
cn.leancloud.push.lite.proto.Messages.ErrorCommand.newBuilder(errorMessage_).mergeFrom(value).buildPartial();
} else {
errorMessage_ = value;
}
onChanged();
} else {
errorMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public Builder clearErrorMessage() {
if (errorMessageBuilder_ == null) {
errorMessage_ = null;
onChanged();
} else {
errorMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder getErrorMessageBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getErrorMessageFieldBuilder().getBuilder();
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
public cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder getErrorMessageOrBuilder() {
if (errorMessageBuilder_ != null) {
return errorMessageBuilder_.getMessageOrBuilder();
} else {
return errorMessage_ == null ?
cn.leancloud.push.lite.proto.Messages.ErrorCommand.getDefaultInstance() : errorMessage_;
}
}
/**
* optional .cn.leancloud.push.lite.proto.ErrorCommand errorMessage = 103;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.ErrorCommand, cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder, cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder>
getErrorMessageFieldBuilder() {
if (errorMessageBuilder_ == null) {
errorMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.ErrorCommand, cn.leancloud.push.lite.proto.Messages.ErrorCommand.Builder, cn.leancloud.push.lite.proto.Messages.ErrorCommandOrBuilder>(
getErrorMessage(),
getParentForChildren(),
isClean());
errorMessage_ = null;
}
return errorMessageBuilder_;
}
private cn.leancloud.push.lite.proto.Messages.AckCommand ackMessage_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.AckCommand, cn.leancloud.push.lite.proto.Messages.AckCommand.Builder, cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder> ackMessageBuilder_;
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public boolean hasAckMessage() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public cn.leancloud.push.lite.proto.Messages.AckCommand getAckMessage() {
if (ackMessageBuilder_ == null) {
return ackMessage_ == null ? cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance() : ackMessage_;
} else {
return ackMessageBuilder_.getMessage();
}
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public Builder setAckMessage(cn.leancloud.push.lite.proto.Messages.AckCommand value) {
if (ackMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ackMessage_ = value;
onChanged();
} else {
ackMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public Builder setAckMessage(
cn.leancloud.push.lite.proto.Messages.AckCommand.Builder builderForValue) {
if (ackMessageBuilder_ == null) {
ackMessage_ = builderForValue.build();
onChanged();
} else {
ackMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public Builder mergeAckMessage(cn.leancloud.push.lite.proto.Messages.AckCommand value) {
if (ackMessageBuilder_ == null) {
if (((bitField0_ & 0x00000800) == 0x00000800) &&
ackMessage_ != null &&
ackMessage_ != cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance()) {
ackMessage_ =
cn.leancloud.push.lite.proto.Messages.AckCommand.newBuilder(ackMessage_).mergeFrom(value).buildPartial();
} else {
ackMessage_ = value;
}
onChanged();
} else {
ackMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public Builder clearAckMessage() {
if (ackMessageBuilder_ == null) {
ackMessage_ = null;
onChanged();
} else {
ackMessageBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public cn.leancloud.push.lite.proto.Messages.AckCommand.Builder getAckMessageBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getAckMessageFieldBuilder().getBuilder();
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
public cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder getAckMessageOrBuilder() {
if (ackMessageBuilder_ != null) {
return ackMessageBuilder_.getMessageOrBuilder();
} else {
return ackMessage_ == null ?
cn.leancloud.push.lite.proto.Messages.AckCommand.getDefaultInstance() : ackMessage_;
}
}
/**
* optional .cn.leancloud.push.lite.proto.AckCommand ackMessage = 105;
*/
private com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.AckCommand, cn.leancloud.push.lite.proto.Messages.AckCommand.Builder, cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder>
getAckMessageFieldBuilder() {
if (ackMessageBuilder_ == null) {
ackMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
cn.leancloud.push.lite.proto.Messages.AckCommand, cn.leancloud.push.lite.proto.Messages.AckCommand.Builder, cn.leancloud.push.lite.proto.Messages.AckCommandOrBuilder>(
getAckMessage(),
getParentForChildren(),
isClean());
ackMessage_ = null;
}
return ackMessageBuilder_;
}
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:cn.leancloud.push.lite.proto.GenericCommand)
}
// @@protoc_insertion_point(class_scope:cn.leancloud.push.lite.proto.GenericCommand)
private static final cn.leancloud.push.lite.proto.Messages.GenericCommand DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cn.leancloud.push.lite.proto.Messages.GenericCommand();
}
public static cn.leancloud.push.lite.proto.Messages.GenericCommand getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public GenericCommand parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GenericCommand(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public cn.leancloud.push.lite.proto.Messages.GenericCommand getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cn_leancloud_push_lite_proto_DataCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cn_leancloud_push_lite_proto_DataCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cn_leancloud_push_lite_proto_ErrorCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cn_leancloud_push_lite_proto_ErrorCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cn_leancloud_push_lite_proto_AckCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cn_leancloud_push_lite_proto_AckCommand_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cn_leancloud_push_lite_proto_GenericCommand_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cn_leancloud_push_lite_proto_GenericCommand_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\016messages.proto\022\034cn.leancloud.push.lite" +
".proto\"!\n\021JsonObjectMessage\022\014\n\004data\030\001 \002(" +
"\t\"i\n\013DataCommand\022\013\n\003ids\030\001 \003(\t\022<\n\003msg\030\002 \003" +
"(\0132/.cn.leancloud.push.lite.proto.JsonOb" +
"jectMessage\022\017\n\007offline\030\003 \001(\010\"k\n\014ErrorCom" +
"mand\022\014\n\004code\030\001 \002(\005\022\016\n\006reason\030\002 \002(\t\022\017\n\007ap" +
"pCode\030\003 \001(\005\022\016\n\006detail\030\004 \001(\t\022\014\n\004pids\030\005 \003(" +
"\t\022\016\n\006appMsg\030\006 \001(\t\"\266\001\n\nAckCommand\022\014\n\004code" +
"\030\001 \001(\005\022\016\n\006reason\030\002 \001(\t\022\013\n\003mid\030\003 \001(\t\022\013\n\003c" +
"id\030\004 \001(\t\022\t\n\001t\030\005 \001(\003\022\013\n\003uid\030\006 \001(\t\022\016\n\006from",
"ts\030\007 \001(\003\022\014\n\004tots\030\010 \001(\003\022\014\n\004type\030\t \001(\t\022\013\n\003" +
"ids\030\n \003(\t\022\017\n\007appCode\030\013 \001(\005\022\016\n\006appMsg\030\014 \001" +
"(\t\"\261\003\n\016GenericCommand\0226\n\003cmd\030\001 \001(\0162).cn." +
"leancloud.push.lite.proto.CommandType\0220\n" +
"\002op\030\002 \001(\0162$.cn.leancloud.push.lite.proto" +
".OpType\022\r\n\005appId\030\003 \001(\t\022\016\n\006peerId\030\004 \001(\t\022\t" +
"\n\001i\030\005 \001(\005\022\026\n\016installationId\030\006 \001(\t\022\020\n\010pri" +
"ority\030\007 \001(\005\022\017\n\007service\030\010 \001(\005\022\020\n\010serverTs" +
"\030\t \001(\003\022>\n\013dataMessage\030e \001(\0132).cn.leanclo" +
"ud.push.lite.proto.DataCommand\022@\n\014errorM",
"essage\030g \001(\0132*.cn.leancloud.push.lite.pr" +
"oto.ErrorCommand\022<\n\nackMessage\030i \001(\0132(.c" +
"n.leancloud.push.lite.proto.AckCommand*\213" +
"\002\n\013CommandType\022\013\n\007session\020\000\022\010\n\004conv\020\001\022\n\n" +
"\006direct\020\002\022\007\n\003ack\020\003\022\007\n\003rcp\020\004\022\n\n\006unread\020\005\022" +
"\010\n\004logs\020\006\022\t\n\005error\020\007\022\t\n\005login\020\010\022\010\n\004data\020" +
"\t\022\010\n\004room\020\n\022\010\n\004read\020\013\022\014\n\010presence\020\014\022\n\n\006r" +
"eport\020\r\022\010\n\004echo\020\016\022\014\n\010loggedin\020\017\022\n\n\006logou" +
"t\020\020\022\r\n\tloggedout\020\021\022\t\n\005patch\020\022\022\n\n\006pubsub\020" +
"\023\022\r\n\tblacklist\020\024\022\n\n\006goaway\020\025*\215\010\n\006OpType\022",
"\010\n\004open\020\001\022\007\n\003add\020\002\022\n\n\006remove\020\003\022\t\n\005close\020" +
"\004\022\n\n\006opened\020\005\022\n\n\006closed\020\006\022\t\n\005query\020\007\022\020\n\014" +
"query_result\020\010\022\014\n\010conflict\020\t\022\t\n\005added\020\n\022" +
"\013\n\007removed\020\013\022\013\n\007refresh\020\014\022\r\n\trefreshed\020\r" +
"\022\t\n\005start\020\036\022\013\n\007started\020\037\022\n\n\006joined\020 \022\022\n\016" +
"members_joined\020!\022\010\n\004left\020\'\022\020\n\014members_le" +
"ft\020(\022\013\n\007results\020*\022\t\n\005count\020+\022\n\n\006result\020," +
"\022\n\n\006update\020-\022\013\n\007updated\020.\022\010\n\004mute\020/\022\n\n\006u" +
"nmute\0200\022\n\n\006status\0201\022\013\n\007members\0202\022\014\n\010max_" +
"read\0203\022\r\n\tis_member\0204\022\026\n\022member_info_upd",
"ate\0205\022\027\n\023member_info_updated\0206\022\027\n\023member" +
"_info_changed\0207\022\010\n\004join\020P\022\n\n\006invite\020Q\022\t\n" +
"\005leave\020R\022\010\n\004kick\020S\022\n\n\006reject\020T\022\013\n\007invite" +
"d\020U\022\n\n\006kicked\020V\022\n\n\006upload\020d\022\014\n\010uploaded\020" +
"e\022\r\n\tsubscribe\020x\022\016\n\nsubscribed\020y\022\017\n\013unsu" +
"bscribe\020z\022\020\n\014unsubscribed\020{\022\021\n\ris_subscr" +
"ibed\020|\022\013\n\006modify\020\226\001\022\r\n\010modified\020\227\001\022\n\n\005bl" +
"ock\020\252\001\022\014\n\007unblock\020\253\001\022\014\n\007blocked\020\254\001\022\016\n\tun" +
"blocked\020\255\001\022\024\n\017members_blocked\020\256\001\022\026\n\021memb" +
"ers_unblocked\020\257\001\022\020\n\013check_block\020\260\001\022\021\n\014ch",
"eck_result\020\261\001\022\017\n\nadd_shutup\020\264\001\022\022\n\rremove" +
"_shutup\020\265\001\022\021\n\014query_shutup\020\266\001\022\021\n\014shutup_" +
"added\020\267\001\022\023\n\016shutup_removed\020\270\001\022\022\n\rshutup_" +
"result\020\271\001\022\r\n\010shutuped\020\272\001\022\017\n\nunshutuped\020\273" +
"\001\022\025\n\020members_shutuped\020\274\001\022\027\n\022members_unsh" +
"utuped\020\275\001\022\021\n\014check_shutup\020\276\001*\035\n\nStatusTy" +
"pe\022\006\n\002on\020\001\022\007\n\003off\020\002B\007\242\002\004AVIM"
};
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[] {
}, assigner);
internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cn_leancloud_push_lite_proto_JsonObjectMessage_descriptor,
new java.lang.String[] { "Data", });
internal_static_cn_leancloud_push_lite_proto_DataCommand_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cn_leancloud_push_lite_proto_DataCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cn_leancloud_push_lite_proto_DataCommand_descriptor,
new java.lang.String[] { "Ids", "Msg", "Offline", });
internal_static_cn_leancloud_push_lite_proto_ErrorCommand_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cn_leancloud_push_lite_proto_ErrorCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cn_leancloud_push_lite_proto_ErrorCommand_descriptor,
new java.lang.String[] { "Code", "Reason", "AppCode", "Detail", "Pids", "AppMsg", });
internal_static_cn_leancloud_push_lite_proto_AckCommand_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cn_leancloud_push_lite_proto_AckCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cn_leancloud_push_lite_proto_AckCommand_descriptor,
new java.lang.String[] { "Code", "Reason", "Mid", "Cid", "T", "Uid", "Fromts", "Tots", "Type", "Ids", "AppCode", "AppMsg", });
internal_static_cn_leancloud_push_lite_proto_GenericCommand_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cn_leancloud_push_lite_proto_GenericCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cn_leancloud_push_lite_proto_GenericCommand_descriptor,
new java.lang.String[] { "Cmd", "Op", "AppId", "PeerId", "I", "InstallationId", "Priority", "Service", "ServerTs", "DataMessage", "ErrorMessage", "AckMessage", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy