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

main.java.com.streamlayer.sportsdata.client.bets.NbaGameLine 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.NbaGameLine}
 */
public  final class NbaGameLine extends
    com.google.protobuf.GeneratedMessageLite<
        NbaGameLine, NbaGameLine.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.NbaGameLine)
    NbaGameLineOrBuilder {
  private NbaGameLine() {
    odds_ = emptyProtobufList();
  }
  public static final int ODDS_FIELD_NUMBER = 1;
  private com.google.protobuf.Internal.ProtobufList odds_;
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  @java.lang.Override
  public java.util.List getOddsList() {
    return odds_;
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  public java.util.List 
      getOddsOrBuilderList() {
    return odds_;
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  @java.lang.Override
  public int getOddsCount() {
    return odds_.size();
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  @java.lang.Override
  public com.streamlayer.sportsdata.common.GameOdds getOdds(int index) {
    return odds_.get(index);
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  public com.streamlayer.sportsdata.common.GameOddsOrBuilder getOddsOrBuilder(
      int index) {
    return odds_.get(index);
  }
  private void ensureOddsIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = odds_;
    if (!tmp.isModifiable()) {
      odds_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  private void setOdds(
      int index, com.streamlayer.sportsdata.common.GameOdds value) {
    value.getClass();
  ensureOddsIsMutable();
    odds_.set(index, value);
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  private void addOdds(com.streamlayer.sportsdata.common.GameOdds value) {
    value.getClass();
  ensureOddsIsMutable();
    odds_.add(value);
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  private void addOdds(
      int index, com.streamlayer.sportsdata.common.GameOdds value) {
    value.getClass();
  ensureOddsIsMutable();
    odds_.add(index, value);
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  private void addAllOdds(
      java.lang.Iterable values) {
    ensureOddsIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, odds_);
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  private void clearOdds() {
    odds_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
   */
  private void removeOdds(int index) {
    ensureOddsIsMutable();
    odds_.remove(index);
  }

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

  public static com.streamlayer.sportsdata.client.bets.NbaGameLine 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.NbaGameLine 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.NbaGameLine 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.NbaGameLine prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    @java.lang.Override
    public java.util.List getOddsList() {
      return java.util.Collections.unmodifiableList(
          instance.getOddsList());
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    @java.lang.Override
    public int getOddsCount() {
      return instance.getOddsCount();
    }/**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    @java.lang.Override
    public com.streamlayer.sportsdata.common.GameOdds getOdds(int index) {
      return instance.getOdds(index);
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder setOdds(
        int index, com.streamlayer.sportsdata.common.GameOdds value) {
      copyOnWrite();
      instance.setOdds(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder setOdds(
        int index, com.streamlayer.sportsdata.common.GameOdds.Builder builderForValue) {
      copyOnWrite();
      instance.setOdds(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder addOdds(com.streamlayer.sportsdata.common.GameOdds value) {
      copyOnWrite();
      instance.addOdds(value);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder addOdds(
        int index, com.streamlayer.sportsdata.common.GameOdds value) {
      copyOnWrite();
      instance.addOdds(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder addOdds(
        com.streamlayer.sportsdata.common.GameOdds.Builder builderForValue) {
      copyOnWrite();
      instance.addOdds(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder addOdds(
        int index, com.streamlayer.sportsdata.common.GameOdds.Builder builderForValue) {
      copyOnWrite();
      instance.addOdds(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder addAllOdds(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllOdds(values);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder clearOdds() {
      copyOnWrite();
      instance.clearOdds();
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.GameOdds odds = 1 [json_name = "odds"];
     */
    public Builder removeOdds(int index) {
      copyOnWrite();
      instance.removeOdds(index);
      return this;
    }

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

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