main.java.com.streamlayer.sportsdata.client.bets.TotalGoals 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.TotalGoals}
*/
public final class TotalGoals extends
com.google.protobuf.GeneratedMessageLite<
TotalGoals, TotalGoals.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.TotalGoals)
TotalGoalsOrBuilder {
private TotalGoals() {
overBetLink_ = "";
underBetLink_ = "";
}
public static final int VALUE_FIELD_NUMBER = 1;
private double value_;
/**
* double value = 1 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
* double value = 1 [json_name = "value"];
* @param value The value to set.
*/
private void setValue(double value) {
value_ = value;
}
/**
* double value = 1 [json_name = "value"];
*/
private void clearValue() {
value_ = 0D;
}
public static final int OVER_FIELD_NUMBER = 2;
private int over_;
/**
* int32 over = 2 [json_name = "over"];
* @return The over.
*/
@java.lang.Override
public int getOver() {
return over_;
}
/**
* int32 over = 2 [json_name = "over"];
* @param value The over to set.
*/
private void setOver(int value) {
over_ = value;
}
/**
* int32 over = 2 [json_name = "over"];
*/
private void clearOver() {
over_ = 0;
}
public static final int UNDER_FIELD_NUMBER = 3;
private int under_;
/**
* int32 under = 3 [json_name = "under"];
* @return The under.
*/
@java.lang.Override
public int getUnder() {
return under_;
}
/**
* int32 under = 3 [json_name = "under"];
* @param value The under to set.
*/
private void setUnder(int value) {
under_ = value;
}
/**
* int32 under = 3 [json_name = "under"];
*/
private void clearUnder() {
under_ = 0;
}
public static final int OVER_BET_LINK_FIELD_NUMBER = 4;
private java.lang.String overBetLink_;
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @return The overBetLink.
*/
@java.lang.Override
public java.lang.String getOverBetLink() {
return overBetLink_;
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @return The bytes for overBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOverBetLinkBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(overBetLink_);
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @param value The overBetLink to set.
*/
private void setOverBetLink(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
overBetLink_ = value;
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
*/
private void clearOverBetLink() {
overBetLink_ = getDefaultInstance().getOverBetLink();
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @param value The bytes for overBetLink to set.
*/
private void setOverBetLinkBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
overBetLink_ = value.toStringUtf8();
}
public static final int UNDER_BET_LINK_FIELD_NUMBER = 5;
private java.lang.String underBetLink_;
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @return The underBetLink.
*/
@java.lang.Override
public java.lang.String getUnderBetLink() {
return underBetLink_;
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @return The bytes for underBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnderBetLinkBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(underBetLink_);
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @param value The underBetLink to set.
*/
private void setUnderBetLink(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
underBetLink_ = value;
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
*/
private void clearUnderBetLink() {
underBetLink_ = getDefaultInstance().getUnderBetLink();
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @param value The bytes for underBetLink to set.
*/
private void setUnderBetLinkBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
underBetLink_ = value.toStringUtf8();
}
public static com.streamlayer.sportsdata.client.bets.TotalGoals 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.TotalGoals 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.TotalGoals 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.TotalGoals 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.TotalGoals parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.TotalGoals 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.TotalGoals 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.TotalGoals 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.TotalGoals parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.TotalGoals 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.TotalGoals 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.TotalGoals 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.TotalGoals prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.TotalGoals}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.TotalGoals, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.TotalGoals)
com.streamlayer.sportsdata.client.bets.TotalGoalsOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.TotalGoals.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* double value = 1 [json_name = "value"];
* @return The value.
*/
@java.lang.Override
public double getValue() {
return instance.getValue();
}
/**
* double value = 1 [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 = 1 [json_name = "value"];
* @return This builder for chaining.
*/
public Builder clearValue() {
copyOnWrite();
instance.clearValue();
return this;
}
/**
* int32 over = 2 [json_name = "over"];
* @return The over.
*/
@java.lang.Override
public int getOver() {
return instance.getOver();
}
/**
* int32 over = 2 [json_name = "over"];
* @param value The over to set.
* @return This builder for chaining.
*/
public Builder setOver(int value) {
copyOnWrite();
instance.setOver(value);
return this;
}
/**
* int32 over = 2 [json_name = "over"];
* @return This builder for chaining.
*/
public Builder clearOver() {
copyOnWrite();
instance.clearOver();
return this;
}
/**
* int32 under = 3 [json_name = "under"];
* @return The under.
*/
@java.lang.Override
public int getUnder() {
return instance.getUnder();
}
/**
* int32 under = 3 [json_name = "under"];
* @param value The under to set.
* @return This builder for chaining.
*/
public Builder setUnder(int value) {
copyOnWrite();
instance.setUnder(value);
return this;
}
/**
* int32 under = 3 [json_name = "under"];
* @return This builder for chaining.
*/
public Builder clearUnder() {
copyOnWrite();
instance.clearUnder();
return this;
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @return The overBetLink.
*/
@java.lang.Override
public java.lang.String getOverBetLink() {
return instance.getOverBetLink();
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @return The bytes for overBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOverBetLinkBytes() {
return instance.getOverBetLinkBytes();
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @param value The overBetLink to set.
* @return This builder for chaining.
*/
public Builder setOverBetLink(
java.lang.String value) {
copyOnWrite();
instance.setOverBetLink(value);
return this;
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @return This builder for chaining.
*/
public Builder clearOverBetLink() {
copyOnWrite();
instance.clearOverBetLink();
return this;
}
/**
* string over_bet_link = 4 [json_name = "overBetLink"];
* @param value The bytes for overBetLink to set.
* @return This builder for chaining.
*/
public Builder setOverBetLinkBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setOverBetLinkBytes(value);
return this;
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @return The underBetLink.
*/
@java.lang.Override
public java.lang.String getUnderBetLink() {
return instance.getUnderBetLink();
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @return The bytes for underBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUnderBetLinkBytes() {
return instance.getUnderBetLinkBytes();
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @param value The underBetLink to set.
* @return This builder for chaining.
*/
public Builder setUnderBetLink(
java.lang.String value) {
copyOnWrite();
instance.setUnderBetLink(value);
return this;
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @return This builder for chaining.
*/
public Builder clearUnderBetLink() {
copyOnWrite();
instance.clearUnderBetLink();
return this;
}
/**
* string under_bet_link = 5 [json_name = "underBetLink"];
* @param value The bytes for underBetLink to set.
* @return This builder for chaining.
*/
public Builder setUnderBetLinkBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setUnderBetLinkBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.TotalGoals)
}
@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.TotalGoals();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"value_",
"over_",
"under_",
"overBetLink_",
"underBetLink_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0000\u0002\u0004" +
"\u0003\u0004\u0004\u0208\u0005\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.TotalGoals.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.TotalGoals)
private static final com.streamlayer.sportsdata.client.bets.TotalGoals DEFAULT_INSTANCE;
static {
TotalGoals defaultInstance = new TotalGoals();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
TotalGoals.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.TotalGoals getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}