main.java.com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics 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/soccer/soccer.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.soccer;
/**
* Protobuf type {@code streamlayer.sports.soccer.SoccerPlayByPlayStatistics}
*/
public final class SoccerPlayByPlayStatistics extends
com.google.protobuf.GeneratedMessageLite<
SoccerPlayByPlayStatistics, SoccerPlayByPlayStatistics.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.soccer.SoccerPlayByPlayStatistics)
SoccerPlayByPlayStatisticsOrBuilder {
private SoccerPlayByPlayStatistics() {
playText_ = "";
}
private int bitField0_;
public static final int TEAM_FIELD_NUMBER = 1;
private com.streamlayer.sports.common.EventTeam team_;
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
@java.lang.Override
public boolean hasTeam() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTeam getTeam() {
return team_ == null ? com.streamlayer.sports.common.EventTeam.getDefaultInstance() : team_;
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
private void setTeam(com.streamlayer.sports.common.EventTeam value) {
value.getClass();
team_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeTeam(com.streamlayer.sports.common.EventTeam value) {
value.getClass();
if (team_ != null &&
team_ != com.streamlayer.sports.common.EventTeam.getDefaultInstance()) {
team_ =
com.streamlayer.sports.common.EventTeam.newBuilder(team_).mergeFrom(value).buildPartial();
} else {
team_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
private void clearTeam() { team_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int EVENT_TIME_FIELD_NUMBER = 2;
private com.streamlayer.sports.common.EventTime eventTime_;
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
@java.lang.Override
public boolean hasEventTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTime getEventTime() {
return eventTime_ == null ? com.streamlayer.sports.common.EventTime.getDefaultInstance() : eventTime_;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
private void setEventTime(com.streamlayer.sports.common.EventTime value) {
value.getClass();
eventTime_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeEventTime(com.streamlayer.sports.common.EventTime value) {
value.getClass();
if (eventTime_ != null &&
eventTime_ != com.streamlayer.sports.common.EventTime.getDefaultInstance()) {
eventTime_ =
com.streamlayer.sports.common.EventTime.newBuilder(eventTime_).mergeFrom(value).buildPartial();
} else {
eventTime_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
private void clearEventTime() { eventTime_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static final int SCORE_HOME_FIELD_NUMBER = 3;
private int scoreHome_;
/**
* int32 score_home = 3 [json_name = "scoreHome"];
* @return The scoreHome.
*/
@java.lang.Override
public int getScoreHome() {
return scoreHome_;
}
/**
* int32 score_home = 3 [json_name = "scoreHome"];
* @param value The scoreHome to set.
*/
private void setScoreHome(int value) {
scoreHome_ = value;
}
/**
* int32 score_home = 3 [json_name = "scoreHome"];
*/
private void clearScoreHome() {
scoreHome_ = 0;
}
public static final int SCORE_AWAY_FIELD_NUMBER = 4;
private int scoreAway_;
/**
* int32 score_away = 4 [json_name = "scoreAway"];
* @return The scoreAway.
*/
@java.lang.Override
public int getScoreAway() {
return scoreAway_;
}
/**
* int32 score_away = 4 [json_name = "scoreAway"];
* @param value The scoreAway to set.
*/
private void setScoreAway(int value) {
scoreAway_ = value;
}
/**
* int32 score_away = 4 [json_name = "scoreAway"];
*/
private void clearScoreAway() {
scoreAway_ = 0;
}
public static final int PLAY_TEXT_FIELD_NUMBER = 5;
private java.lang.String playText_;
/**
* string play_text = 5 [json_name = "playText"];
* @return The playText.
*/
@java.lang.Override
public java.lang.String getPlayText() {
return playText_;
}
/**
* string play_text = 5 [json_name = "playText"];
* @return The bytes for playText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlayTextBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(playText_);
}
/**
* string play_text = 5 [json_name = "playText"];
* @param value The playText to set.
*/
private void setPlayText(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
playText_ = value;
}
/**
* string play_text = 5 [json_name = "playText"];
*/
private void clearPlayText() {
playText_ = getDefaultInstance().getPlayText();
}
/**
* string play_text = 5 [json_name = "playText"];
* @param value The bytes for playText to set.
*/
private void setPlayTextBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
playText_ = value.toStringUtf8();
}
public static final int SCORING_FIELD_NUMBER = 6;
private boolean scoring_;
/**
*
* flag to define event that changed the score
*
*
* bool scoring = 6 [json_name = "scoring"];
* @return The scoring.
*/
@java.lang.Override
public boolean getScoring() {
return scoring_;
}
/**
*
* flag to define event that changed the score
*
*
* bool scoring = 6 [json_name = "scoring"];
* @param value The scoring to set.
*/
private void setScoring(boolean value) {
scoring_ = value;
}
/**
*
* flag to define event that changed the score
*
*
* bool scoring = 6 [json_name = "scoring"];
*/
private void clearScoring() {
scoring_ = false;
}
public static final int PLAY_ID_FIELD_NUMBER = 7;
private int playId_;
/**
*
* sequence
*
*
* int32 play_id = 7 [json_name = "playId"];
* @return The playId.
*/
@java.lang.Override
public int getPlayId() {
return playId_;
}
/**
*
* sequence
*
*
* int32 play_id = 7 [json_name = "playId"];
* @param value The playId to set.
*/
private void setPlayId(int value) {
playId_ = value;
}
/**
*
* sequence
*
*
* int32 play_id = 7 [json_name = "playId"];
*/
private void clearPlayId() {
playId_ = 0;
}
public static final int TYPE_FIELD_NUMBER = 8;
private int type_;
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public com.streamlayer.sports.soccer.SoccerMatchActivityType getType() {
com.streamlayer.sports.soccer.SoccerMatchActivityType result = com.streamlayer.sports.soccer.SoccerMatchActivityType.forNumber(type_);
return result == null ? com.streamlayer.sports.soccer.SoccerMatchActivityType.UNRECOGNIZED : result;
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @param value The enum numeric value on the wire for type to set.
*/
private void setTypeValue(int value) {
type_ = value;
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @param value The type to set.
*/
private void setType(com.streamlayer.sports.soccer.SoccerMatchActivityType value) {
type_ = value.getNumber();
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
*/
private void clearType() {
type_ = 0;
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics 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.soccer.SoccerPlayByPlayStatistics prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.soccer.SoccerPlayByPlayStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.soccer.SoccerPlayByPlayStatistics)
com.streamlayer.sports.soccer.SoccerPlayByPlayStatisticsOrBuilder {
// Construct using com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
@java.lang.Override
public boolean hasTeam() {
return instance.hasTeam();
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTeam getTeam() {
return instance.getTeam();
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
public Builder setTeam(com.streamlayer.sports.common.EventTeam value) {
copyOnWrite();
instance.setTeam(value);
return this;
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
public Builder setTeam(
com.streamlayer.sports.common.EventTeam.Builder builderForValue) {
copyOnWrite();
instance.setTeam(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
public Builder mergeTeam(com.streamlayer.sports.common.EventTeam value) {
copyOnWrite();
instance.mergeTeam(value);
return this;
}
/**
* .streamlayer.sports.EventTeam team = 1 [json_name = "team"];
*/
public Builder clearTeam() { copyOnWrite();
instance.clearTeam();
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
@java.lang.Override
public boolean hasEventTime() {
return instance.hasEventTime();
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
@java.lang.Override
public com.streamlayer.sports.common.EventTime getEventTime() {
return instance.getEventTime();
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
public Builder setEventTime(com.streamlayer.sports.common.EventTime value) {
copyOnWrite();
instance.setEventTime(value);
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
public Builder setEventTime(
com.streamlayer.sports.common.EventTime.Builder builderForValue) {
copyOnWrite();
instance.setEventTime(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
public Builder mergeEventTime(com.streamlayer.sports.common.EventTime value) {
copyOnWrite();
instance.mergeEventTime(value);
return this;
}
/**
* .streamlayer.sports.EventTime event_time = 2 [json_name = "eventTime"];
*/
public Builder clearEventTime() { copyOnWrite();
instance.clearEventTime();
return this;
}
/**
* int32 score_home = 3 [json_name = "scoreHome"];
* @return The scoreHome.
*/
@java.lang.Override
public int getScoreHome() {
return instance.getScoreHome();
}
/**
* int32 score_home = 3 [json_name = "scoreHome"];
* @param value The scoreHome to set.
* @return This builder for chaining.
*/
public Builder setScoreHome(int value) {
copyOnWrite();
instance.setScoreHome(value);
return this;
}
/**
* int32 score_home = 3 [json_name = "scoreHome"];
* @return This builder for chaining.
*/
public Builder clearScoreHome() {
copyOnWrite();
instance.clearScoreHome();
return this;
}
/**
* int32 score_away = 4 [json_name = "scoreAway"];
* @return The scoreAway.
*/
@java.lang.Override
public int getScoreAway() {
return instance.getScoreAway();
}
/**
* int32 score_away = 4 [json_name = "scoreAway"];
* @param value The scoreAway to set.
* @return This builder for chaining.
*/
public Builder setScoreAway(int value) {
copyOnWrite();
instance.setScoreAway(value);
return this;
}
/**
* int32 score_away = 4 [json_name = "scoreAway"];
* @return This builder for chaining.
*/
public Builder clearScoreAway() {
copyOnWrite();
instance.clearScoreAway();
return this;
}
/**
* string play_text = 5 [json_name = "playText"];
* @return The playText.
*/
@java.lang.Override
public java.lang.String getPlayText() {
return instance.getPlayText();
}
/**
* string play_text = 5 [json_name = "playText"];
* @return The bytes for playText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlayTextBytes() {
return instance.getPlayTextBytes();
}
/**
* string play_text = 5 [json_name = "playText"];
* @param value The playText to set.
* @return This builder for chaining.
*/
public Builder setPlayText(
java.lang.String value) {
copyOnWrite();
instance.setPlayText(value);
return this;
}
/**
* string play_text = 5 [json_name = "playText"];
* @return This builder for chaining.
*/
public Builder clearPlayText() {
copyOnWrite();
instance.clearPlayText();
return this;
}
/**
* string play_text = 5 [json_name = "playText"];
* @param value The bytes for playText to set.
* @return This builder for chaining.
*/
public Builder setPlayTextBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setPlayTextBytes(value);
return this;
}
/**
*
* flag to define event that changed the score
*
*
* bool scoring = 6 [json_name = "scoring"];
* @return The scoring.
*/
@java.lang.Override
public boolean getScoring() {
return instance.getScoring();
}
/**
*
* flag to define event that changed the score
*
*
* bool scoring = 6 [json_name = "scoring"];
* @param value The scoring to set.
* @return This builder for chaining.
*/
public Builder setScoring(boolean value) {
copyOnWrite();
instance.setScoring(value);
return this;
}
/**
*
* flag to define event that changed the score
*
*
* bool scoring = 6 [json_name = "scoring"];
* @return This builder for chaining.
*/
public Builder clearScoring() {
copyOnWrite();
instance.clearScoring();
return this;
}
/**
*
* sequence
*
*
* int32 play_id = 7 [json_name = "playId"];
* @return The playId.
*/
@java.lang.Override
public int getPlayId() {
return instance.getPlayId();
}
/**
*
* sequence
*
*
* int32 play_id = 7 [json_name = "playId"];
* @param value The playId to set.
* @return This builder for chaining.
*/
public Builder setPlayId(int value) {
copyOnWrite();
instance.setPlayId(value);
return this;
}
/**
*
* sequence
*
*
* int32 play_id = 7 [json_name = "playId"];
* @return This builder for chaining.
*/
public Builder clearPlayId() {
copyOnWrite();
instance.clearPlayId();
return this;
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return instance.getTypeValue();
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
copyOnWrite();
instance.setTypeValue(value);
return this;
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public com.streamlayer.sports.soccer.SoccerMatchActivityType getType() {
return instance.getType();
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setType(com.streamlayer.sports.soccer.SoccerMatchActivityType value) {
copyOnWrite();
instance.setType(value);
return this;
}
/**
* .streamlayer.sports.soccer.SoccerMatchActivityType type = 8 [json_name = "type"];
* @return This builder for chaining.
*/
public Builder clearType() {
copyOnWrite();
instance.clearType();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.soccer.SoccerPlayByPlayStatistics)
}
@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.soccer.SoccerPlayByPlayStatistics();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"team_",
"eventTime_",
"scoreHome_",
"scoreAway_",
"playText_",
"scoring_",
"playId_",
"type_",
};
java.lang.String info =
"\u0000\b\u0000\u0001\u0001\b\b\u0000\u0000\u0000\u0001\u1009\u0000\u0002\u1009\u0001" +
"\u0003\u0004\u0004\u0004\u0005\u0208\u0006\u0007\u0007\u0004\b\f";
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.soccer.SoccerPlayByPlayStatistics.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.soccer.SoccerPlayByPlayStatistics)
private static final com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics DEFAULT_INSTANCE;
static {
SoccerPlayByPlayStatistics defaultInstance = new SoccerPlayByPlayStatistics();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
SoccerPlayByPlayStatistics.class, defaultInstance);
}
public static com.streamlayer.sports.soccer.SoccerPlayByPlayStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}