main.java.com.streamlayer.sports.events.ScheduleAttributes 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/events/events.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.events;
/**
* Protobuf type {@code streamlayer.sports.events.ScheduleAttributes}
*/
public final class ScheduleAttributes extends
com.google.protobuf.GeneratedMessageLite<
ScheduleAttributes, ScheduleAttributes.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.events.ScheduleAttributes)
ScheduleAttributesOrBuilder {
private ScheduleAttributes() {
}
private int bitField0_;
private int sportCase_ = 0;
private java.lang.Object sport_;
public enum SportCase {
BASEBALL(2),
BASKETBALL(3),
HOCKEY(4),
SOCCER(5),
SPORT_NOT_SET(0);
private final int value;
private SportCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SportCase valueOf(int value) {
return forNumber(value);
}
public static SportCase forNumber(int value) {
switch (value) {
case 2: return BASEBALL;
case 3: return BASKETBALL;
case 4: return HOCKEY;
case 5: return SOCCER;
case 0: return SPORT_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public SportCase
getSportCase() {
return SportCase.forNumber(
sportCase_);
}
private void clearSport() {
sportCase_ = 0;
sport_ = null;
}
public static final int SUMMARY_FIELD_NUMBER = 1;
private com.streamlayer.sports.common.EventSummary summary_;
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
@java.lang.Override
public boolean hasSummary() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventSummary getSummary() {
return summary_ == null ? com.streamlayer.sports.common.EventSummary.getDefaultInstance() : summary_;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
private void setSummary(com.streamlayer.sports.common.EventSummary value) {
value.getClass();
summary_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeSummary(com.streamlayer.sports.common.EventSummary value) {
value.getClass();
if (summary_ != null &&
summary_ != com.streamlayer.sports.common.EventSummary.getDefaultInstance()) {
summary_ =
com.streamlayer.sports.common.EventSummary.newBuilder(summary_).mergeFrom(value).buildPartial();
} else {
summary_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
private void clearSummary() { summary_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int BASEBALL_FIELD_NUMBER = 2;
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
@java.lang.Override
public boolean hasBaseball() {
return sportCase_ == 2;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
@java.lang.Override
public com.streamlayer.sports.baseball.EventScore getBaseball() {
if (sportCase_ == 2) {
return (com.streamlayer.sports.baseball.EventScore) sport_;
}
return com.streamlayer.sports.baseball.EventScore.getDefaultInstance();
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
private void setBaseball(com.streamlayer.sports.baseball.EventScore value) {
value.getClass();
sport_ = value;
sportCase_ = 2;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
private void mergeBaseball(com.streamlayer.sports.baseball.EventScore value) {
value.getClass();
if (sportCase_ == 2 &&
sport_ != com.streamlayer.sports.baseball.EventScore.getDefaultInstance()) {
sport_ = com.streamlayer.sports.baseball.EventScore.newBuilder((com.streamlayer.sports.baseball.EventScore) sport_)
.mergeFrom(value).buildPartial();
} else {
sport_ = value;
}
sportCase_ = 2;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
private void clearBaseball() {
if (sportCase_ == 2) {
sportCase_ = 0;
sport_ = null;
}
}
public static final int BASKETBALL_FIELD_NUMBER = 3;
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
@java.lang.Override
public boolean hasBasketball() {
return sportCase_ == 3;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
@java.lang.Override
public com.streamlayer.sports.basketball.EventScore getBasketball() {
if (sportCase_ == 3) {
return (com.streamlayer.sports.basketball.EventScore) sport_;
}
return com.streamlayer.sports.basketball.EventScore.getDefaultInstance();
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
private void setBasketball(com.streamlayer.sports.basketball.EventScore value) {
value.getClass();
sport_ = value;
sportCase_ = 3;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
private void mergeBasketball(com.streamlayer.sports.basketball.EventScore value) {
value.getClass();
if (sportCase_ == 3 &&
sport_ != com.streamlayer.sports.basketball.EventScore.getDefaultInstance()) {
sport_ = com.streamlayer.sports.basketball.EventScore.newBuilder((com.streamlayer.sports.basketball.EventScore) sport_)
.mergeFrom(value).buildPartial();
} else {
sport_ = value;
}
sportCase_ = 3;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
private void clearBasketball() {
if (sportCase_ == 3) {
sportCase_ = 0;
sport_ = null;
}
}
public static final int HOCKEY_FIELD_NUMBER = 4;
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
@java.lang.Override
public boolean hasHockey() {
return sportCase_ == 4;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
@java.lang.Override
public com.streamlayer.sports.hockey.EventScore getHockey() {
if (sportCase_ == 4) {
return (com.streamlayer.sports.hockey.EventScore) sport_;
}
return com.streamlayer.sports.hockey.EventScore.getDefaultInstance();
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
private void setHockey(com.streamlayer.sports.hockey.EventScore value) {
value.getClass();
sport_ = value;
sportCase_ = 4;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
private void mergeHockey(com.streamlayer.sports.hockey.EventScore value) {
value.getClass();
if (sportCase_ == 4 &&
sport_ != com.streamlayer.sports.hockey.EventScore.getDefaultInstance()) {
sport_ = com.streamlayer.sports.hockey.EventScore.newBuilder((com.streamlayer.sports.hockey.EventScore) sport_)
.mergeFrom(value).buildPartial();
} else {
sport_ = value;
}
sportCase_ = 4;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
private void clearHockey() {
if (sportCase_ == 4) {
sportCase_ = 0;
sport_ = null;
}
}
public static final int SOCCER_FIELD_NUMBER = 5;
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
@java.lang.Override
public boolean hasSoccer() {
return sportCase_ == 5;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
@java.lang.Override
public com.streamlayer.sports.soccer.EventScore getSoccer() {
if (sportCase_ == 5) {
return (com.streamlayer.sports.soccer.EventScore) sport_;
}
return com.streamlayer.sports.soccer.EventScore.getDefaultInstance();
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
private void setSoccer(com.streamlayer.sports.soccer.EventScore value) {
value.getClass();
sport_ = value;
sportCase_ = 5;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
private void mergeSoccer(com.streamlayer.sports.soccer.EventScore value) {
value.getClass();
if (sportCase_ == 5 &&
sport_ != com.streamlayer.sports.soccer.EventScore.getDefaultInstance()) {
sport_ = com.streamlayer.sports.soccer.EventScore.newBuilder((com.streamlayer.sports.soccer.EventScore) sport_)
.mergeFrom(value).buildPartial();
} else {
sport_ = value;
}
sportCase_ = 5;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
private void clearSoccer() {
if (sportCase_ == 5) {
sportCase_ = 0;
sport_ = null;
}
}
public static com.streamlayer.sports.events.ScheduleAttributes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.events.ScheduleAttributes 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.events.ScheduleAttributes 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.events.ScheduleAttributes 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.events.ScheduleAttributes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.events.ScheduleAttributes 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.events.ScheduleAttributes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.events.ScheduleAttributes 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.events.ScheduleAttributes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.events.ScheduleAttributes 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.events.ScheduleAttributes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.events.ScheduleAttributes 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.events.ScheduleAttributes prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.events.ScheduleAttributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.events.ScheduleAttributes, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.events.ScheduleAttributes)
com.streamlayer.sports.events.ScheduleAttributesOrBuilder {
// Construct using com.streamlayer.sports.events.ScheduleAttributes.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public SportCase
getSportCase() {
return instance.getSportCase();
}
public Builder clearSport() {
copyOnWrite();
instance.clearSport();
return this;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
@java.lang.Override
public boolean hasSummary() {
return instance.hasSummary();
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventSummary getSummary() {
return instance.getSummary();
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
public Builder setSummary(com.streamlayer.sports.common.EventSummary value) {
copyOnWrite();
instance.setSummary(value);
return this;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
public Builder setSummary(
com.streamlayer.sports.common.EventSummary.Builder builderForValue) {
copyOnWrite();
instance.setSummary(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
public Builder mergeSummary(com.streamlayer.sports.common.EventSummary value) {
copyOnWrite();
instance.mergeSummary(value);
return this;
}
/**
* .streamlayer.sports.EventSummary summary = 1 [json_name = "summary"];
*/
public Builder clearSummary() { copyOnWrite();
instance.clearSummary();
return this;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
@java.lang.Override
public boolean hasBaseball() {
return instance.hasBaseball();
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
@java.lang.Override
public com.streamlayer.sports.baseball.EventScore getBaseball() {
return instance.getBaseball();
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
public Builder setBaseball(com.streamlayer.sports.baseball.EventScore value) {
copyOnWrite();
instance.setBaseball(value);
return this;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
public Builder setBaseball(
com.streamlayer.sports.baseball.EventScore.Builder builderForValue) {
copyOnWrite();
instance.setBaseball(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
public Builder mergeBaseball(com.streamlayer.sports.baseball.EventScore value) {
copyOnWrite();
instance.mergeBaseball(value);
return this;
}
/**
* .streamlayer.sports.baseball.EventScore baseball = 2 [json_name = "baseball"];
*/
public Builder clearBaseball() {
copyOnWrite();
instance.clearBaseball();
return this;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
@java.lang.Override
public boolean hasBasketball() {
return instance.hasBasketball();
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
@java.lang.Override
public com.streamlayer.sports.basketball.EventScore getBasketball() {
return instance.getBasketball();
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
public Builder setBasketball(com.streamlayer.sports.basketball.EventScore value) {
copyOnWrite();
instance.setBasketball(value);
return this;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
public Builder setBasketball(
com.streamlayer.sports.basketball.EventScore.Builder builderForValue) {
copyOnWrite();
instance.setBasketball(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
public Builder mergeBasketball(com.streamlayer.sports.basketball.EventScore value) {
copyOnWrite();
instance.mergeBasketball(value);
return this;
}
/**
* .streamlayer.sports.basketball.EventScore basketball = 3 [json_name = "basketball"];
*/
public Builder clearBasketball() {
copyOnWrite();
instance.clearBasketball();
return this;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
@java.lang.Override
public boolean hasHockey() {
return instance.hasHockey();
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
@java.lang.Override
public com.streamlayer.sports.hockey.EventScore getHockey() {
return instance.getHockey();
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
public Builder setHockey(com.streamlayer.sports.hockey.EventScore value) {
copyOnWrite();
instance.setHockey(value);
return this;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
public Builder setHockey(
com.streamlayer.sports.hockey.EventScore.Builder builderForValue) {
copyOnWrite();
instance.setHockey(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
public Builder mergeHockey(com.streamlayer.sports.hockey.EventScore value) {
copyOnWrite();
instance.mergeHockey(value);
return this;
}
/**
* .streamlayer.sports.hockey.EventScore hockey = 4 [json_name = "hockey"];
*/
public Builder clearHockey() {
copyOnWrite();
instance.clearHockey();
return this;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
@java.lang.Override
public boolean hasSoccer() {
return instance.hasSoccer();
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
@java.lang.Override
public com.streamlayer.sports.soccer.EventScore getSoccer() {
return instance.getSoccer();
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
public Builder setSoccer(com.streamlayer.sports.soccer.EventScore value) {
copyOnWrite();
instance.setSoccer(value);
return this;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
public Builder setSoccer(
com.streamlayer.sports.soccer.EventScore.Builder builderForValue) {
copyOnWrite();
instance.setSoccer(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
public Builder mergeSoccer(com.streamlayer.sports.soccer.EventScore value) {
copyOnWrite();
instance.mergeSoccer(value);
return this;
}
/**
* .streamlayer.sports.soccer.EventScore soccer = 5 [json_name = "soccer"];
*/
public Builder clearSoccer() {
copyOnWrite();
instance.clearSoccer();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.events.ScheduleAttributes)
}
@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.events.ScheduleAttributes();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"sport_",
"sportCase_",
"bitField0_",
"summary_",
com.streamlayer.sports.baseball.EventScore.class,
com.streamlayer.sports.basketball.EventScore.class,
com.streamlayer.sports.hockey.EventScore.class,
com.streamlayer.sports.soccer.EventScore.class,
};
java.lang.String info =
"\u0000\u0005\u0001\u0001\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"<\u0000\u0003<\u0000\u0004<\u0000\u0005<\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.events.ScheduleAttributes.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.events.ScheduleAttributes)
private static final com.streamlayer.sports.events.ScheduleAttributes DEFAULT_INSTANCE;
static {
ScheduleAttributes defaultInstance = new ScheduleAttributes();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
ScheduleAttributes.class, defaultInstance);
}
public static com.streamlayer.sports.events.ScheduleAttributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}