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

main.java.com.streamlayer.sports.common.NflEventStatistics 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/sports/sports_common.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.common;

/**
 * Protobuf type {@code streamlayer.sports.NflEventStatistics}
 */
public  final class NflEventStatistics extends
    com.google.protobuf.GeneratedMessageLite<
        NflEventStatistics, NflEventStatistics.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.NflEventStatistics)
    NflEventStatisticsOrBuilder {
  private NflEventStatistics() {
  }
  public static final int PASSES_FIELD_NUMBER = 1;
  private int passes_;
  /**
   * int32 passes = 1 [json_name = "passes"];
   * @return The passes.
   */
  @java.lang.Override
  public int getPasses() {
    return passes_;
  }
  /**
   * int32 passes = 1 [json_name = "passes"];
   * @param value The passes to set.
   */
  private void setPasses(int value) {
    
    passes_ = value;
  }
  /**
   * int32 passes = 1 [json_name = "passes"];
   */
  private void clearPasses() {

    passes_ = 0;
  }

  public static final int RUSHES_FIELD_NUMBER = 2;
  private int rushes_;
  /**
   * int32 rushes = 2 [json_name = "rushes"];
   * @return The rushes.
   */
  @java.lang.Override
  public int getRushes() {
    return rushes_;
  }
  /**
   * int32 rushes = 2 [json_name = "rushes"];
   * @param value The rushes to set.
   */
  private void setRushes(int value) {
    
    rushes_ = value;
  }
  /**
   * int32 rushes = 2 [json_name = "rushes"];
   */
  private void clearRushes() {

    rushes_ = 0;
  }

  public static final int PENALTIES_FIELD_NUMBER = 3;
  private int penalties_;
  /**
   * int32 penalties = 3 [json_name = "penalties"];
   * @return The penalties.
   */
  @java.lang.Override
  public int getPenalties() {
    return penalties_;
  }
  /**
   * int32 penalties = 3 [json_name = "penalties"];
   * @param value The penalties to set.
   */
  private void setPenalties(int value) {
    
    penalties_ = value;
  }
  /**
   * int32 penalties = 3 [json_name = "penalties"];
   */
  private void clearPenalties() {

    penalties_ = 0;
  }

  public static final int TURNOVERS_FIELD_NUMBER = 4;
  private int turnovers_;
  /**
   * int32 turnovers = 4 [json_name = "turnovers"];
   * @return The turnovers.
   */
  @java.lang.Override
  public int getTurnovers() {
    return turnovers_;
  }
  /**
   * int32 turnovers = 4 [json_name = "turnovers"];
   * @param value The turnovers to set.
   */
  private void setTurnovers(int value) {
    
    turnovers_ = value;
  }
  /**
   * int32 turnovers = 4 [json_name = "turnovers"];
   */
  private void clearTurnovers() {

    turnovers_ = 0;
  }

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

  public static com.streamlayer.sports.common.NflEventStatistics parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.sports.common.NflEventStatistics parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.sports.common.NflEventStatistics 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.sports.common.NflEventStatistics prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


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

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

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

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

    // @@protoc_insertion_point(builder_scope:streamlayer.sports.NflEventStatistics)
  }
  @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.sports.common.NflEventStatistics();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "passes_",
            "rushes_",
            "penalties_",
            "turnovers_",
          };
          java.lang.String info =
              "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0004\u0002\u0004" +
              "\u0003\u0004\u0004\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.sports.common.NflEventStatistics.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.sports.NflEventStatistics)
  private static final com.streamlayer.sports.common.NflEventStatistics DEFAULT_INSTANCE;
  static {
    NflEventStatistics defaultInstance = new NflEventStatistics();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      NflEventStatistics.class, defaultInstance);
  }

  public static com.streamlayer.sports.common.NflEventStatistics 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