main.java.com.streamlayer.inplay.common.Bet 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/inplay/common/inplay.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.inplay.common;
/**
* Protobuf type {@code streamlayer.inplay.common.Bet}
*/
public final class Bet extends
com.google.protobuf.GeneratedMessageLite<
Bet, Bet.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.inplay.common.Bet)
BetOrBuilder {
private Bet() {
id_ = "";
user_ = "";
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.String id_;
/**
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return id_;
}
/**
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(id_);
}
/**
* string id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
id_ = value;
}
/**
* string id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = getDefaultInstance().getId();
}
/**
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
*/
private void setIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
id_ = value.toStringUtf8();
}
public static final int USER_FIELD_NUMBER = 2;
private java.lang.String user_;
/**
* string user = 2 [json_name = "user"];
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
return user_;
}
/**
* string user = 2 [json_name = "user"];
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(user_);
}
/**
* string user = 2 [json_name = "user"];
* @param value The user to set.
*/
private void setUser(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
user_ = value;
}
/**
* string user = 2 [json_name = "user"];
*/
private void clearUser() {
user_ = getDefaultInstance().getUser();
}
/**
* string user = 2 [json_name = "user"];
* @param value The bytes for user to set.
*/
private void setUserBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
user_ = value.toStringUtf8();
}
public static final int MARKET_FIELD_NUMBER = 3;
private com.streamlayer.inplay.common.Market market_;
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
@java.lang.Override
public boolean hasMarket() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.Market getMarket() {
return market_ == null ? com.streamlayer.inplay.common.Market.getDefaultInstance() : market_;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
private void setMarket(com.streamlayer.inplay.common.Market value) {
value.getClass();
market_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeMarket(com.streamlayer.inplay.common.Market value) {
value.getClass();
if (market_ != null &&
market_ != com.streamlayer.inplay.common.Market.getDefaultInstance()) {
market_ =
com.streamlayer.inplay.common.Market.newBuilder(market_).mergeFrom(value).buildPartial();
} else {
market_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
private void clearMarket() { market_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int OUTCOME_FIELD_NUMBER = 4;
private com.streamlayer.inplay.common.Selection outcome_;
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
@java.lang.Override
public boolean hasOutcome() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.Selection getOutcome() {
return outcome_ == null ? com.streamlayer.inplay.common.Selection.getDefaultInstance() : outcome_;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
private void setOutcome(com.streamlayer.inplay.common.Selection value) {
value.getClass();
outcome_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeOutcome(com.streamlayer.inplay.common.Selection value) {
value.getClass();
if (outcome_ != null &&
outcome_ != com.streamlayer.inplay.common.Selection.getDefaultInstance()) {
outcome_ =
com.streamlayer.inplay.common.Selection.newBuilder(outcome_).mergeFrom(value).buildPartial();
} else {
outcome_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
private void clearOutcome() { outcome_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int RESULT_FIELD_NUMBER = 5;
private com.streamlayer.inplay.common.SelectionResult result_;
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
@java.lang.Override
public boolean hasResult() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionResult getResult() {
return result_ == null ? com.streamlayer.inplay.common.SelectionResult.getDefaultInstance() : result_;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
private void setResult(com.streamlayer.inplay.common.SelectionResult value) {
value.getClass();
result_ = value;
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeResult(com.streamlayer.inplay.common.SelectionResult value) {
value.getClass();
if (result_ != null &&
result_ != com.streamlayer.inplay.common.SelectionResult.getDefaultInstance()) {
result_ =
com.streamlayer.inplay.common.SelectionResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
bitField0_ |= 0x00000004;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
private void clearResult() { result_ = null;
bitField0_ = (bitField0_ & ~0x00000004);
}
public static final int PAYOUT_FIELD_NUMBER = 6;
private double payout_;
/**
* double payout = 6 [json_name = "payout"];
* @return The payout.
*/
@java.lang.Override
public double getPayout() {
return payout_;
}
/**
* double payout = 6 [json_name = "payout"];
* @param value The payout to set.
*/
private void setPayout(double value) {
payout_ = value;
}
/**
* double payout = 6 [json_name = "payout"];
*/
private void clearPayout() {
payout_ = 0D;
}
public static com.streamlayer.inplay.common.Bet parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Bet 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.inplay.common.Bet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Bet 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.inplay.common.Bet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.common.Bet 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.inplay.common.Bet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Bet 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.inplay.common.Bet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Bet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.inplay.common.Bet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.common.Bet 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.inplay.common.Bet prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.inplay.common.Bet}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.inplay.common.Bet, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.inplay.common.Bet)
com.streamlayer.inplay.common.BetOrBuilder {
// Construct using com.streamlayer.inplay.common.Bet.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return instance.getId();
}
/**
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return instance.getIdBytes();
}
/**
* string id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
* string id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setIdBytes(value);
return this;
}
/**
* string user = 2 [json_name = "user"];
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
return instance.getUser();
}
/**
* string user = 2 [json_name = "user"];
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserBytes() {
return instance.getUserBytes();
}
/**
* string user = 2 [json_name = "user"];
* @param value The user to set.
* @return This builder for chaining.
*/
public Builder setUser(
java.lang.String value) {
copyOnWrite();
instance.setUser(value);
return this;
}
/**
* string user = 2 [json_name = "user"];
* @return This builder for chaining.
*/
public Builder clearUser() {
copyOnWrite();
instance.clearUser();
return this;
}
/**
* string user = 2 [json_name = "user"];
* @param value The bytes for user to set.
* @return This builder for chaining.
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setUserBytes(value);
return this;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
@java.lang.Override
public boolean hasMarket() {
return instance.hasMarket();
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.Market getMarket() {
return instance.getMarket();
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
public Builder setMarket(com.streamlayer.inplay.common.Market value) {
copyOnWrite();
instance.setMarket(value);
return this;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
public Builder setMarket(
com.streamlayer.inplay.common.Market.Builder builderForValue) {
copyOnWrite();
instance.setMarket(builderForValue.build());
return this;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
public Builder mergeMarket(com.streamlayer.inplay.common.Market value) {
copyOnWrite();
instance.mergeMarket(value);
return this;
}
/**
* .streamlayer.inplay.common.Market market = 3 [json_name = "market"];
*/
public Builder clearMarket() { copyOnWrite();
instance.clearMarket();
return this;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
@java.lang.Override
public boolean hasOutcome() {
return instance.hasOutcome();
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.Selection getOutcome() {
return instance.getOutcome();
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
public Builder setOutcome(com.streamlayer.inplay.common.Selection value) {
copyOnWrite();
instance.setOutcome(value);
return this;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
public Builder setOutcome(
com.streamlayer.inplay.common.Selection.Builder builderForValue) {
copyOnWrite();
instance.setOutcome(builderForValue.build());
return this;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
public Builder mergeOutcome(com.streamlayer.inplay.common.Selection value) {
copyOnWrite();
instance.mergeOutcome(value);
return this;
}
/**
* .streamlayer.inplay.common.Selection outcome = 4 [json_name = "outcome"];
*/
public Builder clearOutcome() { copyOnWrite();
instance.clearOutcome();
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
@java.lang.Override
public boolean hasResult() {
return instance.hasResult();
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
@java.lang.Override
public com.streamlayer.inplay.common.SelectionResult getResult() {
return instance.getResult();
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
public Builder setResult(com.streamlayer.inplay.common.SelectionResult value) {
copyOnWrite();
instance.setResult(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
public Builder setResult(
com.streamlayer.inplay.common.SelectionResult.Builder builderForValue) {
copyOnWrite();
instance.setResult(builderForValue.build());
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
public Builder mergeResult(com.streamlayer.inplay.common.SelectionResult value) {
copyOnWrite();
instance.mergeResult(value);
return this;
}
/**
* .streamlayer.inplay.common.SelectionResult result = 5 [json_name = "result"];
*/
public Builder clearResult() { copyOnWrite();
instance.clearResult();
return this;
}
/**
* double payout = 6 [json_name = "payout"];
* @return The payout.
*/
@java.lang.Override
public double getPayout() {
return instance.getPayout();
}
/**
* double payout = 6 [json_name = "payout"];
* @param value The payout to set.
* @return This builder for chaining.
*/
public Builder setPayout(double value) {
copyOnWrite();
instance.setPayout(value);
return this;
}
/**
* double payout = 6 [json_name = "payout"];
* @return This builder for chaining.
*/
public Builder clearPayout() {
copyOnWrite();
instance.clearPayout();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.inplay.common.Bet)
}
@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.inplay.common.Bet();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"id_",
"user_",
"market_",
"outcome_",
"result_",
"payout_",
};
java.lang.String info =
"\u0000\u0006\u0000\u0001\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u1009\u0000\u0004\u1009\u0001\u0005\u1009\u0002\u0006\u0000";
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.inplay.common.Bet.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.inplay.common.Bet)
private static final com.streamlayer.inplay.common.Bet DEFAULT_INSTANCE;
static {
Bet defaultInstance = new Bet();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Bet.class, defaultInstance);
}
public static com.streamlayer.inplay.common.Bet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}