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

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

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

/**
 * Protobuf type {@code streamlayer.sports.soccer.SoccerMatchOdds}
 */
public  final class SoccerMatchOdds extends
    com.google.protobuf.GeneratedMessageLite<
        SoccerMatchOdds, SoccerMatchOdds.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sports.soccer.SoccerMatchOdds)
    SoccerMatchOddsOrBuilder {
  private SoccerMatchOdds() {
  }
  public static final int HOME_TEAM_WIN_FIELD_NUMBER = 1;
  private double homeTeamWin_;
  /**
   * double home_team_win = 1 [json_name = "homeTeamWin"];
   * @return The homeTeamWin.
   */
  @java.lang.Override
  public double getHomeTeamWin() {
    return homeTeamWin_;
  }
  /**
   * double home_team_win = 1 [json_name = "homeTeamWin"];
   * @param value The homeTeamWin to set.
   */
  private void setHomeTeamWin(double value) {
    
    homeTeamWin_ = value;
  }
  /**
   * double home_team_win = 1 [json_name = "homeTeamWin"];
   */
  private void clearHomeTeamWin() {

    homeTeamWin_ = 0D;
  }

  public static final int DRAW_FIELD_NUMBER = 2;
  private double draw_;
  /**
   * double draw = 2 [json_name = "draw"];
   * @return The draw.
   */
  @java.lang.Override
  public double getDraw() {
    return draw_;
  }
  /**
   * double draw = 2 [json_name = "draw"];
   * @param value The draw to set.
   */
  private void setDraw(double value) {
    
    draw_ = value;
  }
  /**
   * double draw = 2 [json_name = "draw"];
   */
  private void clearDraw() {

    draw_ = 0D;
  }

  public static final int AWAY_TEAM_WIN_FIELD_NUMBER = 3;
  private double awayTeamWin_;
  /**
   * double away_team_win = 3 [json_name = "awayTeamWin"];
   * @return The awayTeamWin.
   */
  @java.lang.Override
  public double getAwayTeamWin() {
    return awayTeamWin_;
  }
  /**
   * double away_team_win = 3 [json_name = "awayTeamWin"];
   * @param value The awayTeamWin to set.
   */
  private void setAwayTeamWin(double value) {
    
    awayTeamWin_ = value;
  }
  /**
   * double away_team_win = 3 [json_name = "awayTeamWin"];
   */
  private void clearAwayTeamWin() {

    awayTeamWin_ = 0D;
  }

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

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

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


    /**
     * double home_team_win = 1 [json_name = "homeTeamWin"];
     * @return The homeTeamWin.
     */
    @java.lang.Override
    public double getHomeTeamWin() {
      return instance.getHomeTeamWin();
    }
    /**
     * double home_team_win = 1 [json_name = "homeTeamWin"];
     * @param value The homeTeamWin to set.
     * @return This builder for chaining.
     */
    public Builder setHomeTeamWin(double value) {
      copyOnWrite();
      instance.setHomeTeamWin(value);
      return this;
    }
    /**
     * double home_team_win = 1 [json_name = "homeTeamWin"];
     * @return This builder for chaining.
     */
    public Builder clearHomeTeamWin() {
      copyOnWrite();
      instance.clearHomeTeamWin();
      return this;
    }

    /**
     * double draw = 2 [json_name = "draw"];
     * @return The draw.
     */
    @java.lang.Override
    public double getDraw() {
      return instance.getDraw();
    }
    /**
     * double draw = 2 [json_name = "draw"];
     * @param value The draw to set.
     * @return This builder for chaining.
     */
    public Builder setDraw(double value) {
      copyOnWrite();
      instance.setDraw(value);
      return this;
    }
    /**
     * double draw = 2 [json_name = "draw"];
     * @return This builder for chaining.
     */
    public Builder clearDraw() {
      copyOnWrite();
      instance.clearDraw();
      return this;
    }

    /**
     * double away_team_win = 3 [json_name = "awayTeamWin"];
     * @return The awayTeamWin.
     */
    @java.lang.Override
    public double getAwayTeamWin() {
      return instance.getAwayTeamWin();
    }
    /**
     * double away_team_win = 3 [json_name = "awayTeamWin"];
     * @param value The awayTeamWin to set.
     * @return This builder for chaining.
     */
    public Builder setAwayTeamWin(double value) {
      copyOnWrite();
      instance.setAwayTeamWin(value);
      return this;
    }
    /**
     * double away_team_win = 3 [json_name = "awayTeamWin"];
     * @return This builder for chaining.
     */
    public Builder clearAwayTeamWin() {
      copyOnWrite();
      instance.clearAwayTeamWin();
      return this;
    }

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

  public static com.streamlayer.sports.soccer.SoccerMatchOdds 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