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

main.java.com.streamlayer.analytics.polls.v1.TotalStatsRequest Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/analytics/v1/polls/polls.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.analytics.polls.v1;

/**
 * Protobuf type {@code streamlayer.analytics.v1.polls.TotalStatsRequest}
 */
public  final class TotalStatsRequest extends
    com.google.protobuf.GeneratedMessageLite<
        TotalStatsRequest, TotalStatsRequest.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.analytics.v1.polls.TotalStatsRequest)
    TotalStatsRequestOrBuilder {
  private TotalStatsRequest() {
    organizationId_ = "";
  }
  public interface TotalStatsFilterOrBuilder extends
      // @@protoc_insertion_point(interface_extends:streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * string event_id = 1 [json_name = "eventId"];
     * @return The eventId.
     */
    java.lang.String getEventId();
    /**
     * string event_id = 1 [json_name = "eventId"];
     * @return The bytes for eventId.
     */
    com.google.protobuf.ByteString
        getEventIdBytes();

    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     * @return Whether the period field is set.
     */
    boolean hasPeriod();
    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     * @return The period.
     */
    com.streamlayer.analytics.common.v1.Period getPeriod();

    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     * @return The enum numeric value on the wire for entityType.
     */
    int getEntityTypeValue();
    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     * @return The entityType.
     */
    com.streamlayer.analytics.common.v1.EntityType getEntityType();

    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @return A list containing the entityIds.
     */
    java.util.List
        getEntityIdsList();
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @return The count of entityIds.
     */
    int getEntityIdsCount();
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param index The index of the element to return.
     * @return The entityIds at the given index.
     */
    java.lang.String getEntityIds(int index);
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param index The index of the element to return.
     * @return The entityIds at the given index.
     */
    com.google.protobuf.ByteString
        getEntityIdsBytes(int index);
  }
  /**
   * Protobuf type {@code streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter}
   */
  public  static final class TotalStatsFilter extends
      com.google.protobuf.GeneratedMessageLite<
          TotalStatsFilter, TotalStatsFilter.Builder> implements
      // @@protoc_insertion_point(message_implements:streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter)
      TotalStatsFilterOrBuilder {
    private TotalStatsFilter() {
      eventId_ = "";
      entityIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
    }
    private int bitField0_;
    public static final int EVENT_ID_FIELD_NUMBER = 1;
    private java.lang.String eventId_;
    /**
     * string event_id = 1 [json_name = "eventId"];
     * @return The eventId.
     */
    @java.lang.Override
    public java.lang.String getEventId() {
      return eventId_;
    }
    /**
     * string event_id = 1 [json_name = "eventId"];
     * @return The bytes for eventId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getEventIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(eventId_);
    }
    /**
     * string event_id = 1 [json_name = "eventId"];
     * @param value The eventId to set.
     */
    private void setEventId(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      eventId_ = value;
    }
    /**
     * string event_id = 1 [json_name = "eventId"];
     */
    private void clearEventId() {

      eventId_ = getDefaultInstance().getEventId();
    }
    /**
     * string event_id = 1 [json_name = "eventId"];
     * @param value The bytes for eventId to set.
     */
    private void setEventIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      eventId_ = value.toStringUtf8();

    }

    public static final int PERIOD_FIELD_NUMBER = 2;
    private com.streamlayer.analytics.common.v1.Period period_;
    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     */
    @java.lang.Override
    public boolean hasPeriod() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     */
    @java.lang.Override
    public com.streamlayer.analytics.common.v1.Period getPeriod() {
      return period_ == null ? com.streamlayer.analytics.common.v1.Period.getDefaultInstance() : period_;
    }
    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     */
    private void setPeriod(com.streamlayer.analytics.common.v1.Period value) {
      value.getClass();
  period_ = value;
      bitField0_ |= 0x00000001;
      }
    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     */
    @java.lang.SuppressWarnings({"ReferenceEquality"})
    private void mergePeriod(com.streamlayer.analytics.common.v1.Period value) {
      value.getClass();
  if (period_ != null &&
          period_ != com.streamlayer.analytics.common.v1.Period.getDefaultInstance()) {
        period_ =
          com.streamlayer.analytics.common.v1.Period.newBuilder(period_).mergeFrom(value).buildPartial();
      } else {
        period_ = value;
      }
      bitField0_ |= 0x00000001;
    }
    /**
     * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
     */
    private void clearPeriod() {  period_ = null;
      bitField0_ = (bitField0_ & ~0x00000001);
    }

    public static final int ENTITY_TYPE_FIELD_NUMBER = 3;
    private int entityType_;
    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     * @return The enum numeric value on the wire for entityType.
     */
    @java.lang.Override
    public int getEntityTypeValue() {
      return entityType_;
    }
    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     * @return The entityType.
     */
    @java.lang.Override
    public com.streamlayer.analytics.common.v1.EntityType getEntityType() {
      com.streamlayer.analytics.common.v1.EntityType result = com.streamlayer.analytics.common.v1.EntityType.forNumber(entityType_);
      return result == null ? com.streamlayer.analytics.common.v1.EntityType.UNRECOGNIZED : result;
    }
    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     * @param value The enum numeric value on the wire for entityType to set.
     */
    private void setEntityTypeValue(int value) {
        entityType_ = value;
    }
    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     * @param value The entityType to set.
     */
    private void setEntityType(com.streamlayer.analytics.common.v1.EntityType value) {
      entityType_ = value.getNumber();

    }
    /**
     * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
     */
    private void clearEntityType() {

      entityType_ = 0;
    }

    public static final int ENTITY_IDS_FIELD_NUMBER = 4;
    private com.google.protobuf.Internal.ProtobufList entityIds_;
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @return A list containing the entityIds.
     */
    @java.lang.Override
    public java.util.List getEntityIdsList() {
      return entityIds_;
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @return The count of entityIds.
     */
    @java.lang.Override
    public int getEntityIdsCount() {
      return entityIds_.size();
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param index The index of the element to return.
     * @return The entityIds at the given index.
     */
    @java.lang.Override
    public java.lang.String getEntityIds(int index) {
      return entityIds_.get(index);
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param index The index of the value to return.
     * @return The bytes of the entityIds at the given index.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getEntityIdsBytes(int index) {
      return com.google.protobuf.ByteString.copyFromUtf8(
          entityIds_.get(index));
    }
    private void ensureEntityIdsIsMutable() {
      com.google.protobuf.Internal.ProtobufList tmp =
          entityIds_;  if (!tmp.isModifiable()) {
        entityIds_ =
            com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
       }
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param index The index to set the value at.
     * @param value The entityIds to set.
     */
    private void setEntityIds(
        int index, java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  ensureEntityIdsIsMutable();
      entityIds_.set(index, value);
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param value The entityIds to add.
     */
    private void addEntityIds(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  ensureEntityIdsIsMutable();
      entityIds_.add(value);
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param values The entityIds to add.
     */
    private void addAllEntityIds(
        java.lang.Iterable values) {
      ensureEntityIdsIsMutable();
      com.google.protobuf.AbstractMessageLite.addAll(
          values, entityIds_);
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     */
    private void clearEntityIds() {
      entityIds_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
    }
    /**
     * repeated string entity_ids = 4 [json_name = "entityIds"];
     * @param value The bytes of the entityIds to add.
     */
    private void addEntityIdsBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      ensureEntityIdsIsMutable();
      entityIds_.add(value.toStringUtf8());
    }

    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }

    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter prototype) {
      return DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter, Builder> implements
        // @@protoc_insertion_point(builder_implements:streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter)
        com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilterOrBuilder {
      // Construct using com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * string event_id = 1 [json_name = "eventId"];
       * @return The eventId.
       */
      @java.lang.Override
      public java.lang.String getEventId() {
        return instance.getEventId();
      }
      /**
       * string event_id = 1 [json_name = "eventId"];
       * @return The bytes for eventId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getEventIdBytes() {
        return instance.getEventIdBytes();
      }
      /**
       * string event_id = 1 [json_name = "eventId"];
       * @param value The eventId to set.
       * @return This builder for chaining.
       */
      public Builder setEventId(
          java.lang.String value) {
        copyOnWrite();
        instance.setEventId(value);
        return this;
      }
      /**
       * string event_id = 1 [json_name = "eventId"];
       * @return This builder for chaining.
       */
      public Builder clearEventId() {
        copyOnWrite();
        instance.clearEventId();
        return this;
      }
      /**
       * string event_id = 1 [json_name = "eventId"];
       * @param value The bytes for eventId to set.
       * @return This builder for chaining.
       */
      public Builder setEventIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setEventIdBytes(value);
        return this;
      }

      /**
       * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
       */
      @java.lang.Override
      public boolean hasPeriod() {
        return instance.hasPeriod();
      }
      /**
       * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
       */
      @java.lang.Override
      public com.streamlayer.analytics.common.v1.Period getPeriod() {
        return instance.getPeriod();
      }
      /**
       * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
       */
      public Builder setPeriod(com.streamlayer.analytics.common.v1.Period value) {
        copyOnWrite();
        instance.setPeriod(value);
        return this;
        }
      /**
       * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
       */
      public Builder setPeriod(
          com.streamlayer.analytics.common.v1.Period.Builder builderForValue) {
        copyOnWrite();
        instance.setPeriod(builderForValue.build());
        return this;
      }
      /**
       * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
       */
      public Builder mergePeriod(com.streamlayer.analytics.common.v1.Period value) {
        copyOnWrite();
        instance.mergePeriod(value);
        return this;
      }
      /**
       * .streamlayer.analytics.v1.common.Period period = 2 [json_name = "period"];
       */
      public Builder clearPeriod() {  copyOnWrite();
        instance.clearPeriod();
        return this;
      }

      /**
       * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
       * @return The enum numeric value on the wire for entityType.
       */
      @java.lang.Override
      public int getEntityTypeValue() {
        return instance.getEntityTypeValue();
      }
      /**
       * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
       * @param value The entityType to set.
       * @return This builder for chaining.
       */
      public Builder setEntityTypeValue(int value) {
        copyOnWrite();
        instance.setEntityTypeValue(value);
        return this;
      }
      /**
       * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
       * @return The entityType.
       */
      @java.lang.Override
      public com.streamlayer.analytics.common.v1.EntityType getEntityType() {
        return instance.getEntityType();
      }
      /**
       * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
       * @param value The enum numeric value on the wire for entityType to set.
       * @return This builder for chaining.
       */
      public Builder setEntityType(com.streamlayer.analytics.common.v1.EntityType value) {
        copyOnWrite();
        instance.setEntityType(value);
        return this;
      }
      /**
       * .streamlayer.analytics.v1.common.EntityType entity_type = 3 [json_name = "entityType"];
       * @return This builder for chaining.
       */
      public Builder clearEntityType() {
        copyOnWrite();
        instance.clearEntityType();
        return this;
      }

      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @return A list containing the entityIds.
       */
      @java.lang.Override
      public java.util.List
          getEntityIdsList() {
        return java.util.Collections.unmodifiableList(
            instance.getEntityIdsList());
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @return The count of entityIds.
       */
      @java.lang.Override
      public int getEntityIdsCount() {
        return instance.getEntityIdsCount();
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @param index The index of the element to return.
       * @return The entityIds at the given index.
       */
      @java.lang.Override
      public java.lang.String getEntityIds(int index) {
        return instance.getEntityIds(index);
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @param index The index of the value to return.
       * @return The bytes of the entityIds at the given index.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getEntityIdsBytes(int index) {
        return instance.getEntityIdsBytes(index);
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @param index The index to set the value at.
       * @param value The entityIds to set.
       * @return This builder for chaining.
       */
      public Builder setEntityIds(
          int index, java.lang.String value) {
        copyOnWrite();
        instance.setEntityIds(index, value);
        return this;
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @param value The entityIds to add.
       * @return This builder for chaining.
       */
      public Builder addEntityIds(
          java.lang.String value) {
        copyOnWrite();
        instance.addEntityIds(value);
        return this;
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @param values The entityIds to add.
       * @return This builder for chaining.
       */
      public Builder addAllEntityIds(
          java.lang.Iterable values) {
        copyOnWrite();
        instance.addAllEntityIds(values);
        return this;
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @return This builder for chaining.
       */
      public Builder clearEntityIds() {
        copyOnWrite();
        instance.clearEntityIds();
        return this;
      }
      /**
       * repeated string entity_ids = 4 [json_name = "entityIds"];
       * @param value The bytes of the entityIds to add.
       * @return This builder for chaining.
       */
      public Builder addEntityIdsBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.addEntityIdsBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "bitField0_",
              "eventId_",
              "period_",
              "entityType_",
              "entityIds_",
            };
            java.lang.String info =
                "\u0000\u0004\u0000\u0001\u0001\u0004\u0004\u0000\u0001\u0000\u0001\u0208\u0002\u1009" +
                "\u0000\u0003\f\u0004\u021a";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser parser = PARSER;
          if (parser == null) {
            synchronized (com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter)
    private static final com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter DEFAULT_INSTANCE;
    static {
      TotalStatsFilter defaultInstance = new TotalStatsFilter();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        TotalStatsFilter.class, defaultInstance);
    }

    public static com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser PARSER;

    public static com.google.protobuf.Parser parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  private int bitField0_;
  public static final int ORGANIZATION_ID_FIELD_NUMBER = 1;
  private java.lang.String organizationId_;
  /**
   * string organization_id = 1 [json_name = "organizationId"];
   * @return The organizationId.
   */
  @java.lang.Override
  public java.lang.String getOrganizationId() {
    return organizationId_;
  }
  /**
   * string organization_id = 1 [json_name = "organizationId"];
   * @return The bytes for organizationId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOrganizationIdBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(organizationId_);
  }
  /**
   * string organization_id = 1 [json_name = "organizationId"];
   * @param value The organizationId to set.
   */
  private void setOrganizationId(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    organizationId_ = value;
  }
  /**
   * string organization_id = 1 [json_name = "organizationId"];
   */
  private void clearOrganizationId() {

    organizationId_ = getDefaultInstance().getOrganizationId();
  }
  /**
   * string organization_id = 1 [json_name = "organizationId"];
   * @param value The bytes for organizationId to set.
   */
  private void setOrganizationIdBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    organizationId_ = value.toStringUtf8();

  }

  public static final int FILTER_FIELD_NUMBER = 2;
  private com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter filter_;
  /**
   * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
   */
  @java.lang.Override
  public boolean hasFilter() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
   */
  @java.lang.Override
  public com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter getFilter() {
    return filter_ == null ? com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter.getDefaultInstance() : filter_;
  }
  /**
   * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
   */
  private void setFilter(com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter value) {
    value.getClass();
  filter_ = value;
    bitField0_ |= 0x00000001;
    }
  /**
   * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
   */
  @java.lang.SuppressWarnings({"ReferenceEquality"})
  private void mergeFilter(com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter value) {
    value.getClass();
  if (filter_ != null &&
        filter_ != com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter.getDefaultInstance()) {
      filter_ =
        com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter.newBuilder(filter_).mergeFrom(value).buildPartial();
    } else {
      filter_ = value;
    }
    bitField0_ |= 0x00000001;
  }
  /**
   * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
   */
  private void clearFilter() {  filter_ = null;
    bitField0_ = (bitField0_ & ~0x00000001);
  }

  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.analytics.polls.v1.TotalStatsRequest prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.analytics.v1.polls.TotalStatsRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.analytics.polls.v1.TotalStatsRequest, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.analytics.v1.polls.TotalStatsRequest)
      com.streamlayer.analytics.polls.v1.TotalStatsRequestOrBuilder {
    // Construct using com.streamlayer.analytics.polls.v1.TotalStatsRequest.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * string organization_id = 1 [json_name = "organizationId"];
     * @return The organizationId.
     */
    @java.lang.Override
    public java.lang.String getOrganizationId() {
      return instance.getOrganizationId();
    }
    /**
     * string organization_id = 1 [json_name = "organizationId"];
     * @return The bytes for organizationId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getOrganizationIdBytes() {
      return instance.getOrganizationIdBytes();
    }
    /**
     * string organization_id = 1 [json_name = "organizationId"];
     * @param value The organizationId to set.
     * @return This builder for chaining.
     */
    public Builder setOrganizationId(
        java.lang.String value) {
      copyOnWrite();
      instance.setOrganizationId(value);
      return this;
    }
    /**
     * string organization_id = 1 [json_name = "organizationId"];
     * @return This builder for chaining.
     */
    public Builder clearOrganizationId() {
      copyOnWrite();
      instance.clearOrganizationId();
      return this;
    }
    /**
     * string organization_id = 1 [json_name = "organizationId"];
     * @param value The bytes for organizationId to set.
     * @return This builder for chaining.
     */
    public Builder setOrganizationIdBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setOrganizationIdBytes(value);
      return this;
    }

    /**
     * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
     */
    @java.lang.Override
    public boolean hasFilter() {
      return instance.hasFilter();
    }
    /**
     * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
     */
    @java.lang.Override
    public com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter getFilter() {
      return instance.getFilter();
    }
    /**
     * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
     */
    public Builder setFilter(com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter value) {
      copyOnWrite();
      instance.setFilter(value);
      return this;
      }
    /**
     * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
     */
    public Builder setFilter(
        com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter.Builder builderForValue) {
      copyOnWrite();
      instance.setFilter(builderForValue.build());
      return this;
    }
    /**
     * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
     */
    public Builder mergeFilter(com.streamlayer.analytics.polls.v1.TotalStatsRequest.TotalStatsFilter value) {
      copyOnWrite();
      instance.mergeFilter(value);
      return this;
    }
    /**
     * .streamlayer.analytics.v1.polls.TotalStatsRequest.TotalStatsFilter filter = 2 [json_name = "filter"];
     */
    public Builder clearFilter() {  copyOnWrite();
      instance.clearFilter();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.analytics.v1.polls.TotalStatsRequest)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.analytics.polls.v1.TotalStatsRequest();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "bitField0_",
            "organizationId_",
            "filter_",
          };
          java.lang.String info =
              "\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u1009" +
              "\u0000";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.analytics.polls.v1.TotalStatsRequest.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.analytics.v1.polls.TotalStatsRequest)
  private static final com.streamlayer.analytics.polls.v1.TotalStatsRequest DEFAULT_INSTANCE;
  static {
    TotalStatsRequest defaultInstance = new TotalStatsRequest();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      TotalStatsRequest.class, defaultInstance);
  }

  public static com.streamlayer.analytics.polls.v1.TotalStatsRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy