// Generated by the protocol buffer compiler. DO NOT EDIT! // source: platform/api_push_notifications.proto package com.akaxin.proto.platform; public final class ApiPushNotificationsProto { private ApiPushNotificationsProto() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface ApiPushNotificationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:platform.ApiPushNotificationsRequest) com.google.protobuf.MessageOrBuilder { /** *
*push通知的类型 ** *
.core.PushType push_type = 1;
*/
int getPushTypeValue();
/**
* *push通知的类型 ** *
.core.PushType push_type = 1;
*/
com.akaxin.proto.core.PushProto.PushType getPushType();
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
boolean hasNotifications();
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
com.akaxin.proto.core.PushProto.Notifications getNotifications();
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
com.akaxin.proto.core.PushProto.NotificationsOrBuilder getNotificationsOrBuilder();
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
boolean hasPushFromUser();
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
com.akaxin.proto.core.PushProto.PushFromUser getPushFromUser();
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
com.akaxin.proto.core.PushProto.PushFromUserOrBuilder getPushFromUserOrBuilder();
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
java.util.List*通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
com.akaxin.proto.core.PushProto.PushToUser getPushToUser(int index);
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
int getPushToUserCount();
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
java.util.List extends com.akaxin.proto.core.PushProto.PushToUserOrBuilder>
getPushToUserOrBuilderList();
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
com.akaxin.proto.core.PushProto.PushToUserOrBuilder getPushToUserOrBuilder(
int index);
}
/**
* Protobuf type {@code platform.ApiPushNotificationsRequest}
*/
public static final class ApiPushNotificationsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:platform.ApiPushNotificationsRequest)
ApiPushNotificationsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiPushNotificationsRequest.newBuilder() to construct.
private ApiPushNotificationsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiPushNotificationsRequest() {
pushType_ = 0;
pushToUser_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiPushNotificationsRequest(
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 (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
pushType_ = rawValue;
break;
}
case 18: {
com.akaxin.proto.core.PushProto.Notifications.Builder subBuilder = null;
if (notifications_ != null) {
subBuilder = notifications_.toBuilder();
}
notifications_ = input.readMessage(com.akaxin.proto.core.PushProto.Notifications.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notifications_);
notifications_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.akaxin.proto.core.PushProto.PushFromUser.Builder subBuilder = null;
if (pushFromUser_ != null) {
subBuilder = pushFromUser_.toBuilder();
}
pushFromUser_ = input.readMessage(com.akaxin.proto.core.PushProto.PushFromUser.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(pushFromUser_);
pushFromUser_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
pushToUser_ = new java.util.ArrayList*push通知的类型 ** *
.core.PushType push_type = 1;
*/
public int getPushTypeValue() {
return pushType_;
}
/**
* *push通知的类型 ** *
.core.PushType push_type = 1;
*/
public com.akaxin.proto.core.PushProto.PushType getPushType() {
com.akaxin.proto.core.PushProto.PushType result = com.akaxin.proto.core.PushProto.PushType.valueOf(pushType_);
return result == null ? com.akaxin.proto.core.PushProto.PushType.UNRECOGNIZED : result;
}
public static final int NOTIFICATIONS_FIELD_NUMBER = 2;
private com.akaxin.proto.core.PushProto.Notifications notifications_;
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public boolean hasNotifications() {
return notifications_ != null;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public com.akaxin.proto.core.PushProto.Notifications getNotifications() {
return notifications_ == null ? com.akaxin.proto.core.PushProto.Notifications.getDefaultInstance() : notifications_;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public com.akaxin.proto.core.PushProto.NotificationsOrBuilder getNotificationsOrBuilder() {
return getNotifications();
}
public static final int PUSH_FROM_USER_FIELD_NUMBER = 3;
private com.akaxin.proto.core.PushProto.PushFromUser pushFromUser_;
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public boolean hasPushFromUser() {
return pushFromUser_ != null;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public com.akaxin.proto.core.PushProto.PushFromUser getPushFromUser() {
return pushFromUser_ == null ? com.akaxin.proto.core.PushProto.PushFromUser.getDefaultInstance() : pushFromUser_;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public com.akaxin.proto.core.PushProto.PushFromUserOrBuilder getPushFromUserOrBuilder() {
return getPushFromUser();
}
public static final int PUSH_TO_USER_FIELD_NUMBER = 4;
private java.util.List*通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public java.util.List*通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public java.util.List extends com.akaxin.proto.core.PushProto.PushToUserOrBuilder>
getPushToUserOrBuilderList() {
return pushToUser_;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public int getPushToUserCount() {
return pushToUser_.size();
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUser getPushToUser(int index) {
return pushToUser_.get(index);
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUserOrBuilder getPushToUserOrBuilder(
int index) {
return pushToUser_.get(index);
}
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 (pushType_ != com.akaxin.proto.core.PushProto.PushType.PUSH_NOTICE.getNumber()) {
output.writeEnum(1, pushType_);
}
if (notifications_ != null) {
output.writeMessage(2, getNotifications());
}
if (pushFromUser_ != null) {
output.writeMessage(3, getPushFromUser());
}
for (int i = 0; i < pushToUser_.size(); i++) {
output.writeMessage(4, pushToUser_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (pushType_ != com.akaxin.proto.core.PushProto.PushType.PUSH_NOTICE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, pushType_);
}
if (notifications_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNotifications());
}
if (pushFromUser_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPushFromUser());
}
for (int i = 0; i < pushToUser_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, pushToUser_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest)) {
return super.equals(obj);
}
com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest other = (com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest) obj;
boolean result = true;
result = result && pushType_ == other.pushType_;
result = result && (hasNotifications() == other.hasNotifications());
if (hasNotifications()) {
result = result && getNotifications()
.equals(other.getNotifications());
}
result = result && (hasPushFromUser() == other.hasPushFromUser());
if (hasPushFromUser()) {
result = result && getPushFromUser()
.equals(other.getPushFromUser());
}
result = result && getPushToUserList()
.equals(other.getPushToUserList());
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();
hash = (37 * hash) + PUSH_TYPE_FIELD_NUMBER;
hash = (53 * hash) + pushType_;
if (hasNotifications()) {
hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER;
hash = (53 * hash) + getNotifications().hashCode();
}
if (hasPushFromUser()) {
hash = (37 * hash) + PUSH_FROM_USER_FIELD_NUMBER;
hash = (53 * hash) + getPushFromUser().hashCode();
}
if (getPushToUserCount() > 0) {
hash = (37 * hash) + PUSH_TO_USER_FIELD_NUMBER;
hash = (53 * hash) + getPushToUserList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest 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 platform.ApiPushNotificationsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder*push通知的类型 ** *
.core.PushType push_type = 1;
*/
public int getPushTypeValue() {
return pushType_;
}
/**
* *push通知的类型 ** *
.core.PushType push_type = 1;
*/
public Builder setPushTypeValue(int value) {
pushType_ = value;
onChanged();
return this;
}
/**
* *push通知的类型 ** *
.core.PushType push_type = 1;
*/
public com.akaxin.proto.core.PushProto.PushType getPushType() {
com.akaxin.proto.core.PushProto.PushType result = com.akaxin.proto.core.PushProto.PushType.valueOf(pushType_);
return result == null ? com.akaxin.proto.core.PushProto.PushType.UNRECOGNIZED : result;
}
/**
* *push通知的类型 ** *
.core.PushType push_type = 1;
*/
public Builder setPushType(com.akaxin.proto.core.PushProto.PushType value) {
if (value == null) {
throw new NullPointerException();
}
pushType_ = value.getNumber();
onChanged();
return this;
}
/**
* *push通知的类型 ** *
.core.PushType push_type = 1;
*/
public Builder clearPushType() {
pushType_ = 0;
onChanged();
return this;
}
private com.akaxin.proto.core.PushProto.Notifications notifications_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.Notifications, com.akaxin.proto.core.PushProto.Notifications.Builder, com.akaxin.proto.core.PushProto.NotificationsOrBuilder> notificationsBuilder_;
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public boolean hasNotifications() {
return notificationsBuilder_ != null || notifications_ != null;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public com.akaxin.proto.core.PushProto.Notifications getNotifications() {
if (notificationsBuilder_ == null) {
return notifications_ == null ? com.akaxin.proto.core.PushProto.Notifications.getDefaultInstance() : notifications_;
} else {
return notificationsBuilder_.getMessage();
}
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public Builder setNotifications(com.akaxin.proto.core.PushProto.Notifications value) {
if (notificationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notifications_ = value;
onChanged();
} else {
notificationsBuilder_.setMessage(value);
}
return this;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public Builder setNotifications(
com.akaxin.proto.core.PushProto.Notifications.Builder builderForValue) {
if (notificationsBuilder_ == null) {
notifications_ = builderForValue.build();
onChanged();
} else {
notificationsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public Builder mergeNotifications(com.akaxin.proto.core.PushProto.Notifications value) {
if (notificationsBuilder_ == null) {
if (notifications_ != null) {
notifications_ =
com.akaxin.proto.core.PushProto.Notifications.newBuilder(notifications_).mergeFrom(value).buildPartial();
} else {
notifications_ = value;
}
onChanged();
} else {
notificationsBuilder_.mergeFrom(value);
}
return this;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public Builder clearNotifications() {
if (notificationsBuilder_ == null) {
notifications_ = null;
onChanged();
} else {
notifications_ = null;
notificationsBuilder_ = null;
}
return this;
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public com.akaxin.proto.core.PushProto.Notifications.Builder getNotificationsBuilder() {
onChanged();
return getNotificationsFieldBuilder().getBuilder();
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
public com.akaxin.proto.core.PushProto.NotificationsOrBuilder getNotificationsOrBuilder() {
if (notificationsBuilder_ != null) {
return notificationsBuilder_.getMessageOrBuilder();
} else {
return notifications_ == null ?
com.akaxin.proto.core.PushProto.Notifications.getDefaultInstance() : notifications_;
}
}
/**
* *批量发送的通知消息 ** *
.core.Notifications notifications = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.Notifications, com.akaxin.proto.core.PushProto.Notifications.Builder, com.akaxin.proto.core.PushProto.NotificationsOrBuilder>
getNotificationsFieldBuilder() {
if (notificationsBuilder_ == null) {
notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.Notifications, com.akaxin.proto.core.PushProto.Notifications.Builder, com.akaxin.proto.core.PushProto.NotificationsOrBuilder>(
getNotifications(),
getParentForChildren(),
isClean());
notifications_ = null;
}
return notificationsBuilder_;
}
private com.akaxin.proto.core.PushProto.PushFromUser pushFromUser_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.PushFromUser, com.akaxin.proto.core.PushProto.PushFromUser.Builder, com.akaxin.proto.core.PushProto.PushFromUserOrBuilder> pushFromUserBuilder_;
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public boolean hasPushFromUser() {
return pushFromUserBuilder_ != null || pushFromUser_ != null;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public com.akaxin.proto.core.PushProto.PushFromUser getPushFromUser() {
if (pushFromUserBuilder_ == null) {
return pushFromUser_ == null ? com.akaxin.proto.core.PushProto.PushFromUser.getDefaultInstance() : pushFromUser_;
} else {
return pushFromUserBuilder_.getMessage();
}
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public Builder setPushFromUser(com.akaxin.proto.core.PushProto.PushFromUser value) {
if (pushFromUserBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
pushFromUser_ = value;
onChanged();
} else {
pushFromUserBuilder_.setMessage(value);
}
return this;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public Builder setPushFromUser(
com.akaxin.proto.core.PushProto.PushFromUser.Builder builderForValue) {
if (pushFromUserBuilder_ == null) {
pushFromUser_ = builderForValue.build();
onChanged();
} else {
pushFromUserBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public Builder mergePushFromUser(com.akaxin.proto.core.PushProto.PushFromUser value) {
if (pushFromUserBuilder_ == null) {
if (pushFromUser_ != null) {
pushFromUser_ =
com.akaxin.proto.core.PushProto.PushFromUser.newBuilder(pushFromUser_).mergeFrom(value).buildPartial();
} else {
pushFromUser_ = value;
}
onChanged();
} else {
pushFromUserBuilder_.mergeFrom(value);
}
return this;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public Builder clearPushFromUser() {
if (pushFromUserBuilder_ == null) {
pushFromUser_ = null;
onChanged();
} else {
pushFromUser_ = null;
pushFromUserBuilder_ = null;
}
return this;
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public com.akaxin.proto.core.PushProto.PushFromUser.Builder getPushFromUserBuilder() {
onChanged();
return getPushFromUserFieldBuilder().getBuilder();
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
public com.akaxin.proto.core.PushProto.PushFromUserOrBuilder getPushFromUserOrBuilder() {
if (pushFromUserBuilder_ != null) {
return pushFromUserBuilder_.getMessageOrBuilder();
} else {
return pushFromUser_ == null ?
com.akaxin.proto.core.PushProto.PushFromUser.getDefaultInstance() : pushFromUser_;
}
}
/**
* *通知发送放 ** *
.core.PushFromUser push_from_user = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.PushFromUser, com.akaxin.proto.core.PushProto.PushFromUser.Builder, com.akaxin.proto.core.PushProto.PushFromUserOrBuilder>
getPushFromUserFieldBuilder() {
if (pushFromUserBuilder_ == null) {
pushFromUserBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.PushFromUser, com.akaxin.proto.core.PushProto.PushFromUser.Builder, com.akaxin.proto.core.PushProto.PushFromUserOrBuilder>(
getPushFromUser(),
getParentForChildren(),
isClean());
pushFromUser_ = null;
}
return pushFromUserBuilder_;
}
private java.util.List*通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public java.util.List*通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public int getPushToUserCount() {
if (pushToUserBuilder_ == null) {
return pushToUser_.size();
} else {
return pushToUserBuilder_.getCount();
}
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUser getPushToUser(int index) {
if (pushToUserBuilder_ == null) {
return pushToUser_.get(index);
} else {
return pushToUserBuilder_.getMessage(index);
}
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder setPushToUser(
int index, com.akaxin.proto.core.PushProto.PushToUser value) {
if (pushToUserBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePushToUserIsMutable();
pushToUser_.set(index, value);
onChanged();
} else {
pushToUserBuilder_.setMessage(index, value);
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder setPushToUser(
int index, com.akaxin.proto.core.PushProto.PushToUser.Builder builderForValue) {
if (pushToUserBuilder_ == null) {
ensurePushToUserIsMutable();
pushToUser_.set(index, builderForValue.build());
onChanged();
} else {
pushToUserBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder addPushToUser(com.akaxin.proto.core.PushProto.PushToUser value) {
if (pushToUserBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePushToUserIsMutable();
pushToUser_.add(value);
onChanged();
} else {
pushToUserBuilder_.addMessage(value);
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder addPushToUser(
int index, com.akaxin.proto.core.PushProto.PushToUser value) {
if (pushToUserBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePushToUserIsMutable();
pushToUser_.add(index, value);
onChanged();
} else {
pushToUserBuilder_.addMessage(index, value);
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder addPushToUser(
com.akaxin.proto.core.PushProto.PushToUser.Builder builderForValue) {
if (pushToUserBuilder_ == null) {
ensurePushToUserIsMutable();
pushToUser_.add(builderForValue.build());
onChanged();
} else {
pushToUserBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder addPushToUser(
int index, com.akaxin.proto.core.PushProto.PushToUser.Builder builderForValue) {
if (pushToUserBuilder_ == null) {
ensurePushToUserIsMutable();
pushToUser_.add(index, builderForValue.build());
onChanged();
} else {
pushToUserBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder addAllPushToUser(
java.lang.Iterable extends com.akaxin.proto.core.PushProto.PushToUser> values) {
if (pushToUserBuilder_ == null) {
ensurePushToUserIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, pushToUser_);
onChanged();
} else {
pushToUserBuilder_.addAllMessages(values);
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder clearPushToUser() {
if (pushToUserBuilder_ == null) {
pushToUser_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
pushToUserBuilder_.clear();
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public Builder removePushToUser(int index) {
if (pushToUserBuilder_ == null) {
ensurePushToUserIsMutable();
pushToUser_.remove(index);
onChanged();
} else {
pushToUserBuilder_.remove(index);
}
return this;
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUser.Builder getPushToUserBuilder(
int index) {
return getPushToUserFieldBuilder().getBuilder(index);
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUserOrBuilder getPushToUserOrBuilder(
int index) {
if (pushToUserBuilder_ == null) {
return pushToUser_.get(index); } else {
return pushToUserBuilder_.getMessageOrBuilder(index);
}
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public java.util.List extends com.akaxin.proto.core.PushProto.PushToUserOrBuilder>
getPushToUserOrBuilderList() {
if (pushToUserBuilder_ != null) {
return pushToUserBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(pushToUser_);
}
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUser.Builder addPushToUserBuilder() {
return getPushToUserFieldBuilder().addBuilder(
com.akaxin.proto.core.PushProto.PushToUser.getDefaultInstance());
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public com.akaxin.proto.core.PushProto.PushToUser.Builder addPushToUserBuilder(
int index) {
return getPushToUserFieldBuilder().addBuilder(
index, com.akaxin.proto.core.PushProto.PushToUser.getDefaultInstance());
}
/**
* *通知接受者 ** *
repeated .core.PushToUser push_to_user = 4;
*/
public java.util.List