main.java.com.streamlayer.inplay.ListSportsResponse 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/inplay.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.inplay;
/**
* Protobuf type {@code streamlayer.inplay.ListSportsResponse}
*/
public final class ListSportsResponse extends
com.google.protobuf.GeneratedMessageLite<
ListSportsResponse, ListSportsResponse.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.inplay.ListSportsResponse)
ListSportsResponseOrBuilder {
private ListSportsResponse() {
sports_ = emptyProtobufList();
}
public static final int SPORTS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList sports_;
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
@java.lang.Override
public java.util.List getSportsList() {
return sports_;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public java.util.List extends com.streamlayer.inplay.SportOrBuilder>
getSportsOrBuilderList() {
return sports_;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
@java.lang.Override
public int getSportsCount() {
return sports_.size();
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
@java.lang.Override
public com.streamlayer.inplay.Sport getSports(int index) {
return sports_.get(index);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public com.streamlayer.inplay.SportOrBuilder getSportsOrBuilder(
int index) {
return sports_.get(index);
}
private void ensureSportsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp = sports_;
if (!tmp.isModifiable()) {
sports_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
private void setSports(
int index, com.streamlayer.inplay.Sport value) {
value.getClass();
ensureSportsIsMutable();
sports_.set(index, value);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
private void addSports(com.streamlayer.inplay.Sport value) {
value.getClass();
ensureSportsIsMutable();
sports_.add(value);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
private void addSports(
int index, com.streamlayer.inplay.Sport value) {
value.getClass();
ensureSportsIsMutable();
sports_.add(index, value);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
private void addAllSports(
java.lang.Iterable extends com.streamlayer.inplay.Sport> values) {
ensureSportsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, sports_);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
private void clearSports() {
sports_ = emptyProtobufList();
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
private void removeSports(int index) {
ensureSportsIsMutable();
sports_.remove(index);
}
public static com.streamlayer.inplay.ListSportsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.ListSportsResponse 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.ListSportsResponse 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.ListSportsResponse 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.ListSportsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.inplay.ListSportsResponse 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.ListSportsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.ListSportsResponse 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.ListSportsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.ListSportsResponse 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.ListSportsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.inplay.ListSportsResponse 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.ListSportsResponse prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.inplay.ListSportsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.inplay.ListSportsResponse, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.inplay.ListSportsResponse)
com.streamlayer.inplay.ListSportsResponseOrBuilder {
// Construct using com.streamlayer.inplay.ListSportsResponse.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
@java.lang.Override
public java.util.List getSportsList() {
return java.util.Collections.unmodifiableList(
instance.getSportsList());
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
@java.lang.Override
public int getSportsCount() {
return instance.getSportsCount();
}/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
@java.lang.Override
public com.streamlayer.inplay.Sport getSports(int index) {
return instance.getSports(index);
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder setSports(
int index, com.streamlayer.inplay.Sport value) {
copyOnWrite();
instance.setSports(index, value);
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder setSports(
int index, com.streamlayer.inplay.Sport.Builder builderForValue) {
copyOnWrite();
instance.setSports(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder addSports(com.streamlayer.inplay.Sport value) {
copyOnWrite();
instance.addSports(value);
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder addSports(
int index, com.streamlayer.inplay.Sport value) {
copyOnWrite();
instance.addSports(index, value);
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder addSports(
com.streamlayer.inplay.Sport.Builder builderForValue) {
copyOnWrite();
instance.addSports(builderForValue.build());
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder addSports(
int index, com.streamlayer.inplay.Sport.Builder builderForValue) {
copyOnWrite();
instance.addSports(index,
builderForValue.build());
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder addAllSports(
java.lang.Iterable extends com.streamlayer.inplay.Sport> values) {
copyOnWrite();
instance.addAllSports(values);
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder clearSports() {
copyOnWrite();
instance.clearSports();
return this;
}
/**
* repeated .streamlayer.inplay.Sport sports = 1 [json_name = "sports"];
*/
public Builder removeSports(int index) {
copyOnWrite();
instance.removeSports(index);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.inplay.ListSportsResponse)
}
@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.ListSportsResponse();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"sports_",
com.streamlayer.inplay.Sport.class,
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
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.ListSportsResponse.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.ListSportsResponse)
private static final com.streamlayer.inplay.ListSportsResponse DEFAULT_INSTANCE;
static {
ListSportsResponse defaultInstance = new ListSportsResponse();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ListSportsResponse.class, defaultInstance);
}
public static com.streamlayer.inplay.ListSportsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}