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

main.java.com.streamlayer.analytics.studio.v2.MetricsData 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/v2/studio/dashboard.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.analytics.studio.v2;

/**
 * Protobuf type {@code streamlayer.analytics.v2.studio.MetricsData}
 */
public  final class MetricsData extends
    com.google.protobuf.GeneratedMessageLite<
        MetricsData, MetricsData.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.analytics.v2.studio.MetricsData)
    MetricsDataOrBuilder {
  private MetricsData() {
  }
  public static final int TOTAL_FIELD_NUMBER = 1;
  private int total_;
  /**
   * int32 total = 1 [json_name = "total"];
   * @return The total.
   */
  @java.lang.Override
  public int getTotal() {
    return total_;
  }
  /**
   * int32 total = 1 [json_name = "total"];
   * @param value The total to set.
   */
  private void setTotal(int value) {
    
    total_ = value;
  }
  /**
   * int32 total = 1 [json_name = "total"];
   */
  private void clearTotal() {

    total_ = 0;
  }

  public static final int OPENED_FIELD_NUMBER = 2;
  private int opened_;
  /**
   * int32 opened = 2 [json_name = "opened"];
   * @return The opened.
   */
  @java.lang.Override
  public int getOpened() {
    return opened_;
  }
  /**
   * int32 opened = 2 [json_name = "opened"];
   * @param value The opened to set.
   */
  private void setOpened(int value) {
    
    opened_ = value;
  }
  /**
   * int32 opened = 2 [json_name = "opened"];
   */
  private void clearOpened() {

    opened_ = 0;
  }

  public static final int NAVIGATED_FIELD_NUMBER = 3;
  private int navigated_;
  /**
   * int32 navigated = 3 [json_name = "navigated"];
   * @return The navigated.
   */
  @java.lang.Override
  public int getNavigated() {
    return navigated_;
  }
  /**
   * int32 navigated = 3 [json_name = "navigated"];
   * @param value The navigated to set.
   */
  private void setNavigated(int value) {
    
    navigated_ = value;
  }
  /**
   * int32 navigated = 3 [json_name = "navigated"];
   */
  private void clearNavigated() {

    navigated_ = 0;
  }

  public static final int RECEIVED_FIELD_NUMBER = 4;
  private int received_;
  /**
   * int32 received = 4 [json_name = "received"];
   * @return The received.
   */
  @java.lang.Override
  public int getReceived() {
    return received_;
  }
  /**
   * int32 received = 4 [json_name = "received"];
   * @param value The received to set.
   */
  private void setReceived(int value) {
    
    received_ = value;
  }
  /**
   * int32 received = 4 [json_name = "received"];
   */
  private void clearReceived() {

    received_ = 0;
  }

  public static final int VOTED_FIELD_NUMBER = 5;
  private int voted_;
  /**
   * int32 voted = 5 [json_name = "voted"];
   * @return The voted.
   */
  @java.lang.Override
  public int getVoted() {
    return voted_;
  }
  /**
   * int32 voted = 5 [json_name = "voted"];
   * @param value The voted to set.
   */
  private void setVoted(int value) {
    
    voted_ = value;
  }
  /**
   * int32 voted = 5 [json_name = "voted"];
   */
  private void clearVoted() {

    voted_ = 0;
  }

  public static com.streamlayer.analytics.studio.v2.MetricsData parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.analytics.studio.v2.MetricsData 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.studio.v2.MetricsData 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.studio.v2.MetricsData 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.studio.v2.MetricsData parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.analytics.studio.v2.MetricsData 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.studio.v2.MetricsData parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.analytics.studio.v2.MetricsData 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.studio.v2.MetricsData parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.analytics.studio.v2.MetricsData 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.studio.v2.MetricsData parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.analytics.studio.v2.MetricsData 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.studio.v2.MetricsData prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * int32 total = 1 [json_name = "total"];
     * @return The total.
     */
    @java.lang.Override
    public int getTotal() {
      return instance.getTotal();
    }
    /**
     * int32 total = 1 [json_name = "total"];
     * @param value The total to set.
     * @return This builder for chaining.
     */
    public Builder setTotal(int value) {
      copyOnWrite();
      instance.setTotal(value);
      return this;
    }
    /**
     * int32 total = 1 [json_name = "total"];
     * @return This builder for chaining.
     */
    public Builder clearTotal() {
      copyOnWrite();
      instance.clearTotal();
      return this;
    }

    /**
     * int32 opened = 2 [json_name = "opened"];
     * @return The opened.
     */
    @java.lang.Override
    public int getOpened() {
      return instance.getOpened();
    }
    /**
     * int32 opened = 2 [json_name = "opened"];
     * @param value The opened to set.
     * @return This builder for chaining.
     */
    public Builder setOpened(int value) {
      copyOnWrite();
      instance.setOpened(value);
      return this;
    }
    /**
     * int32 opened = 2 [json_name = "opened"];
     * @return This builder for chaining.
     */
    public Builder clearOpened() {
      copyOnWrite();
      instance.clearOpened();
      return this;
    }

    /**
     * int32 navigated = 3 [json_name = "navigated"];
     * @return The navigated.
     */
    @java.lang.Override
    public int getNavigated() {
      return instance.getNavigated();
    }
    /**
     * int32 navigated = 3 [json_name = "navigated"];
     * @param value The navigated to set.
     * @return This builder for chaining.
     */
    public Builder setNavigated(int value) {
      copyOnWrite();
      instance.setNavigated(value);
      return this;
    }
    /**
     * int32 navigated = 3 [json_name = "navigated"];
     * @return This builder for chaining.
     */
    public Builder clearNavigated() {
      copyOnWrite();
      instance.clearNavigated();
      return this;
    }

    /**
     * int32 received = 4 [json_name = "received"];
     * @return The received.
     */
    @java.lang.Override
    public int getReceived() {
      return instance.getReceived();
    }
    /**
     * int32 received = 4 [json_name = "received"];
     * @param value The received to set.
     * @return This builder for chaining.
     */
    public Builder setReceived(int value) {
      copyOnWrite();
      instance.setReceived(value);
      return this;
    }
    /**
     * int32 received = 4 [json_name = "received"];
     * @return This builder for chaining.
     */
    public Builder clearReceived() {
      copyOnWrite();
      instance.clearReceived();
      return this;
    }

    /**
     * int32 voted = 5 [json_name = "voted"];
     * @return The voted.
     */
    @java.lang.Override
    public int getVoted() {
      return instance.getVoted();
    }
    /**
     * int32 voted = 5 [json_name = "voted"];
     * @param value The voted to set.
     * @return This builder for chaining.
     */
    public Builder setVoted(int value) {
      copyOnWrite();
      instance.setVoted(value);
      return this;
    }
    /**
     * int32 voted = 5 [json_name = "voted"];
     * @return This builder for chaining.
     */
    public Builder clearVoted() {
      copyOnWrite();
      instance.clearVoted();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.analytics.v2.studio.MetricsData)
  }
  @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.studio.v2.MetricsData();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "total_",
            "opened_",
            "navigated_",
            "received_",
            "voted_",
          };
          java.lang.String info =
              "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0004\u0002\u0004" +
              "\u0003\u0004\u0004\u0004\u0005\u0004";
          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.studio.v2.MetricsData.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.v2.studio.MetricsData)
  private static final com.streamlayer.analytics.studio.v2.MetricsData DEFAULT_INSTANCE;
  static {
    MetricsData defaultInstance = new MetricsData();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      MetricsData.class, defaultInstance);
  }

  public static com.streamlayer.analytics.studio.v2.MetricsData 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