main.java.com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest}
*/
public final class GamePropsSubscriptionRequest extends
com.google.protobuf.GeneratedMessageLite<
GamePropsSubscriptionRequest, GamePropsSubscriptionRequest.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest)
GamePropsSubscriptionRequestOrBuilder {
private GamePropsSubscriptionRequest() {
}
public interface FilterOrBuilder extends
// @@protoc_insertion_point(interface_extends:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter)
com.google.protobuf.MessageLiteOrBuilder {
/**
* string sport = 1 [json_name = "sport"];
* @return The sport.
*/
java.lang.String getSport();
/**
* string sport = 1 [json_name = "sport"];
* @return The bytes for sport.
*/
com.google.protobuf.ByteString
getSportBytes();
/**
* int32 game_id = 2 [json_name = "gameId"];
* @return The gameId.
*/
int getGameId();
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter}
*/
public static final class Filter extends
com.google.protobuf.GeneratedMessageLite<
Filter, Filter.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter)
FilterOrBuilder {
private Filter() {
sport_ = "";
}
public static final int SPORT_FIELD_NUMBER = 1;
private java.lang.String sport_;
/**
* string sport = 1 [json_name = "sport"];
* @return The sport.
*/
@java.lang.Override
public java.lang.String getSport() {
return sport_;
}
/**
* string sport = 1 [json_name = "sport"];
* @return The bytes for sport.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSportBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(sport_);
}
/**
* string sport = 1 [json_name = "sport"];
* @param value The sport to set.
*/
private void setSport(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
sport_ = value;
}
/**
* string sport = 1 [json_name = "sport"];
*/
private void clearSport() {
sport_ = getDefaultInstance().getSport();
}
/**
* string sport = 1 [json_name = "sport"];
* @param value The bytes for sport to set.
*/
private void setSportBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
sport_ = value.toStringUtf8();
}
public static final int GAME_ID_FIELD_NUMBER = 2;
private int gameId_;
/**
* int32 game_id = 2 [json_name = "gameId"];
* @return The gameId.
*/
@java.lang.Override
public int getGameId() {
return gameId_;
}
/**
* int32 game_id = 2 [json_name = "gameId"];
* @param value The gameId to set.
*/
private void setGameId(int value) {
gameId_ = value;
}
/**
* int32 game_id = 2 [json_name = "gameId"];
*/
private void clearGameId() {
gameId_ = 0;
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter 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.GamePropsSubscriptionRequest.Filter prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter)
com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.FilterOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string sport = 1 [json_name = "sport"];
* @return The sport.
*/
@java.lang.Override
public java.lang.String getSport() {
return instance.getSport();
}
/**
* string sport = 1 [json_name = "sport"];
* @return The bytes for sport.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSportBytes() {
return instance.getSportBytes();
}
/**
* string sport = 1 [json_name = "sport"];
* @param value The sport to set.
* @return This builder for chaining.
*/
public Builder setSport(
java.lang.String value) {
copyOnWrite();
instance.setSport(value);
return this;
}
/**
* string sport = 1 [json_name = "sport"];
* @return This builder for chaining.
*/
public Builder clearSport() {
copyOnWrite();
instance.clearSport();
return this;
}
/**
* string sport = 1 [json_name = "sport"];
* @param value The bytes for sport to set.
* @return This builder for chaining.
*/
public Builder setSportBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSportBytes(value);
return this;
}
/**
* int32 game_id = 2 [json_name = "gameId"];
* @return The gameId.
*/
@java.lang.Override
public int getGameId() {
return instance.getGameId();
}
/**
* int32 game_id = 2 [json_name = "gameId"];
* @param value The gameId to set.
* @return This builder for chaining.
*/
public Builder setGameId(int value) {
copyOnWrite();
instance.setGameId(value);
return this;
}
/**
* int32 game_id = 2 [json_name = "gameId"];
* @return This builder for chaining.
*/
public Builder clearGameId() {
copyOnWrite();
instance.clearGameId();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter)
}
@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.GamePropsSubscriptionRequest.Filter();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"sport_",
"gameId_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0004" +
"";
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.GamePropsSubscriptionRequest.Filter.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.GamePropsSubscriptionRequest.Filter)
private static final com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter DEFAULT_INSTANCE;
static {
Filter defaultInstance = new Filter();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Filter.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
private int bitField0_;
public static final int FILTER_FIELD_NUMBER = 1;
private com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter_;
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
@java.lang.Override
public boolean hasFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter getFilter() {
return filter_ == null ? com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter.getDefaultInstance() : filter_;
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
private void setFilter(com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter value) {
value.getClass();
filter_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeFilter(com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter value) {
value.getClass();
if (filter_ != null &&
filter_ != com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter.getDefaultInstance()) {
filter_ =
com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter.newBuilder(filter_).mergeFrom(value).buildPartial();
} else {
filter_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
private void clearFilter() { filter_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest 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.GamePropsSubscriptionRequest prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest)
com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequestOrBuilder {
// Construct using com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
@java.lang.Override
public boolean hasFilter() {
return instance.hasFilter();
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
@java.lang.Override
public com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter getFilter() {
return instance.getFilter();
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
public Builder setFilter(com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter value) {
copyOnWrite();
instance.setFilter(value);
return this;
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
public Builder setFilter(
com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter.Builder builderForValue) {
copyOnWrite();
instance.setFilter(builderForValue.build());
return this;
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
public Builder mergeFilter(com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter value) {
copyOnWrite();
instance.mergeFilter(value);
return this;
}
/**
* .streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest.Filter filter = 1 [json_name = "filter"];
*/
public Builder clearFilter() { copyOnWrite();
instance.clearFilter();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest)
}
@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.GamePropsSubscriptionRequest();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"filter_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0001\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u1009\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.sportsdata.client.bets.GamePropsSubscriptionRequest.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.GamePropsSubscriptionRequest)
private static final com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest DEFAULT_INSTANCE;
static {
GamePropsSubscriptionRequest defaultInstance = new GamePropsSubscriptionRequest();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GamePropsSubscriptionRequest.class, defaultInstance);
}
public static com.streamlayer.sportsdata.client.bets.GamePropsSubscriptionRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}