main.java.com.streamlayer.sportsdata.client.bets.ShotsOnTarget 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.ShotsOnTarget}
*/
public final class ShotsOnTarget extends
com.google.protobuf.GeneratedMessageLite<
ShotsOnTarget, ShotsOnTarget.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.ShotsOnTarget)
ShotsOnTargetOrBuilder {
private ShotsOnTarget() {
player_ = "";
oneBetLink_ = "";
twoBetLink_ = "";
}
public static final int PLAYER_FIELD_NUMBER = 1;
private java.lang.String player_;
/**
* string player = 1 [json_name = "player"];
* @return The player.
*/
@java.lang.Override
public java.lang.String getPlayer() {
return player_;
}
/**
* string player = 1 [json_name = "player"];
* @return The bytes for player.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlayerBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(player_);
}
/**
* string player = 1 [json_name = "player"];
* @param value The player to set.
*/
private void setPlayer(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
player_ = value;
}
/**
* string player = 1 [json_name = "player"];
*/
private void clearPlayer() {
player_ = getDefaultInstance().getPlayer();
}
/**
* string player = 1 [json_name = "player"];
* @param value The bytes for player to set.
*/
private void setPlayerBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
player_ = value.toStringUtf8();
}
public static final int ONE_FIELD_NUMBER = 2;
private int one_;
/**
* int32 one = 2 [json_name = "one"];
* @return The one.
*/
@java.lang.Override
public int getOne() {
return one_;
}
/**
* int32 one = 2 [json_name = "one"];
* @param value The one to set.
*/
private void setOne(int value) {
one_ = value;
}
/**
* int32 one = 2 [json_name = "one"];
*/
private void clearOne() {
one_ = 0;
}
public static final int TWO_FIELD_NUMBER = 3;
private int two_;
/**
* int32 two = 3 [json_name = "two"];
* @return The two.
*/
@java.lang.Override
public int getTwo() {
return two_;
}
/**
* int32 two = 3 [json_name = "two"];
* @param value The two to set.
*/
private void setTwo(int value) {
two_ = value;
}
/**
* int32 two = 3 [json_name = "two"];
*/
private void clearTwo() {
two_ = 0;
}
public static final int ONE_BET_LINK_FIELD_NUMBER = 4;
private java.lang.String oneBetLink_;
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @return The oneBetLink.
*/
@java.lang.Override
public java.lang.String getOneBetLink() {
return oneBetLink_;
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @return The bytes for oneBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOneBetLinkBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(oneBetLink_);
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @param value The oneBetLink to set.
*/
private void setOneBetLink(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
oneBetLink_ = value;
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
*/
private void clearOneBetLink() {
oneBetLink_ = getDefaultInstance().getOneBetLink();
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @param value The bytes for oneBetLink to set.
*/
private void setOneBetLinkBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
oneBetLink_ = value.toStringUtf8();
}
public static final int TWO_BET_LINK_FIELD_NUMBER = 5;
private java.lang.String twoBetLink_;
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @return The twoBetLink.
*/
@java.lang.Override
public java.lang.String getTwoBetLink() {
return twoBetLink_;
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @return The bytes for twoBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTwoBetLinkBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(twoBetLink_);
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @param value The twoBetLink to set.
*/
private void setTwoBetLink(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
twoBetLink_ = value;
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
*/
private void clearTwoBetLink() {
twoBetLink_ = getDefaultInstance().getTwoBetLink();
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @param value The bytes for twoBetLink to set.
*/
private void setTwoBetLinkBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
twoBetLink_ = value.toStringUtf8();
}
public static com.streamlayer.sportsdata.client.bets.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget 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.ShotsOnTarget prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.ShotsOnTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.ShotsOnTarget, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.ShotsOnTarget)
com.streamlayer.sportsdata.client.bets.ShotsOnTargetOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.ShotsOnTarget.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string player = 1 [json_name = "player"];
* @return The player.
*/
@java.lang.Override
public java.lang.String getPlayer() {
return instance.getPlayer();
}
/**
* string player = 1 [json_name = "player"];
* @return The bytes for player.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlayerBytes() {
return instance.getPlayerBytes();
}
/**
* string player = 1 [json_name = "player"];
* @param value The player to set.
* @return This builder for chaining.
*/
public Builder setPlayer(
java.lang.String value) {
copyOnWrite();
instance.setPlayer(value);
return this;
}
/**
* string player = 1 [json_name = "player"];
* @return This builder for chaining.
*/
public Builder clearPlayer() {
copyOnWrite();
instance.clearPlayer();
return this;
}
/**
* string player = 1 [json_name = "player"];
* @param value The bytes for player to set.
* @return This builder for chaining.
*/
public Builder setPlayerBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setPlayerBytes(value);
return this;
}
/**
* int32 one = 2 [json_name = "one"];
* @return The one.
*/
@java.lang.Override
public int getOne() {
return instance.getOne();
}
/**
* int32 one = 2 [json_name = "one"];
* @param value The one to set.
* @return This builder for chaining.
*/
public Builder setOne(int value) {
copyOnWrite();
instance.setOne(value);
return this;
}
/**
* int32 one = 2 [json_name = "one"];
* @return This builder for chaining.
*/
public Builder clearOne() {
copyOnWrite();
instance.clearOne();
return this;
}
/**
* int32 two = 3 [json_name = "two"];
* @return The two.
*/
@java.lang.Override
public int getTwo() {
return instance.getTwo();
}
/**
* int32 two = 3 [json_name = "two"];
* @param value The two to set.
* @return This builder for chaining.
*/
public Builder setTwo(int value) {
copyOnWrite();
instance.setTwo(value);
return this;
}
/**
* int32 two = 3 [json_name = "two"];
* @return This builder for chaining.
*/
public Builder clearTwo() {
copyOnWrite();
instance.clearTwo();
return this;
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @return The oneBetLink.
*/
@java.lang.Override
public java.lang.String getOneBetLink() {
return instance.getOneBetLink();
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @return The bytes for oneBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOneBetLinkBytes() {
return instance.getOneBetLinkBytes();
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @param value The oneBetLink to set.
* @return This builder for chaining.
*/
public Builder setOneBetLink(
java.lang.String value) {
copyOnWrite();
instance.setOneBetLink(value);
return this;
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @return This builder for chaining.
*/
public Builder clearOneBetLink() {
copyOnWrite();
instance.clearOneBetLink();
return this;
}
/**
* string one_bet_link = 4 [json_name = "oneBetLink"];
* @param value The bytes for oneBetLink to set.
* @return This builder for chaining.
*/
public Builder setOneBetLinkBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setOneBetLinkBytes(value);
return this;
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @return The twoBetLink.
*/
@java.lang.Override
public java.lang.String getTwoBetLink() {
return instance.getTwoBetLink();
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @return The bytes for twoBetLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTwoBetLinkBytes() {
return instance.getTwoBetLinkBytes();
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @param value The twoBetLink to set.
* @return This builder for chaining.
*/
public Builder setTwoBetLink(
java.lang.String value) {
copyOnWrite();
instance.setTwoBetLink(value);
return this;
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @return This builder for chaining.
*/
public Builder clearTwoBetLink() {
copyOnWrite();
instance.clearTwoBetLink();
return this;
}
/**
* string two_bet_link = 5 [json_name = "twoBetLink"];
* @param value The bytes for twoBetLink to set.
* @return This builder for chaining.
*/
public Builder setTwoBetLinkBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTwoBetLinkBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.ShotsOnTarget)
}
@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.ShotsOnTarget();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"player_",
"one_",
"two_",
"oneBetLink_",
"twoBetLink_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\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.ShotsOnTarget.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.ShotsOnTarget)
private static final com.streamlayer.sportsdata.client.bets.ShotsOnTarget DEFAULT_INSTANCE;
static {
ShotsOnTarget defaultInstance = new ShotsOnTarget();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ShotsOnTarget.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.ShotsOnTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}