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

main.java.com.streamlayer.sportsdata.client.bets.Spread 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/sportsdata/client/bets/bets.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.sportsdata.client.bets;

/**
 * Protobuf type {@code streamlayer.sportsdata.client.bets.Spread}
 */
public  final class Spread extends
    com.google.protobuf.GeneratedMessageLite<
        Spread, Spread.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.Spread)
    SpreadOrBuilder {
  private Spread() {
    homeBetLink_ = "";
    awayBetLink_ = "";
  }
  public static final int VALUE_FIELD_NUMBER = 1;
  private double value_;
  /**
   * double value = 1 [json_name = "value"];
   * @return The value.
   */
  @java.lang.Override
  public double getValue() {
    return value_;
  }
  /**
   * double value = 1 [json_name = "value"];
   * @param value The value to set.
   */
  private void setValue(double value) {
    
    value_ = value;
  }
  /**
   * double value = 1 [json_name = "value"];
   */
  private void clearValue() {

    value_ = 0D;
  }

  public static final int HOME_FIELD_NUMBER = 2;
  private int home_;
  /**
   * int32 home = 2 [json_name = "home"];
   * @return The home.
   */
  @java.lang.Override
  public int getHome() {
    return home_;
  }
  /**
   * int32 home = 2 [json_name = "home"];
   * @param value The home to set.
   */
  private void setHome(int value) {
    
    home_ = value;
  }
  /**
   * int32 home = 2 [json_name = "home"];
   */
  private void clearHome() {

    home_ = 0;
  }

  public static final int AWAY_FIELD_NUMBER = 3;
  private int away_;
  /**
   * int32 away = 3 [json_name = "away"];
   * @return The away.
   */
  @java.lang.Override
  public int getAway() {
    return away_;
  }
  /**
   * int32 away = 3 [json_name = "away"];
   * @param value The away to set.
   */
  private void setAway(int value) {
    
    away_ = value;
  }
  /**
   * int32 away = 3 [json_name = "away"];
   */
  private void clearAway() {

    away_ = 0;
  }

  public static final int HOME_BET_LINK_FIELD_NUMBER = 4;
  private java.lang.String homeBetLink_;
  /**
   * string home_bet_link = 4 [json_name = "homeBetLink"];
   * @return The homeBetLink.
   */
  @java.lang.Override
  public java.lang.String getHomeBetLink() {
    return homeBetLink_;
  }
  /**
   * string home_bet_link = 4 [json_name = "homeBetLink"];
   * @return The bytes for homeBetLink.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getHomeBetLinkBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(homeBetLink_);
  }
  /**
   * string home_bet_link = 4 [json_name = "homeBetLink"];
   * @param value The homeBetLink to set.
   */
  private void setHomeBetLink(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    homeBetLink_ = value;
  }
  /**
   * string home_bet_link = 4 [json_name = "homeBetLink"];
   */
  private void clearHomeBetLink() {

    homeBetLink_ = getDefaultInstance().getHomeBetLink();
  }
  /**
   * string home_bet_link = 4 [json_name = "homeBetLink"];
   * @param value The bytes for homeBetLink to set.
   */
  private void setHomeBetLinkBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    homeBetLink_ = value.toStringUtf8();

  }

  public static final int AWAY_BET_LINK_FIELD_NUMBER = 5;
  private java.lang.String awayBetLink_;
  /**
   * string away_bet_link = 5 [json_name = "awayBetLink"];
   * @return The awayBetLink.
   */
  @java.lang.Override
  public java.lang.String getAwayBetLink() {
    return awayBetLink_;
  }
  /**
   * string away_bet_link = 5 [json_name = "awayBetLink"];
   * @return The bytes for awayBetLink.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAwayBetLinkBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(awayBetLink_);
  }
  /**
   * string away_bet_link = 5 [json_name = "awayBetLink"];
   * @param value The awayBetLink to set.
   */
  private void setAwayBetLink(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    awayBetLink_ = value;
  }
  /**
   * string away_bet_link = 5 [json_name = "awayBetLink"];
   */
  private void clearAwayBetLink() {

    awayBetLink_ = getDefaultInstance().getAwayBetLink();
  }
  /**
   * string away_bet_link = 5 [json_name = "awayBetLink"];
   * @param value The bytes for awayBetLink to set.
   */
  private void setAwayBetLinkBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    awayBetLink_ = value.toStringUtf8();

  }

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

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

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


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

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

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

    /**
     * string home_bet_link = 4 [json_name = "homeBetLink"];
     * @return The homeBetLink.
     */
    @java.lang.Override
    public java.lang.String getHomeBetLink() {
      return instance.getHomeBetLink();
    }
    /**
     * string home_bet_link = 4 [json_name = "homeBetLink"];
     * @return The bytes for homeBetLink.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getHomeBetLinkBytes() {
      return instance.getHomeBetLinkBytes();
    }
    /**
     * string home_bet_link = 4 [json_name = "homeBetLink"];
     * @param value The homeBetLink to set.
     * @return This builder for chaining.
     */
    public Builder setHomeBetLink(
        java.lang.String value) {
      copyOnWrite();
      instance.setHomeBetLink(value);
      return this;
    }
    /**
     * string home_bet_link = 4 [json_name = "homeBetLink"];
     * @return This builder for chaining.
     */
    public Builder clearHomeBetLink() {
      copyOnWrite();
      instance.clearHomeBetLink();
      return this;
    }
    /**
     * string home_bet_link = 4 [json_name = "homeBetLink"];
     * @param value The bytes for homeBetLink to set.
     * @return This builder for chaining.
     */
    public Builder setHomeBetLinkBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setHomeBetLinkBytes(value);
      return this;
    }

    /**
     * string away_bet_link = 5 [json_name = "awayBetLink"];
     * @return The awayBetLink.
     */
    @java.lang.Override
    public java.lang.String getAwayBetLink() {
      return instance.getAwayBetLink();
    }
    /**
     * string away_bet_link = 5 [json_name = "awayBetLink"];
     * @return The bytes for awayBetLink.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAwayBetLinkBytes() {
      return instance.getAwayBetLinkBytes();
    }
    /**
     * string away_bet_link = 5 [json_name = "awayBetLink"];
     * @param value The awayBetLink to set.
     * @return This builder for chaining.
     */
    public Builder setAwayBetLink(
        java.lang.String value) {
      copyOnWrite();
      instance.setAwayBetLink(value);
      return this;
    }
    /**
     * string away_bet_link = 5 [json_name = "awayBetLink"];
     * @return This builder for chaining.
     */
    public Builder clearAwayBetLink() {
      copyOnWrite();
      instance.clearAwayBetLink();
      return this;
    }
    /**
     * string away_bet_link = 5 [json_name = "awayBetLink"];
     * @param value The bytes for awayBetLink to set.
     * @return This builder for chaining.
     */
    public Builder setAwayBetLinkBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setAwayBetLinkBytes(value);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.Spread)
  }
  @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.sportsdata.client.bets.Spread();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "value_",
            "home_",
            "away_",
            "homeBetLink_",
            "awayBetLink_",
          };
          java.lang.String info =
              "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0000\u0002\u0004" +
              "\u0003\u0004\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.sportsdata.client.bets.Spread.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.sportsdata.client.bets.Spread)
  private static final com.streamlayer.sportsdata.client.bets.Spread DEFAULT_INSTANCE;
  static {
    Spread defaultInstance = new Spread();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      Spread.class, defaultInstance);
  }

  public static com.streamlayer.sportsdata.client.bets.Spread 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