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

main.java.com.streamlayer.sportsdata.client.bets.GameLineTotalGoals 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.GameLineTotalGoals}
 */
public  final class GameLineTotalGoals extends
    com.google.protobuf.GeneratedMessageLite<
        GameLineTotalGoals, GameLineTotalGoals.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.GameLineTotalGoals)
    GameLineTotalGoalsOrBuilder {
  private GameLineTotalGoals() {
    outcomes_ = emptyProtobufList();
  }
  public static final int MARKET_ID_FIELD_NUMBER = 1;
  private int marketId_;
  /**
   * int32 market_id = 1 [json_name = "marketId"];
   * @return The marketId.
   */
  @java.lang.Override
  public int getMarketId() {
    return marketId_;
  }
  /**
   * int32 market_id = 1 [json_name = "marketId"];
   * @param value The marketId to set.
   */
  private void setMarketId(int value) {
    
    marketId_ = value;
  }
  /**
   * int32 market_id = 1 [json_name = "marketId"];
   */
  private void clearMarketId() {

    marketId_ = 0;
  }

  public static final int OUTCOMES_FIELD_NUMBER = 2;
  private com.google.protobuf.Internal.ProtobufList outcomes_;
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  @java.lang.Override
  public java.util.List getOutcomesList() {
    return outcomes_;
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  public java.util.List 
      getOutcomesOrBuilderList() {
    return outcomes_;
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  @java.lang.Override
  public int getOutcomesCount() {
    return outcomes_.size();
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  @java.lang.Override
  public com.streamlayer.sportsdata.client.bets.TotalGoals getOutcomes(int index) {
    return outcomes_.get(index);
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  public com.streamlayer.sportsdata.client.bets.TotalGoalsOrBuilder getOutcomesOrBuilder(
      int index) {
    return outcomes_.get(index);
  }
  private void ensureOutcomesIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = outcomes_;
    if (!tmp.isModifiable()) {
      outcomes_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  private void setOutcomes(
      int index, com.streamlayer.sportsdata.client.bets.TotalGoals value) {
    value.getClass();
  ensureOutcomesIsMutable();
    outcomes_.set(index, value);
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  private void addOutcomes(com.streamlayer.sportsdata.client.bets.TotalGoals value) {
    value.getClass();
  ensureOutcomesIsMutable();
    outcomes_.add(value);
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  private void addOutcomes(
      int index, com.streamlayer.sportsdata.client.bets.TotalGoals value) {
    value.getClass();
  ensureOutcomesIsMutable();
    outcomes_.add(index, value);
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  private void addAllOutcomes(
      java.lang.Iterable values) {
    ensureOutcomesIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, outcomes_);
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  private void clearOutcomes() {
    outcomes_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
   */
  private void removeOutcomes(int index) {
    ensureOutcomesIsMutable();
    outcomes_.remove(index);
  }

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

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

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


    /**
     * int32 market_id = 1 [json_name = "marketId"];
     * @return The marketId.
     */
    @java.lang.Override
    public int getMarketId() {
      return instance.getMarketId();
    }
    /**
     * int32 market_id = 1 [json_name = "marketId"];
     * @param value The marketId to set.
     * @return This builder for chaining.
     */
    public Builder setMarketId(int value) {
      copyOnWrite();
      instance.setMarketId(value);
      return this;
    }
    /**
     * int32 market_id = 1 [json_name = "marketId"];
     * @return This builder for chaining.
     */
    public Builder clearMarketId() {
      copyOnWrite();
      instance.clearMarketId();
      return this;
    }

    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    @java.lang.Override
    public java.util.List getOutcomesList() {
      return java.util.Collections.unmodifiableList(
          instance.getOutcomesList());
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    @java.lang.Override
    public int getOutcomesCount() {
      return instance.getOutcomesCount();
    }/**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    @java.lang.Override
    public com.streamlayer.sportsdata.client.bets.TotalGoals getOutcomes(int index) {
      return instance.getOutcomes(index);
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder setOutcomes(
        int index, com.streamlayer.sportsdata.client.bets.TotalGoals value) {
      copyOnWrite();
      instance.setOutcomes(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder setOutcomes(
        int index, com.streamlayer.sportsdata.client.bets.TotalGoals.Builder builderForValue) {
      copyOnWrite();
      instance.setOutcomes(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder addOutcomes(com.streamlayer.sportsdata.client.bets.TotalGoals value) {
      copyOnWrite();
      instance.addOutcomes(value);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder addOutcomes(
        int index, com.streamlayer.sportsdata.client.bets.TotalGoals value) {
      copyOnWrite();
      instance.addOutcomes(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder addOutcomes(
        com.streamlayer.sportsdata.client.bets.TotalGoals.Builder builderForValue) {
      copyOnWrite();
      instance.addOutcomes(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder addOutcomes(
        int index, com.streamlayer.sportsdata.client.bets.TotalGoals.Builder builderForValue) {
      copyOnWrite();
      instance.addOutcomes(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder addAllOutcomes(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllOutcomes(values);
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder clearOutcomes() {
      copyOnWrite();
      instance.clearOutcomes();
      return this;
    }
    /**
     * repeated .streamlayer.sportsdata.client.bets.TotalGoals outcomes = 2 [json_name = "outcomes"];
     */
    public Builder removeOutcomes(int index) {
      copyOnWrite();
      instance.removeOutcomes(index);
      return this;
    }

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

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