// 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 getPushToUserList(); /** *
     *通知接受者
     * 
* * 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 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(); mutable_bitField0_ |= 0x00000008; } pushToUser_.add( input.readMessage(com.akaxin.proto.core.PushProto.PushToUser.parser(), extensionRegistry)); 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_ & 0x00000008) == 0x00000008)) { pushToUser_ = java.util.Collections.unmodifiableList(pushToUser_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.platform.ApiPushNotificationsProto.internal_static_platform_ApiPushNotificationsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.platform.ApiPushNotificationsProto.internal_static_platform_ApiPushNotificationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.class, com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.Builder.class); } private int bitField0_; public static final int PUSH_TYPE_FIELD_NUMBER = 1; private int pushType_; /** *
     *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 pushToUser_; /** *
     *通知接受者
     * 
* * repeated .core.PushToUser push_to_user = 4; */ public java.util.List getPushToUserList() { return pushToUser_; } /** *
     *通知接受者
     * 
* * repeated .core.PushToUser push_to_user = 4; */ public java.util.List 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 implements // @@protoc_insertion_point(builder_implements:platform.ApiPushNotificationsRequest) com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.akaxin.proto.platform.ApiPushNotificationsProto.internal_static_platform_ApiPushNotificationsRequest_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.akaxin.proto.platform.ApiPushNotificationsProto.internal_static_platform_ApiPushNotificationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.class, com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.Builder.class); } // Construct using com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPushToUserFieldBuilder(); } } public Builder clear() { super.clear(); pushType_ = 0; if (notificationsBuilder_ == null) { notifications_ = null; } else { notifications_ = null; notificationsBuilder_ = null; } if (pushFromUserBuilder_ == null) { pushFromUser_ = null; } else { pushFromUser_ = null; pushFromUserBuilder_ = null; } if (pushToUserBuilder_ == null) { pushToUser_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { pushToUserBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.akaxin.proto.platform.ApiPushNotificationsProto.internal_static_platform_ApiPushNotificationsRequest_descriptor; } public com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest getDefaultInstanceForType() { return com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.getDefaultInstance(); } public com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest build() { com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest buildPartial() { com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest result = new com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.pushType_ = pushType_; if (notificationsBuilder_ == null) { result.notifications_ = notifications_; } else { result.notifications_ = notificationsBuilder_.build(); } if (pushFromUserBuilder_ == null) { result.pushFromUser_ = pushFromUser_; } else { result.pushFromUser_ = pushFromUserBuilder_.build(); } if (pushToUserBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { pushToUser_ = java.util.Collections.unmodifiableList(pushToUser_); bitField0_ = (bitField0_ & ~0x00000008); } result.pushToUser_ = pushToUser_; } else { result.pushToUser_ = pushToUserBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest) { return mergeFrom((com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest other) { if (other == com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest.getDefaultInstance()) return this; if (other.pushType_ != 0) { setPushTypeValue(other.getPushTypeValue()); } if (other.hasNotifications()) { mergeNotifications(other.getNotifications()); } if (other.hasPushFromUser()) { mergePushFromUser(other.getPushFromUser()); } if (pushToUserBuilder_ == null) { if (!other.pushToUser_.isEmpty()) { if (pushToUser_.isEmpty()) { pushToUser_ = other.pushToUser_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePushToUserIsMutable(); pushToUser_.addAll(other.pushToUser_); } onChanged(); } } else { if (!other.pushToUser_.isEmpty()) { if (pushToUserBuilder_.isEmpty()) { pushToUserBuilder_.dispose(); pushToUserBuilder_ = null; pushToUser_ = other.pushToUser_; bitField0_ = (bitField0_ & ~0x00000008); pushToUserBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPushToUserFieldBuilder() : null; } else { pushToUserBuilder_.addAllMessages(other.pushToUser_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int pushType_ = 0; /** *
       *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 pushToUser_ = java.util.Collections.emptyList(); private void ensurePushToUserIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { pushToUser_ = new java.util.ArrayList(pushToUser_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.akaxin.proto.core.PushProto.PushToUser, com.akaxin.proto.core.PushProto.PushToUser.Builder, com.akaxin.proto.core.PushProto.PushToUserOrBuilder> pushToUserBuilder_; /** *
       *通知接受者
       * 
* * repeated .core.PushToUser push_to_user = 4; */ public java.util.List getPushToUserList() { if (pushToUserBuilder_ == null) { return java.util.Collections.unmodifiableList(pushToUser_); } else { return pushToUserBuilder_.getMessageList(); } } /** *
       *通知接受者
       * 
* * 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 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 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 getPushToUserBuilderList() { return getPushToUserFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.akaxin.proto.core.PushProto.PushToUser, com.akaxin.proto.core.PushProto.PushToUser.Builder, com.akaxin.proto.core.PushProto.PushToUserOrBuilder> getPushToUserFieldBuilder() { if (pushToUserBuilder_ == null) { pushToUserBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.akaxin.proto.core.PushProto.PushToUser, com.akaxin.proto.core.PushProto.PushToUser.Builder, com.akaxin.proto.core.PushProto.PushToUserOrBuilder>( pushToUser_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); pushToUser_ = null; } return pushToUserBuilder_; } 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.ApiPushNotificationsRequest) } // @@protoc_insertion_point(class_scope:platform.ApiPushNotificationsRequest) private static final com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest(); } public static com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApiPushNotificationsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApiPushNotificationsRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.akaxin.proto.platform.ApiPushNotificationsProto.ApiPushNotificationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_platform_ApiPushNotificationsRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_platform_ApiPushNotificationsRequest_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%platform/api_push_notifications.proto\022" + "\010platform\032\017core/core.proto\032\017core/push.pr" + "oto\"\300\001\n\033ApiPushNotificationsRequest\022!\n\tp" + "ush_type\030\001 \001(\0162\016.core.PushType\022*\n\rnotifi" + "cations\030\002 \001(\0132\023.core.Notifications\022*\n\016pu" + "sh_from_user\030\003 \001(\0132\022.core.PushFromUser\022&" + "\n\014push_to_user\030\004 \003(\0132\020.core.PushToUser2i" + "\n\033ApiPushNotificationsService\022J\n\rnotific" + "ations\022%.platform.ApiPushNotificationsRe" + "quest\032\022.core.NoneResponseB6\n\031com.akaxin.", "proto.platformB\031ApiPushNotificationsProt" + "ob\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.akaxin.proto.core.CoreProto.getDescriptor(), com.akaxin.proto.core.PushProto.getDescriptor(), }, assigner); internal_static_platform_ApiPushNotificationsRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_platform_ApiPushNotificationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_platform_ApiPushNotificationsRequest_descriptor, new java.lang.String[] { "PushType", "Notifications", "PushFromUser", "PushToUser", }); com.akaxin.proto.core.CoreProto.getDescriptor(); com.akaxin.proto.core.PushProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }