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

main.java.com.streamlayer.sports.baseball.Batting 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/baseball/baseball.proto

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

/**
 * Protobuf type {@code streamlayer.sports.baseball.Batting}
 */
public  final class Batting extends
    com.google.protobuf.GeneratedMessageLite<
        Batting, Batting.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.baseball.Batting)
    BattingOrBuilder {
  private Batting() {
    playerName_ = "";
    atBat_ = "";
    runs_ = "";
    hits_ = "";
    battingAverage_ = "";
  }
  public static final int PLAYER_NAME_FIELD_NUMBER = 1;
  private java.lang.String playerName_;
  /**
   * string player_name = 1 [json_name = "playerName"];
   * @return The playerName.
   */
  @java.lang.Override
  public java.lang.String getPlayerName() {
    return playerName_;
  }
  /**
   * string player_name = 1 [json_name = "playerName"];
   * @return The bytes for playerName.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getPlayerNameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(playerName_);
  }
  /**
   * string player_name = 1 [json_name = "playerName"];
   * @param value The playerName to set.
   */
  private void setPlayerName(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    playerName_ = value;
  }
  /**
   * string player_name = 1 [json_name = "playerName"];
   */
  private void clearPlayerName() {

    playerName_ = getDefaultInstance().getPlayerName();
  }
  /**
   * string player_name = 1 [json_name = "playerName"];
   * @param value The bytes for playerName to set.
   */
  private void setPlayerNameBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    playerName_ = value.toStringUtf8();

  }

  public static final int AT_BAT_FIELD_NUMBER = 2;
  private java.lang.String atBat_;
  /**
   * 
   * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
   * 
* * string at_bat = 2 [json_name = "atBat"]; * @return The atBat. */ @java.lang.Override public java.lang.String getAtBat() { return atBat_; } /** *
   * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
   * 
* * string at_bat = 2 [json_name = "atBat"]; * @return The bytes for atBat. */ @java.lang.Override public com.google.protobuf.ByteString getAtBatBytes() { return com.google.protobuf.ByteString.copyFromUtf8(atBat_); } /** *
   * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
   * 
* * string at_bat = 2 [json_name = "atBat"]; * @param value The atBat to set. */ private void setAtBat( java.lang.String value) { java.lang.Class valueClass = value.getClass(); atBat_ = value; } /** *
   * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
   * 
* * string at_bat = 2 [json_name = "atBat"]; */ private void clearAtBat() { atBat_ = getDefaultInstance().getAtBat(); } /** *
   * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
   * 
* * string at_bat = 2 [json_name = "atBat"]; * @param value The bytes for atBat to set. */ private void setAtBatBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); atBat_ = value.toStringUtf8(); } public static final int RUNS_FIELD_NUMBER = 3; private java.lang.String runs_; /** *
   * R – Runs scored: number of times a player crosses home plate
   * 
* * string runs = 3 [json_name = "runs"]; * @return The runs. */ @java.lang.Override public java.lang.String getRuns() { return runs_; } /** *
   * R – Runs scored: number of times a player crosses home plate
   * 
* * string runs = 3 [json_name = "runs"]; * @return The bytes for runs. */ @java.lang.Override public com.google.protobuf.ByteString getRunsBytes() { return com.google.protobuf.ByteString.copyFromUtf8(runs_); } /** *
   * R – Runs scored: number of times a player crosses home plate
   * 
* * string runs = 3 [json_name = "runs"]; * @param value The runs to set. */ private void setRuns( java.lang.String value) { java.lang.Class valueClass = value.getClass(); runs_ = value; } /** *
   * R – Runs scored: number of times a player crosses home plate
   * 
* * string runs = 3 [json_name = "runs"]; */ private void clearRuns() { runs_ = getDefaultInstance().getRuns(); } /** *
   * R – Runs scored: number of times a player crosses home plate
   * 
* * string runs = 3 [json_name = "runs"]; * @param value The bytes for runs to set. */ private void setRunsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); runs_ = value.toStringUtf8(); } public static final int HITS_FIELD_NUMBER = 4; private java.lang.String hits_; /** *
   * H – Hits: times reached base because of a batted, fair ball without error by the defense
   * 
* * string hits = 4 [json_name = "hits"]; * @return The hits. */ @java.lang.Override public java.lang.String getHits() { return hits_; } /** *
   * H – Hits: times reached base because of a batted, fair ball without error by the defense
   * 
* * string hits = 4 [json_name = "hits"]; * @return The bytes for hits. */ @java.lang.Override public com.google.protobuf.ByteString getHitsBytes() { return com.google.protobuf.ByteString.copyFromUtf8(hits_); } /** *
   * H – Hits: times reached base because of a batted, fair ball without error by the defense
   * 
* * string hits = 4 [json_name = "hits"]; * @param value The hits to set. */ private void setHits( java.lang.String value) { java.lang.Class valueClass = value.getClass(); hits_ = value; } /** *
   * H – Hits: times reached base because of a batted, fair ball without error by the defense
   * 
* * string hits = 4 [json_name = "hits"]; */ private void clearHits() { hits_ = getDefaultInstance().getHits(); } /** *
   * H – Hits: times reached base because of a batted, fair ball without error by the defense
   * 
* * string hits = 4 [json_name = "hits"]; * @param value The bytes for hits to set. */ private void setHitsBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); hits_ = value.toStringUtf8(); } public static final int BATTING_AVERAGE_FIELD_NUMBER = 5; private java.lang.String battingAverage_; /** *
   * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
   * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @return The battingAverage. */ @java.lang.Override public java.lang.String getBattingAverage() { return battingAverage_; } /** *
   * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
   * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @return The bytes for battingAverage. */ @java.lang.Override public com.google.protobuf.ByteString getBattingAverageBytes() { return com.google.protobuf.ByteString.copyFromUtf8(battingAverage_); } /** *
   * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
   * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @param value The battingAverage to set. */ private void setBattingAverage( java.lang.String value) { java.lang.Class valueClass = value.getClass(); battingAverage_ = value; } /** *
   * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
   * 
* * string batting_average = 5 [json_name = "battingAverage"]; */ private void clearBattingAverage() { battingAverage_ = getDefaultInstance().getBattingAverage(); } /** *
   * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
   * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @param value The bytes for battingAverage to set. */ private void setBattingAverageBytes( com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); battingAverage_ = value.toStringUtf8(); } public static com.streamlayer.sports.baseball.Batting parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.sports.baseball.Batting 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.baseball.Batting 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.baseball.Batting 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.baseball.Batting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.streamlayer.sports.baseball.Batting 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.baseball.Batting parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.sports.baseball.Batting 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.baseball.Batting parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.streamlayer.sports.baseball.Batting 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.baseball.Batting parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.streamlayer.sports.baseball.Batting 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.baseball.Batting prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code streamlayer.sports.baseball.Batting} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.streamlayer.sports.baseball.Batting, Builder> implements // @@protoc_insertion_point(builder_implements:streamlayer.sports.baseball.Batting) com.streamlayer.sports.baseball.BattingOrBuilder { // Construct using com.streamlayer.sports.baseball.Batting.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** * string player_name = 1 [json_name = "playerName"]; * @return The playerName. */ @java.lang.Override public java.lang.String getPlayerName() { return instance.getPlayerName(); } /** * string player_name = 1 [json_name = "playerName"]; * @return The bytes for playerName. */ @java.lang.Override public com.google.protobuf.ByteString getPlayerNameBytes() { return instance.getPlayerNameBytes(); } /** * string player_name = 1 [json_name = "playerName"]; * @param value The playerName to set. * @return This builder for chaining. */ public Builder setPlayerName( java.lang.String value) { copyOnWrite(); instance.setPlayerName(value); return this; } /** * string player_name = 1 [json_name = "playerName"]; * @return This builder for chaining. */ public Builder clearPlayerName() { copyOnWrite(); instance.clearPlayerName(); return this; } /** * string player_name = 1 [json_name = "playerName"]; * @param value The bytes for playerName to set. * @return This builder for chaining. */ public Builder setPlayerNameBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setPlayerNameBytes(value); return this; } /** *
     * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
     * 
