main.java.com.streamlayer.sportsdata.client.bets.GameLineMoneyLine Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// 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.GameLineMoneyLine}
*/
public final class GameLineMoneyLine extends
com.google.protobuf.GeneratedMessageLite<
GameLineMoneyLine, GameLineMoneyLine.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.GameLineMoneyLine)
GameLineMoneyLineOrBuilder {
private GameLineMoneyLine() {
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.Outcome outcomes = 2 [json_name = "outcomes"];
*/
@java.lang.Override
public java.util.List getOutcomesList() {
return outcomes_;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public java.util.List extends com.streamlayer.sportsdata.common.OutcomeOrBuilder>
getOutcomesOrBuilderList() {
return outcomes_;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
@java.lang.Override
public int getOutcomesCount() {
return outcomes_.size();
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.common.Outcome getOutcomes(int index) {
return outcomes_.get(index);
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public com.streamlayer.sportsdata.common.OutcomeOrBuilder 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.Outcome outcomes = 2 [json_name = "outcomes"];
*/
private void setOutcomes(
int index, com.streamlayer.sportsdata.common.Outcome value) {
value.getClass();
ensureOutcomesIsMutable();
outcomes_.set(index, value);
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
private void addOutcomes(com.streamlayer.sportsdata.common.Outcome value) {
value.getClass();
ensureOutcomesIsMutable();
outcomes_.add(value);
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
private void addOutcomes(
int index, com.streamlayer.sportsdata.common.Outcome value) {
value.getClass();
ensureOutcomesIsMutable();
outcomes_.add(index, value);
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
private void addAllOutcomes(
java.lang.Iterable extends com.streamlayer.sportsdata.common.Outcome> values) {
ensureOutcomesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, outcomes_);
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
private void clearOutcomes() {
outcomes_ = emptyProtobufList();
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
private void removeOutcomes(int index) {
ensureOutcomesIsMutable();
outcomes_.remove(index);
}
public static com.streamlayer.sportsdata.client.bets.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine 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.GameLineMoneyLine prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.GameLineMoneyLine}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.GameLineMoneyLine, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.GameLineMoneyLine)
com.streamlayer.sportsdata.client.bets.GameLineMoneyLineOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.GameLineMoneyLine.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.Outcome outcomes = 2 [json_name = "outcomes"];
*/
@java.lang.Override
public java.util.List getOutcomesList() {
return java.util.Collections.unmodifiableList(
instance.getOutcomesList());
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
@java.lang.Override
public int getOutcomesCount() {
return instance.getOutcomesCount();
}/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.common.Outcome getOutcomes(int index) {
return instance.getOutcomes(index);
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder setOutcomes(
int index, com.streamlayer.sportsdata.common.Outcome value) {
copyOnWrite();
instance.setOutcomes(index, value);
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder setOutcomes(
int index, com.streamlayer.sportsdata.common.Outcome.Builder builderForValue) {
copyOnWrite();
instance.setOutcomes(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder addOutcomes(com.streamlayer.sportsdata.common.Outcome value) {
copyOnWrite();
instance.addOutcomes(value);
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder addOutcomes(
int index, com.streamlayer.sportsdata.common.Outcome value) {
copyOnWrite();
instance.addOutcomes(index, value);
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder addOutcomes(
com.streamlayer.sportsdata.common.Outcome.Builder builderForValue) {
copyOnWrite();
instance.addOutcomes(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder addOutcomes(
int index, com.streamlayer.sportsdata.common.Outcome.Builder builderForValue) {
copyOnWrite();
instance.addOutcomes(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder addAllOutcomes(
java.lang.Iterable extends com.streamlayer.sportsdata.common.Outcome> values) {
copyOnWrite();
instance.addAllOutcomes(values);
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome outcomes = 2 [json_name = "outcomes"];
*/
public Builder clearOutcomes() {
copyOnWrite();
instance.clearOutcomes();
return this;
}
/**
* repeated .streamlayer.sportsdata.Outcome 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.GameLineMoneyLine)
}
@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.GameLineMoneyLine();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"marketId_",
"outcomes_",
com.streamlayer.sportsdata.common.Outcome.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.GameLineMoneyLine.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.GameLineMoneyLine)
private static final com.streamlayer.sportsdata.client.bets.GameLineMoneyLine DEFAULT_INSTANCE;
static {
GameLineMoneyLine defaultInstance = new GameLineMoneyLine();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GameLineMoneyLine.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.GameLineMoneyLine getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}