main.java.com.streamlayer.sportsdata.client.bets.GameProp 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.GameProp}
*/
public final class GameProp extends
com.google.protobuf.GeneratedMessageLite<
GameProp, GameProp.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.GameProp)
GamePropOrBuilder {
private GameProp() {
bet_ = "";
period_ = "";
outcomes_ = emptyProtobufList();
}
public static final int BET_FIELD_NUMBER = 1;
private java.lang.String bet_;
/**
* string bet = 1 [json_name = "bet"];
* @return The bet.
*/
@java.lang.Override
public java.lang.String getBet() {
return bet_;
}
/**
* string bet = 1 [json_name = "bet"];
* @return The bytes for bet.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBetBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(bet_);
}
/**
* string bet = 1 [json_name = "bet"];
* @param value The bet to set.
*/
private void setBet(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
bet_ = value;
}
/**
* string bet = 1 [json_name = "bet"];
*/
private void clearBet() {
bet_ = getDefaultInstance().getBet();
}
/**
* string bet = 1 [json_name = "bet"];
* @param value The bytes for bet to set.
*/
private void setBetBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
bet_ = value.toStringUtf8();
}
public static final int PERIOD_FIELD_NUMBER = 2;
private java.lang.String period_;
/**
* string period = 2 [json_name = "period"];
* @return The period.
*/
@java.lang.Override
public java.lang.String getPeriod() {
return period_;
}
/**
* string period = 2 [json_name = "period"];
* @return The bytes for period.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPeriodBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(period_);
}
/**
* string period = 2 [json_name = "period"];
* @param value The period to set.
*/
private void setPeriod(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
period_ = value;
}
/**
* string period = 2 [json_name = "period"];
*/
private void clearPeriod() {
period_ = getDefaultInstance().getPeriod();
}
/**
* string period = 2 [json_name = "period"];
* @param value The bytes for period to set.
*/
private void setPeriodBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
period_ = value.toStringUtf8();
}
public static final int OUTCOMES_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.ProtobufList outcomes_;
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
@java.lang.Override
public java.util.List getOutcomesList() {
return outcomes_;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public java.util.List extends com.streamlayer.sportsdata.client.bets.GamePropOutcomeOrBuilder>
getOutcomesOrBuilderList() {
return outcomes_;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
@java.lang.Override
public int getOutcomesCount() {
return outcomes_.size();
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.client.bets.GamePropOutcome getOutcomes(int index) {
return outcomes_.get(index);
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public com.streamlayer.sportsdata.client.bets.GamePropOutcomeOrBuilder 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.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
private void setOutcomes(
int index, com.streamlayer.sportsdata.client.bets.GamePropOutcome value) {
value.getClass();
ensureOutcomesIsMutable();
outcomes_.set(index, value);
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
private void addOutcomes(com.streamlayer.sportsdata.client.bets.GamePropOutcome value) {
value.getClass();
ensureOutcomesIsMutable();
outcomes_.add(value);
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
private void addOutcomes(
int index, com.streamlayer.sportsdata.client.bets.GamePropOutcome value) {
value.getClass();
ensureOutcomesIsMutable();
outcomes_.add(index, value);
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
private void addAllOutcomes(
java.lang.Iterable extends com.streamlayer.sportsdata.client.bets.GamePropOutcome> values) {
ensureOutcomesIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, outcomes_);
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
private void clearOutcomes() {
outcomes_ = emptyProtobufList();
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
private void removeOutcomes(int index) {
ensureOutcomesIsMutable();
outcomes_.remove(index);
}
public static com.streamlayer.sportsdata.client.bets.GameProp 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.GameProp 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.GameProp 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.GameProp 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.GameProp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.GameProp 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.GameProp 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.GameProp 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.GameProp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.GameProp 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.GameProp 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.GameProp 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.GameProp prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.GameProp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.GameProp, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.GameProp)
com.streamlayer.sportsdata.client.bets.GamePropOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.GameProp.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string bet = 1 [json_name = "bet"];
* @return The bet.
*/
@java.lang.Override
public java.lang.String getBet() {
return instance.getBet();
}
/**
* string bet = 1 [json_name = "bet"];
* @return The bytes for bet.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBetBytes() {
return instance.getBetBytes();
}
/**
* string bet = 1 [json_name = "bet"];
* @param value The bet to set.
* @return This builder for chaining.
*/
public Builder setBet(
java.lang.String value) {
copyOnWrite();
instance.setBet(value);
return this;
}
/**
* string bet = 1 [json_name = "bet"];
* @return This builder for chaining.
*/
public Builder clearBet() {
copyOnWrite();
instance.clearBet();
return this;
}
/**
* string bet = 1 [json_name = "bet"];
* @param value The bytes for bet to set.
* @return This builder for chaining.
*/
public Builder setBetBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setBetBytes(value);
return this;
}
/**
* string period = 2 [json_name = "period"];
* @return The period.
*/
@java.lang.Override
public java.lang.String getPeriod() {
return instance.getPeriod();
}
/**
* string period = 2 [json_name = "period"];
* @return The bytes for period.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPeriodBytes() {
return instance.getPeriodBytes();
}
/**
* string period = 2 [json_name = "period"];
* @param value The period to set.
* @return This builder for chaining.
*/
public Builder setPeriod(
java.lang.String value) {
copyOnWrite();
instance.setPeriod(value);
return this;
}
/**
* string period = 2 [json_name = "period"];
* @return This builder for chaining.
*/
public Builder clearPeriod() {
copyOnWrite();
instance.clearPeriod();
return this;
}
/**
* string period = 2 [json_name = "period"];
* @param value The bytes for period to set.
* @return This builder for chaining.
*/
public Builder setPeriodBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setPeriodBytes(value);
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
@java.lang.Override
public java.util.List getOutcomesList() {
return java.util.Collections.unmodifiableList(
instance.getOutcomesList());
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
@java.lang.Override
public int getOutcomesCount() {
return instance.getOutcomesCount();
}/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.client.bets.GamePropOutcome getOutcomes(int index) {
return instance.getOutcomes(index);
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder setOutcomes(
int index, com.streamlayer.sportsdata.client.bets.GamePropOutcome value) {
copyOnWrite();
instance.setOutcomes(index, value);
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder setOutcomes(
int index, com.streamlayer.sportsdata.client.bets.GamePropOutcome.Builder builderForValue) {
copyOnWrite();
instance.setOutcomes(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder addOutcomes(com.streamlayer.sportsdata.client.bets.GamePropOutcome value) {
copyOnWrite();
instance.addOutcomes(value);
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder addOutcomes(
int index, com.streamlayer.sportsdata.client.bets.GamePropOutcome value) {
copyOnWrite();
instance.addOutcomes(index, value);
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder addOutcomes(
com.streamlayer.sportsdata.client.bets.GamePropOutcome.Builder builderForValue) {
copyOnWrite();
instance.addOutcomes(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder addOutcomes(
int index, com.streamlayer.sportsdata.client.bets.GamePropOutcome.Builder builderForValue) {
copyOnWrite();
instance.addOutcomes(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder addAllOutcomes(
java.lang.Iterable extends com.streamlayer.sportsdata.client.bets.GamePropOutcome> values) {
copyOnWrite();
instance.addAllOutcomes(values);
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder clearOutcomes() {
copyOnWrite();
instance.clearOutcomes();
return this;
}
/**
* repeated .streamlayer.sportsdata.client.bets.GamePropOutcome outcomes = 3 [json_name = "outcomes"];
*/
public Builder removeOutcomes(int index) {
copyOnWrite();
instance.removeOutcomes(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.GameProp)
}
@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.GameProp();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bet_",
"period_",
"outcomes_",
com.streamlayer.sportsdata.client.bets.GamePropOutcome.class,
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0001\u0000\u0001\u0208\u0002\u0208" +
"\u0003\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.GameProp.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.GameProp)
private static final com.streamlayer.sportsdata.client.bets.GameProp DEFAULT_INSTANCE;
static {
GameProp defaultInstance = new GameProp();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GameProp.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.GameProp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}