main.java.com.streamlayer.sportsdata.common.Outcome 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/sportsdata_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sportsdata.common;
/**
* Protobuf type {@code streamlayer.sportsdata.Outcome}
*/
public final class Outcome extends
com.google.protobuf.GeneratedMessageLite<
Outcome, Outcome.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.Outcome)
OutcomeOrBuilder {
private Outcome() {
outcome_ = "";
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 BET_LINK_FIELD_NUMBER = 4;
private java.lang.String betLink_;
/**
* string bet_link = 4 [json_name = "betLink"];
* @return The betLink.
*/
@java.lang.Override
public java.lang.String getBetLink() {
return betLink_;
}
/**
* string bet_link = 4 [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 = 4 [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 = 4 [json_name = "betLink"];
*/
private void clearBetLink() {
betLink_ = getDefaultInstance().getBetLink();
}
/**
* string bet_link = 4 [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.common.Outcome parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.common.Outcome 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.common.Outcome 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.common.Outcome 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.common.Outcome parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.common.Outcome 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.common.Outcome parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.common.Outcome 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.common.Outcome parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.common.Outcome 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.common.Outcome parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.common.Outcome 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.common.Outcome prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.Outcome}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.common.Outcome, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.Outcome)
com.streamlayer.sportsdata.common.OutcomeOrBuilder {
// Construct using com.streamlayer.sportsdata.common.Outcome.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 bet_link = 4 [json_name = "betLink"];
* @return The betLink.
*/
@java.lang.Override
public java.lang.String getBetLink() {
return instance.getBetLink();
}
/**
* string bet_link = 4 [json_name = "betLink"];
* @return The bytes for betLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBetLinkBytes() {
return instance.getBetLinkBytes();
}
/**
* string bet_link = 4 [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 = 4 [json_name = "betLink"];
* @return This builder for chaining.
*/
public Builder clearBetLink() {
copyOnWrite();
instance.clearBetLink();
return this;
}
/**
* string bet_link = 4 [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.Outcome)
}
@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.common.Outcome();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"outcome_",
"payout_",
"betLink_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0004\u0002\u0208" +
"\u0003\u0004\u0004\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.common.Outcome.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.Outcome)
private static final com.streamlayer.sportsdata.common.Outcome DEFAULT_INSTANCE;
static {
Outcome defaultInstance = new Outcome();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Outcome.class, defaultInstance);
}
public static com.streamlayer.sportsdata.common.Outcome getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}