All Downloads are FREE. Search and download functionalities are using the official Maven repository.

POGOProtos.Data.Inbox.ClientInboxOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: POGOProtos/Data/Inbox/ClientInbox.proto

package POGOProtos.Data.Inbox;

public final class ClientInboxOuterClass {
  private ClientInboxOuterClass() {}
  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 ClientInboxOrBuilder extends
      // @@protoc_insertion_point(interface_extends:POGOProtos.Data.Inbox.ClientInbox)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification notifications = 1;
     */
    java.util.List 
        getNotificationsList();
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification notifications = 1;
     */
    POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.Notification getNotifications(int index);
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification notifications = 1;
     */
    int getNotificationsCount();
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification notifications = 1;
     */
    java.util.List 
        getNotificationsOrBuilderList();
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification notifications = 1;
     */
    POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.NotificationOrBuilder getNotificationsOrBuilder(
        int index);

    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable builtin_variables = 2;
     */
    java.util.List 
        getBuiltinVariablesList();
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable builtin_variables = 2;
     */
    POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.TemplateVariable getBuiltinVariables(int index);
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable builtin_variables = 2;
     */
    int getBuiltinVariablesCount();
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable builtin_variables = 2;
     */
    java.util.List 
        getBuiltinVariablesOrBuilderList();
    /**
     * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable builtin_variables = 2;
     */
    POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.TemplateVariableOrBuilder getBuiltinVariablesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code POGOProtos.Data.Inbox.ClientInbox}
   */
  public  static final class ClientInbox extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:POGOProtos.Data.Inbox.ClientInbox)
      ClientInboxOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClientInbox.newBuilder() to construct.
    private ClientInbox(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ClientInbox() {
      notifications_ = java.util.Collections.emptyList();
      builtinVariables_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClientInbox(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                notifications_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              notifications_.add(
                  input.readMessage(POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.Notification.parser(), extensionRegistry));
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                builtinVariables_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              builtinVariables_.add(
                  input.readMessage(POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.TemplateVariable.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              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)) {
          notifications_ = java.util.Collections.unmodifiableList(notifications_);
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          builtinVariables_ = java.util.Collections.unmodifiableList(builtinVariables_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return POGOProtos.Data.Inbox.ClientInboxOuterClass.internal_static_POGOProtos_Data_Inbox_ClientInbox_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return POGOProtos.Data.Inbox.ClientInboxOuterClass.internal_static_POGOProtos_Data_Inbox_ClientInbox_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.class, POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.Builder.class);
    }

    public interface NotificationOrBuilder extends
        // @@protoc_insertion_point(interface_extends:POGOProtos.Data.Inbox.ClientInbox.Notification)
        com.google.protobuf.MessageOrBuilder {

      /**
       * string notification_id = 1;
       */
      java.lang.String getNotificationId();
      /**
       * string notification_id = 1;
       */
      com.google.protobuf.ByteString
          getNotificationIdBytes();

      /**
       * string title_key = 2;
       */
      java.lang.String getTitleKey();
      /**
       * string title_key = 2;
       */
      com.google.protobuf.ByteString
          getTitleKeyBytes();

      /**
       * string category = 3;
       */
      java.lang.String getCategory();
      /**
       * string category = 3;
       */
      com.google.protobuf.ByteString
          getCategoryBytes();

      /**
       * int64 create_timestamp_ms = 4;
       */
      long getCreateTimestampMs();

      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable variables = 5;
       */
      java.util.List 
          getVariablesList();
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable variables = 5;
       */
      POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.TemplateVariable getVariables(int index);
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable variables = 5;
       */
      int getVariablesCount();
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable variables = 5;
       */
      java.util.List 
          getVariablesOrBuilderList();
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.TemplateVariable variables = 5;
       */
      POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.TemplateVariableOrBuilder getVariablesOrBuilder(
          int index);

      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification.Label labels = 6;
       */
      java.util.List getLabelsList();
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification.Label labels = 6;
       */
      int getLabelsCount();
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification.Label labels = 6;
       */
      POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.Notification.Label getLabels(int index);
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification.Label labels = 6;
       */
      java.util.List
      getLabelsValueList();
      /**
       * repeated .POGOProtos.Data.Inbox.ClientInbox.Notification.Label labels = 6;
       */
      int getLabelsValue(int index);

      /**
       * int64 expire_time_ms = 7;
       */
      long getExpireTimeMs();
    }
    /**
     * Protobuf type {@code POGOProtos.Data.Inbox.ClientInbox.Notification}
     */
    public  static final class Notification extends
        com.google.protobuf.GeneratedMessageV3 implements
        // @@protoc_insertion_point(message_implements:POGOProtos.Data.Inbox.ClientInbox.Notification)
        NotificationOrBuilder {
    private static final long serialVersionUID = 0L;
      // Use Notification.newBuilder() to construct.
      private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) {
        super(builder);
      }
      private Notification() {
        notificationId_ = "";
        titleKey_ = "";
        category_ = "";
        createTimestampMs_ = 0L;
        variables_ = java.util.Collections.emptyList();
        labels_ = java.util.Collections.emptyList();
        expireTimeMs_ = 0L;
      }

      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
      getUnknownFields() {
        return this.unknownFields;
      }
      private Notification(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        this();
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                java.lang.String s = input.readStringRequireUtf8();

                notificationId_ = s;
                break;
              }
              case 18: {
                java.lang.String s = input.readStringRequireUtf8();

                titleKey_ = s;
                break;
              }
              case 26: {
                java.lang.String s = input.readStringRequireUtf8();

                category_ = s;
                break;
              }
              case 32: {

                createTimestampMs_ = input.readInt64();
                break;
              }
              case 42: {
                if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
                  variables_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000010;
                }
                variables_.add(
                    input.readMessage(POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.TemplateVariable.parser(), extensionRegistry));
                break;
              }
              case 48: {
                int rawValue = input.readEnum();
                if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
                  labels_ = new java.util.ArrayList();
                  mutable_bitField0_ |= 0x00000020;
                }
                labels_.add(rawValue);
                break;
              }
              case 50: {
                int length = input.readRawVarint32();
                int oldLimit = input.pushLimit(length);
                while(input.getBytesUntilLimit() > 0) {
                  int rawValue = input.readEnum();
                  if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
                    labels_ = new java.util.ArrayList();
                    mutable_bitField0_ |= 0x00000020;
                  }
                  labels_.add(rawValue);
                }
                input.popLimit(oldLimit);
                break;
              }
              case 56: {

                expireTimeMs_ = input.readInt64();
                break;
              }
              default: {
                if (!parseUnknownFieldProto3(
                    input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                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)) {
            variables_ = java.util.Collections.unmodifiableList(variables_);
          }
          if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
            labels_ = java.util.Collections.unmodifiableList(labels_);
          }
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return POGOProtos.Data.Inbox.ClientInboxOuterClass.internal_static_POGOProtos_Data_Inbox_ClientInbox_Notification_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return POGOProtos.Data.Inbox.ClientInboxOuterClass.internal_static_POGOProtos_Data_Inbox_ClientInbox_Notification_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.Notification.class, POGOProtos.Data.Inbox.ClientInboxOuterClass.ClientInbox.Notification.Builder.class);
      }

      /**
       * Protobuf enum {@code POGOProtos.Data.Inbox.ClientInbox.Notification.Label}
       */
      public enum Label
          implements com.google.protobuf.ProtocolMessageEnum {
        /**
         * UNSET_LABEL = 0;
         */
        UNSET_LABEL(0),
        /**
         * UNREAD = 1;
         */
        UNREAD(1),
        /**
         * NEW = 2;
         */
        NEW(2),
        /**
         * IMMEDIATE = 3;
         */
        IMMEDIATE(3),
        UNRECOGNIZED(-1),
        ;

        /**
         * UNSET_LABEL = 0;
         */
        public static final int UNSET_LABEL_VALUE = 0;
        /**
         * UNREAD = 1;
         */
        public static final int UNREAD_VALUE = 1;
        /**
         * NEW = 2;
         */
        public static final int NEW_VALUE = 2;
        /**
         * IMMEDIATE = 3;
         */
        public static final int IMMEDIATE_VALUE = 3;


        public final int getNumber() {
          if (this == UNRECOGNIZED) {
            throw new java.lang.IllegalArgumentException(
                "Can't get the number of an unknown enum value.");
          }
          return value;
        }

        /**
         * @deprecated Use {@link #forNumber(int)} instead.
         */
        @java.lang.Deprecated
        public static Label valueOf(int value) {
          return forNumber(value);
        }

        public static Label forNumber(int value) {
          switch (value) {
            case 0: return UNSET_LABEL;
            case 1: return UNREAD;
            case 2: return NEW;
            case 3: return IMMEDIATE;
            default: return null;
          }
        }

        public static com.google.protobuf.Internal.EnumLiteMap




© 2015 - 2025 Weber Informatics LLC | Privacy Policy