* * string at_bat = 2 [json_name = "atBat"]; * @return The atBat. */ @java.lang.Override public java.lang.String getAtBat() { return instance.getAtBat(); } /** *
     * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
     * 
* * string at_bat = 2 [json_name = "atBat"]; * @return The bytes for atBat. */ @java.lang.Override public com.google.protobuf.ByteString getAtBatBytes() { return instance.getAtBatBytes(); } /** *
     * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
     * 
* * string at_bat = 2 [json_name = "atBat"]; * @param value The atBat to set. * @return This builder for chaining. */ public Builder setAtBat( java.lang.String value) { copyOnWrite(); instance.setAtBat(value); return this; } /** *
     * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
     * 
* * string at_bat = 2 [json_name = "atBat"]; * @return This builder for chaining. */ public Builder clearAtBat() { copyOnWrite(); instance.clearAtBat(); return this; } /** *
     * AB - At bat: Plate appearances, not including bases on balls, being hit by pitch, sacrifices, interference, or obstruction.
     * 
* * string at_bat = 2 [json_name = "atBat"]; * @param value The bytes for atBat to set. * @return This builder for chaining. */ public Builder setAtBatBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setAtBatBytes(value); return this; } /** *
     * R – Runs scored: number of times a player crosses home plate
     * 
* * string runs = 3 [json_name = "runs"]; * @return The runs. */ @java.lang.Override public java.lang.String getRuns() { return instance.getRuns(); } /** *
     * R – Runs scored: number of times a player crosses home plate
     * 
* * string runs = 3 [json_name = "runs"]; * @return The bytes for runs. */ @java.lang.Override public com.google.protobuf.ByteString getRunsBytes() { return instance.getRunsBytes(); } /** *
     * R – Runs scored: number of times a player crosses home plate
     * 
* * string runs = 3 [json_name = "runs"]; * @param value The runs to set. * @return This builder for chaining. */ public Builder setRuns( java.lang.String value) { copyOnWrite(); instance.setRuns(value); return this; } /** *
     * R – Runs scored: number of times a player crosses home plate
     * 
* * string runs = 3 [json_name = "runs"]; * @return This builder for chaining. */ public Builder clearRuns() { copyOnWrite(); instance.clearRuns(); return this; } /** *
     * R – Runs scored: number of times a player crosses home plate
     * 
* * string runs = 3 [json_name = "runs"]; * @param value The bytes for runs to set. * @return This builder for chaining. */ public Builder setRunsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setRunsBytes(value); return this; } /** *
     * H – Hits: times reached base because of a batted, fair ball without error by the defense
     * 
* * string hits = 4 [json_name = "hits"]; * @return The hits. */ @java.lang.Override public java.lang.String getHits() { return instance.getHits(); } /** *
     * H – Hits: times reached base because of a batted, fair ball without error by the defense
     * 
* * string hits = 4 [json_name = "hits"]; * @return The bytes for hits. */ @java.lang.Override public com.google.protobuf.ByteString getHitsBytes() { return instance.getHitsBytes(); } /** *
     * H – Hits: times reached base because of a batted, fair ball without error by the defense
     * 
* * string hits = 4 [json_name = "hits"]; * @param value The hits to set. * @return This builder for chaining. */ public Builder setHits( java.lang.String value) { copyOnWrite(); instance.setHits(value); return this; } /** *
     * H – Hits: times reached base because of a batted, fair ball without error by the defense
     * 
* * string hits = 4 [json_name = "hits"]; * @return This builder for chaining. */ public Builder clearHits() { copyOnWrite(); instance.clearHits(); return this; } /** *
     * H – Hits: times reached base because of a batted, fair ball without error by the defense
     * 
* * string hits = 4 [json_name = "hits"]; * @param value The bytes for hits to set. * @return This builder for chaining. */ public Builder setHitsBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setHitsBytes(value); return this; } /** *
     * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
     * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @return The battingAverage. */ @java.lang.Override public java.lang.String getBattingAverage() { return instance.getBattingAverage(); } /** *
     * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
     * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @return The bytes for battingAverage. */ @java.lang.Override public com.google.protobuf.ByteString getBattingAverageBytes() { return instance.getBattingAverageBytes(); } /** *
     * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
     * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @param value The battingAverage to set. * @return This builder for chaining. */ public Builder setBattingAverage( java.lang.String value) { copyOnWrite(); instance.setBattingAverage(value); return this; } /** *
     * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
     * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @return This builder for chaining. */ public Builder clearBattingAverage() { copyOnWrite(); instance.clearBattingAverage(); return this; } /** *
     * Batting average (also abbreviated AVG): hits divided by at bats (H/AB)
     * 
* * string batting_average = 5 [json_name = "battingAverage"]; * @param value The bytes for battingAverage to set. * @return This builder for chaining. */ public Builder setBattingAverageBytes( com.google.protobuf.ByteString value) { copyOnWrite(); instance.setBattingAverageBytes(value); return this; } // @@protoc_insertion_point(builder_scope:streamlayer.sports.baseball.Batting) } @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.baseball.Batting(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "playerName_", "atBat_", "runs_", "hits_", "battingAverage_", }; java.lang.String info = "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\u0208" + "\u0003\u0208\u0004\u0208\u0005\u0208"; 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.baseball.Batting.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.baseball.Batting) private static final com.streamlayer.sports.baseball.Batting DEFAULT_INSTANCE; static { Batting defaultInstance = new Batting(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Batting.class, defaultInstance); } public static com.streamlayer.sports.baseball.Batting 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