main.java.com.streamlayer.sports.common.EventTeamStatistics 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/sports/sports_common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.common;
/**
* Protobuf type {@code streamlayer.sports.EventTeamStatistics}
*/
public final class EventTeamStatistics extends
com.google.protobuf.GeneratedMessageLite<
EventTeamStatistics, EventTeamStatistics.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.EventTeamStatistics)
EventTeamStatisticsOrBuilder {
private EventTeamStatistics() {
}
private int statisticsCase_ = 0;
private java.lang.Object statistics_;
public enum StatisticsCase {
FOOTBALL(1),
SOCCER(2),
STATISTICS_NOT_SET(0);
private final int value;
private StatisticsCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatisticsCase valueOf(int value) {
return forNumber(value);
}
public static StatisticsCase forNumber(int value) {
switch (value) {
case 1: return FOOTBALL;
case 2: return SOCCER;
case 0: return STATISTICS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public StatisticsCase
getStatisticsCase() {
return StatisticsCase.forNumber(
statisticsCase_);
}
private void clearStatistics() {
statisticsCase_ = 0;
statistics_ = null;
}
public static final int FOOTBALL_FIELD_NUMBER = 1;
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
@java.lang.Override
public boolean hasFootball() {
return statisticsCase_ == 1;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
@java.lang.Override
public com.streamlayer.sports.common.NflEventStatistics getFootball() {
if (statisticsCase_ == 1) {
return (com.streamlayer.sports.common.NflEventStatistics) statistics_;
}
return com.streamlayer.sports.common.NflEventStatistics.getDefaultInstance();
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
private void setFootball(com.streamlayer.sports.common.NflEventStatistics value) {
value.getClass();
statistics_ = value;
statisticsCase_ = 1;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
private void mergeFootball(com.streamlayer.sports.common.NflEventStatistics value) {
value.getClass();
if (statisticsCase_ == 1 &&
statistics_ != com.streamlayer.sports.common.NflEventStatistics.getDefaultInstance()) {
statistics_ = com.streamlayer.sports.common.NflEventStatistics.newBuilder((com.streamlayer.sports.common.NflEventStatistics) statistics_)
.mergeFrom(value).buildPartial();
} else {
statistics_ = value;
}
statisticsCase_ = 1;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
private void clearFootball() {
if (statisticsCase_ == 1) {
statisticsCase_ = 0;
statistics_ = null;
}
}
public static final int SOCCER_FIELD_NUMBER = 2;
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
@java.lang.Override
public boolean hasSoccer() {
return statisticsCase_ == 2;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
@java.lang.Override
public com.streamlayer.sports.common.SoccerEventStatistics getSoccer() {
if (statisticsCase_ == 2) {
return (com.streamlayer.sports.common.SoccerEventStatistics) statistics_;
}
return com.streamlayer.sports.common.SoccerEventStatistics.getDefaultInstance();
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
private void setSoccer(com.streamlayer.sports.common.SoccerEventStatistics value) {
value.getClass();
statistics_ = value;
statisticsCase_ = 2;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
private void mergeSoccer(com.streamlayer.sports.common.SoccerEventStatistics value) {
value.getClass();
if (statisticsCase_ == 2 &&
statistics_ != com.streamlayer.sports.common.SoccerEventStatistics.getDefaultInstance()) {
statistics_ = com.streamlayer.sports.common.SoccerEventStatistics.newBuilder((com.streamlayer.sports.common.SoccerEventStatistics) statistics_)
.mergeFrom(value).buildPartial();
} else {
statistics_ = value;
}
statisticsCase_ = 2;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
private void clearSoccer() {
if (statisticsCase_ == 2) {
statisticsCase_ = 0;
statistics_ = null;
}
}
public static com.streamlayer.sports.common.EventTeamStatistics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.EventTeamStatistics 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.sports.common.EventTeamStatistics parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.EventTeamStatistics 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.sports.common.EventTeamStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.common.EventTeamStatistics 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.sports.common.EventTeamStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.EventTeamStatistics 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.sports.common.EventTeamStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.EventTeamStatistics parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sports.common.EventTeamStatistics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.common.EventTeamStatistics 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.sports.common.EventTeamStatistics prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.EventTeamStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.common.EventTeamStatistics, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.EventTeamStatistics)
com.streamlayer.sports.common.EventTeamStatisticsOrBuilder {
// Construct using com.streamlayer.sports.common.EventTeamStatistics.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public StatisticsCase
getStatisticsCase() {
return instance.getStatisticsCase();
}
public Builder clearStatistics() {
copyOnWrite();
instance.clearStatistics();
return this;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
@java.lang.Override
public boolean hasFootball() {
return instance.hasFootball();
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
@java.lang.Override
public com.streamlayer.sports.common.NflEventStatistics getFootball() {
return instance.getFootball();
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
public Builder setFootball(com.streamlayer.sports.common.NflEventStatistics value) {
copyOnWrite();
instance.setFootball(value);
return this;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
public Builder setFootball(
com.streamlayer.sports.common.NflEventStatistics.Builder builderForValue) {
copyOnWrite();
instance.setFootball(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
public Builder mergeFootball(com.streamlayer.sports.common.NflEventStatistics value) {
copyOnWrite();
instance.mergeFootball(value);
return this;
}
/**
* .streamlayer.sports.NflEventStatistics football = 1 [json_name = "football"];
*/
public Builder clearFootball() {
copyOnWrite();
instance.clearFootball();
return this;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
@java.lang.Override
public boolean hasSoccer() {
return instance.hasSoccer();
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
@java.lang.Override
public com.streamlayer.sports.common.SoccerEventStatistics getSoccer() {
return instance.getSoccer();
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
public Builder setSoccer(com.streamlayer.sports.common.SoccerEventStatistics value) {
copyOnWrite();
instance.setSoccer(value);
return this;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
public Builder setSoccer(
com.streamlayer.sports.common.SoccerEventStatistics.Builder builderForValue) {
copyOnWrite();
instance.setSoccer(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
public Builder mergeSoccer(com.streamlayer.sports.common.SoccerEventStatistics value) {
copyOnWrite();
instance.mergeSoccer(value);
return this;
}
/**
* .streamlayer.sports.SoccerEventStatistics soccer = 2 [json_name = "soccer"];
*/
public Builder clearSoccer() {
copyOnWrite();
instance.clearSoccer();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.EventTeamStatistics)
}
@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.sports.common.EventTeamStatistics();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"statistics_",
"statisticsCase_",
com.streamlayer.sports.common.NflEventStatistics.class,
com.streamlayer.sports.common.SoccerEventStatistics.class,
};
java.lang.String info =
"\u0000\u0002\u0001\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001<\u0000\u0002<" +
"\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.sports.common.EventTeamStatistics.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.sports.EventTeamStatistics)
private static final com.streamlayer.sports.common.EventTeamStatistics DEFAULT_INSTANCE;
static {
EventTeamStatistics defaultInstance = new EventTeamStatistics();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
EventTeamStatistics.class, defaultInstance);
}
public static com.streamlayer.sports.common.EventTeamStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}