main.java.com.streamlayer.sportsdata.client.bets.GamePropOutcome 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.GamePropOutcome}
*/
public final class GamePropOutcome extends
com.google.protobuf.GeneratedMessageLite<
GamePropOutcome, GamePropOutcome.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.GamePropOutcome)
GamePropOutcomeOrBuilder {
private GamePropOutcome() {
outcome_ = "";
participant_ = "";
betLink_ = "";
}
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* int32 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* int32 id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(int value) {
id_ = value;
}
/**
* int32 id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = 0;
}
public static final int OUTCOME_FIELD_NUMBER = 2;
private java.lang.String outcome_;
/**
* string outcome = 2 [json_name = "outcome"];
* @return The outcome.
*/
@java.lang.Override
public java.lang.String getOutcome() {
return outcome_;
}
/**
* string outcome = 2 [json_name = "outcome"];
* @return The bytes for outcome.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOutcomeBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(outcome_);
}
/**
* string outcome = 2 [json_name = "outcome"];
* @param value The outcome to set.
*/
private void setOutcome(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
outcome_ = value;
}
/**
* string outcome = 2 [json_name = "outcome"];
*/
private void clearOutcome() {
outcome_ = getDefaultInstance().getOutcome();
}
/**
* string outcome = 2 [json_name = "outcome"];
* @param value The bytes for outcome to set.
*/
private void setOutcomeBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
outcome_ = value.toStringUtf8();
}
public static final int PAYOUT_FIELD_NUMBER = 3;
private int payout_;
/**
* int32 payout = 3 [json_name = "payout"];
* @return The payout.
*/
@java.lang.Override
public int getPayout() {
return payout_;
}
/**
* int32 payout = 3 [json_name = "payout"];
* @param value The payout to set.
*/
private void setPayout(int value) {
payout_ = value;
}
/**
* int32 payout = 3 [json_name = "payout"];
*/
private void clearPayout() {
payout_ = 0;
}
public static final int PARTICIPANT_FIELD_NUMBER = 4;
private java.lang.String participant_;
/**
* string participant = 4 [json_name = "participant"];
* @return The participant.
*/
@java.lang.Override
public java.lang.String getParticipant() {
return participant_;
}
/**
* string participant = 4 [json_name = "participant"];
* @return The bytes for participant.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParticipantBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(participant_);
}
/**
* string participant = 4 [json_name = "participant"];
* @param value The participant to set.
*/
private void setParticipant(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
participant_ = value;
}
/**
* string participant = 4 [json_name = "participant"];
*/
private void clearParticipant() {
participant_ = getDefaultInstance().getParticipant();
}
/**
* string participant = 4 [json_name = "participant"];
* @param value The bytes for participant to set.
*/
private void setParticipantBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
participant_ = value.toStringUtf8();
}
public static final int VALUE_FIELD_NUMBER = 6;
private double value_;
/**
* double value = 6 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
* double value = 6 [json_name = "value"];
* @param value The value to set.
*/
private void setValue(double value) {
value_ = value;
}
/**
* double value = 6 [json_name = "value"];
*/
private void clearValue() {
value_ = 0D;
}
public static final int BET_LINK_FIELD_NUMBER = 7;
private java.lang.String betLink_;
/**
* string bet_link = 7 [json_name = "betLink"];
* @return The betLink.
*/
@java.lang.Override
public java.lang.String getBetLink() {
return betLink_;
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @return The bytes for betLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBetLinkBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(betLink_);
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @param value The betLink to set.
*/
private void setBetLink(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
betLink_ = value;
}
/**
* string bet_link = 7 [json_name = "betLink"];
*/
private void clearBetLink() {
betLink_ = getDefaultInstance().getBetLink();
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @param value The bytes for betLink to set.
*/
private void setBetLinkBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
betLink_ = value.toStringUtf8();
}
public static com.streamlayer.sportsdata.client.bets.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome 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.GamePropOutcome prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.GamePropOutcome}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.GamePropOutcome, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.GamePropOutcome)
com.streamlayer.sportsdata.client.bets.GamePropOutcomeOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.GamePropOutcome.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public int getId() {
return instance.getId();
}
/**
* int32 id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
* int32 id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
* string outcome = 2 [json_name = "outcome"];
* @return The outcome.
*/
@java.lang.Override
public java.lang.String getOutcome() {
return instance.getOutcome();
}
/**
* string outcome = 2 [json_name = "outcome"];
* @return The bytes for outcome.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOutcomeBytes() {
return instance.getOutcomeBytes();
}
/**
* string outcome = 2 [json_name = "outcome"];
* @param value The outcome to set.
* @return This builder for chaining.
*/
public Builder setOutcome(
java.lang.String value) {
copyOnWrite();
instance.setOutcome(value);
return this;
}
/**
* string outcome = 2 [json_name = "outcome"];
* @return This builder for chaining.
*/
public Builder clearOutcome() {
copyOnWrite();
instance.clearOutcome();
return this;
}
/**
* string outcome = 2 [json_name = "outcome"];
* @param value The bytes for outcome to set.
* @return This builder for chaining.
*/
public Builder setOutcomeBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setOutcomeBytes(value);
return this;
}
/**
* int32 payout = 3 [json_name = "payout"];
* @return The payout.
*/
@java.lang.Override
public int getPayout() {
return instance.getPayout();
}
/**
* int32 payout = 3 [json_name = "payout"];
* @param value The payout to set.
* @return This builder for chaining.
*/
public Builder setPayout(int value) {
copyOnWrite();
instance.setPayout(value);
return this;
}
/**
* int32 payout = 3 [json_name = "payout"];
* @return This builder for chaining.
*/
public Builder clearPayout() {
copyOnWrite();
instance.clearPayout();
return this;
}
/**
* string participant = 4 [json_name = "participant"];
* @return The participant.
*/
@java.lang.Override
public java.lang.String getParticipant() {
return instance.getParticipant();
}
/**
* string participant = 4 [json_name = "participant"];
* @return The bytes for participant.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParticipantBytes() {
return instance.getParticipantBytes();
}
/**
* string participant = 4 [json_name = "participant"];
* @param value The participant to set.
* @return This builder for chaining.
*/
public Builder setParticipant(
java.lang.String value) {
copyOnWrite();
instance.setParticipant(value);
return this;
}
/**
* string participant = 4 [json_name = "participant"];
* @return This builder for chaining.
*/
public Builder clearParticipant() {
copyOnWrite();
instance.clearParticipant();
return this;
}
/**
* string participant = 4 [json_name = "participant"];
* @param value The bytes for participant to set.
* @return This builder for chaining.
*/
public Builder setParticipantBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setParticipantBytes(value);
return this;
}
/**
* double value = 6 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public double getValue() {
return instance.getValue();
}
/**
* double value = 6 [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 = 6 [json_name = "value"];
* @return This builder for chaining.
*/
public Builder clearValue() {
copyOnWrite();
instance.clearValue();
return this;
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @return The betLink.
*/
@java.lang.Override
public java.lang.String getBetLink() {
return instance.getBetLink();
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @return The bytes for betLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBetLinkBytes() {
return instance.getBetLinkBytes();
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @param value The betLink to set.
* @return This builder for chaining.
*/
public Builder setBetLink(
java.lang.String value) {
copyOnWrite();
instance.setBetLink(value);
return this;
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @return This builder for chaining.
*/
public Builder clearBetLink() {
copyOnWrite();
instance.clearBetLink();
return this;
}
/**
* string bet_link = 7 [json_name = "betLink"];
* @param value The bytes for betLink to set.
* @return This builder for chaining.
*/
public Builder setBetLinkBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setBetLinkBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.GamePropOutcome)
}
@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.GamePropOutcome();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"outcome_",
"payout_",
"participant_",
"value_",
"betLink_",
};
java.lang.String info =
"\u0000\u0006\u0000\u0000\u0001\u0007\u0006\u0000\u0000\u0000\u0001\u0004\u0002\u0208" +
"\u0003\u0004\u0004\u0208\u0006\u0000\u0007\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.GamePropOutcome.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.GamePropOutcome)
private static final com.streamlayer.sportsdata.client.bets.GamePropOutcome DEFAULT_INSTANCE;
static {
GamePropOutcome defaultInstance = new GamePropOutcome();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GamePropOutcome.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.GamePropOutcome getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}