// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: platform/api_push_notification.proto
package com.akaxin.proto.platform;
public final class ApiPushNotificationProto {
private ApiPushNotificationProto() {}
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 ApiPushNotificationRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:platform.ApiPushNotificationRequest)
com.google.protobuf.MessageOrBuilder {
/**
* .core.PushType push_type = 1;
*/
int getPushTypeValue();
/**
* .core.PushType push_type = 1;
*/
com.akaxin.proto.core.PushProto.PushType getPushType();
/**
*
*通知消息 ** *
.core.Notification notification = 2;
*/
boolean hasNotification();
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
com.akaxin.proto.core.PushProto.Notification getNotification();
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
com.akaxin.proto.core.PushProto.NotificationOrBuilder getNotificationOrBuilder();
}
/**
* Protobuf type {@code platform.ApiPushNotificationRequest}
*/
public static final class ApiPushNotificationRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:platform.ApiPushNotificationRequest)
ApiPushNotificationRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiPushNotificationRequest.newBuilder() to construct.
private ApiPushNotificationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiPushNotificationRequest() {
pushType_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ApiPushNotificationRequest(
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.Notification.Builder subBuilder = null;
if (notification_ != null) {
subBuilder = notification_.toBuilder();
}
notification_ = input.readMessage(com.akaxin.proto.core.PushProto.Notification.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(notification_);
notification_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.akaxin.proto.platform.ApiPushNotificationProto.internal_static_platform_ApiPushNotificationRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.akaxin.proto.platform.ApiPushNotificationProto.internal_static_platform_ApiPushNotificationRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest.class, com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest.Builder.class);
}
public static final int PUSH_TYPE_FIELD_NUMBER = 1;
private int pushType_;
/**
* .core.PushType push_type = 1;
*/
public int getPushTypeValue() {
return pushType_;
}
/**
* .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 NOTIFICATION_FIELD_NUMBER = 2;
private com.akaxin.proto.core.PushProto.Notification notification_;
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public boolean hasNotification() {
return notification_ != null;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public com.akaxin.proto.core.PushProto.Notification getNotification() {
return notification_ == null ? com.akaxin.proto.core.PushProto.Notification.getDefaultInstance() : notification_;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public com.akaxin.proto.core.PushProto.NotificationOrBuilder getNotificationOrBuilder() {
return getNotification();
}
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 (notification_ != null) {
output.writeMessage(2, getNotification());
}
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 (notification_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNotification());
}
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.ApiPushNotificationProto.ApiPushNotificationRequest)) {
return super.equals(obj);
}
com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest other = (com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest) obj;
boolean result = true;
result = result && pushType_ == other.pushType_;
result = result && (hasNotification() == other.hasNotification());
if (hasNotification()) {
result = result && getNotification()
.equals(other.getNotification());
}
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 (hasNotification()) {
hash = (37 * hash) + NOTIFICATION_FIELD_NUMBER;
hash = (53 * hash) + getNotification().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest 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.ApiPushNotificationProto.ApiPushNotificationRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest 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.ApiPushNotificationProto.ApiPushNotificationRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest 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.ApiPushNotificationProto.ApiPushNotificationRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest 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.ApiPushNotificationProto.ApiPushNotificationRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest 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.ApiPushNotificationProto.ApiPushNotificationRequest 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.ApiPushNotificationRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.core.PushType push_type = 1;
*/
public int getPushTypeValue() {
return pushType_;
}
/**
* .core.PushType push_type = 1;
*/
public Builder setPushTypeValue(int value) {
pushType_ = value;
onChanged();
return this;
}
/**
* .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;
}
/**
* .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;
}
/**
* .core.PushType push_type = 1;
*/
public Builder clearPushType() {
pushType_ = 0;
onChanged();
return this;
}
private com.akaxin.proto.core.PushProto.Notification notification_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.Notification, com.akaxin.proto.core.PushProto.Notification.Builder, com.akaxin.proto.core.PushProto.NotificationOrBuilder> notificationBuilder_;
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public boolean hasNotification() {
return notificationBuilder_ != null || notification_ != null;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public com.akaxin.proto.core.PushProto.Notification getNotification() {
if (notificationBuilder_ == null) {
return notification_ == null ? com.akaxin.proto.core.PushProto.Notification.getDefaultInstance() : notification_;
} else {
return notificationBuilder_.getMessage();
}
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public Builder setNotification(com.akaxin.proto.core.PushProto.Notification value) {
if (notificationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
notification_ = value;
onChanged();
} else {
notificationBuilder_.setMessage(value);
}
return this;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public Builder setNotification(
com.akaxin.proto.core.PushProto.Notification.Builder builderForValue) {
if (notificationBuilder_ == null) {
notification_ = builderForValue.build();
onChanged();
} else {
notificationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public Builder mergeNotification(com.akaxin.proto.core.PushProto.Notification value) {
if (notificationBuilder_ == null) {
if (notification_ != null) {
notification_ =
com.akaxin.proto.core.PushProto.Notification.newBuilder(notification_).mergeFrom(value).buildPartial();
} else {
notification_ = value;
}
onChanged();
} else {
notificationBuilder_.mergeFrom(value);
}
return this;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public Builder clearNotification() {
if (notificationBuilder_ == null) {
notification_ = null;
onChanged();
} else {
notification_ = null;
notificationBuilder_ = null;
}
return this;
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public com.akaxin.proto.core.PushProto.Notification.Builder getNotificationBuilder() {
onChanged();
return getNotificationFieldBuilder().getBuilder();
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
public com.akaxin.proto.core.PushProto.NotificationOrBuilder getNotificationOrBuilder() {
if (notificationBuilder_ != null) {
return notificationBuilder_.getMessageOrBuilder();
} else {
return notification_ == null ?
com.akaxin.proto.core.PushProto.Notification.getDefaultInstance() : notification_;
}
}
/**
* *通知消息 ** *
.core.Notification notification = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.Notification, com.akaxin.proto.core.PushProto.Notification.Builder, com.akaxin.proto.core.PushProto.NotificationOrBuilder>
getNotificationFieldBuilder() {
if (notificationBuilder_ == null) {
notificationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.akaxin.proto.core.PushProto.Notification, com.akaxin.proto.core.PushProto.Notification.Builder, com.akaxin.proto.core.PushProto.NotificationOrBuilder>(
getNotification(),
getParentForChildren(),
isClean());
notification_ = null;
}
return notificationBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:platform.ApiPushNotificationRequest)
}
// @@protoc_insertion_point(class_scope:platform.ApiPushNotificationRequest)
private static final com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest();
}
public static com.akaxin.proto.platform.ApiPushNotificationProto.ApiPushNotificationRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser