main.java.com.streamlayer.sports.basketball.BasketballPerformers 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/basketball/basketball.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.basketball;
/**
* Protobuf type {@code streamlayer.sports.basketball.BasketballPerformers}
*/
public final class BasketballPerformers extends
com.google.protobuf.GeneratedMessageLite<
BasketballPerformers, BasketballPerformers.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.basketball.BasketballPerformers)
BasketballPerformersOrBuilder {
private BasketballPerformers() {
}
private int bitField0_;
public static final int CATEGORY_FIELD_NUMBER = 1;
private int category_;
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override
public int getCategoryValue() {
return category_;
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @return The category.
*/
@java.lang.Override
public com.streamlayer.sports.basketball.BasketballPerformerCategory getCategory() {
com.streamlayer.sports.basketball.BasketballPerformerCategory result = com.streamlayer.sports.basketball.BasketballPerformerCategory.forNumber(category_);
return result == null ? com.streamlayer.sports.basketball.BasketballPerformerCategory.UNRECOGNIZED : result;
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @param value The enum numeric value on the wire for category to set.
*/
private void setCategoryValue(int value) {
category_ = value;
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @param value The category to set.
*/
private void setCategory(com.streamlayer.sports.basketball.BasketballPerformerCategory value) {
category_ = value.getNumber();
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
*/
private void clearCategory() {
category_ = 0;
}
public static final int HOME_PLAYER_FIELD_NUMBER = 2;
private com.streamlayer.sports.basketball.BasketballPerformer homePlayer_;
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
@java.lang.Override
public boolean hasHomePlayer() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
@java.lang.Override
public com.streamlayer.sports.basketball.BasketballPerformer getHomePlayer() {
return homePlayer_ == null ? com.streamlayer.sports.basketball.BasketballPerformer.getDefaultInstance() : homePlayer_;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
private void setHomePlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
value.getClass();
homePlayer_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeHomePlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
value.getClass();
if (homePlayer_ != null &&
homePlayer_ != com.streamlayer.sports.basketball.BasketballPerformer.getDefaultInstance()) {
homePlayer_ =
com.streamlayer.sports.basketball.BasketballPerformer.newBuilder(homePlayer_).mergeFrom(value).buildPartial();
} else {
homePlayer_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
private void clearHomePlayer() { homePlayer_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int AWAY_PLAYER_FIELD_NUMBER = 3;
private com.streamlayer.sports.basketball.BasketballPerformer awayPlayer_;
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
@java.lang.Override
public boolean hasAwayPlayer() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
@java.lang.Override
public com.streamlayer.sports.basketball.BasketballPerformer getAwayPlayer() {
return awayPlayer_ == null ? com.streamlayer.sports.basketball.BasketballPerformer.getDefaultInstance() : awayPlayer_;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
private void setAwayPlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
value.getClass();
awayPlayer_ = value;
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeAwayPlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
value.getClass();
if (awayPlayer_ != null &&
awayPlayer_ != com.streamlayer.sports.basketball.BasketballPerformer.getDefaultInstance()) {
awayPlayer_ =
com.streamlayer.sports.basketball.BasketballPerformer.newBuilder(awayPlayer_).mergeFrom(value).buildPartial();
} else {
awayPlayer_ = value;
}
bitField0_ |= 0x00000002;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
private void clearAwayPlayer() { awayPlayer_ = null;
bitField0_ = (bitField0_ & ~0x00000002);
}
public static com.streamlayer.sports.basketball.BasketballPerformers parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.basketball.BasketballPerformers 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.basketball.BasketballPerformers 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.basketball.BasketballPerformers 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.basketball.BasketballPerformers parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.basketball.BasketballPerformers 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.basketball.BasketballPerformers parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.basketball.BasketballPerformers 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.basketball.BasketballPerformers parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.basketball.BasketballPerformers 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.basketball.BasketballPerformers parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.basketball.BasketballPerformers 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.basketball.BasketballPerformers prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.basketball.BasketballPerformers}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.basketball.BasketballPerformers, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.basketball.BasketballPerformers)
com.streamlayer.sports.basketball.BasketballPerformersOrBuilder {
// Construct using com.streamlayer.sports.basketball.BasketballPerformers.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override
public int getCategoryValue() {
return instance.getCategoryValue();
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @param value The category to set.
* @return This builder for chaining.
*/
public Builder setCategoryValue(int value) {
copyOnWrite();
instance.setCategoryValue(value);
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @return The category.
*/
@java.lang.Override
public com.streamlayer.sports.basketball.BasketballPerformerCategory getCategory() {
return instance.getCategory();
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @param value The enum numeric value on the wire for category to set.
* @return This builder for chaining.
*/
public Builder setCategory(com.streamlayer.sports.basketball.BasketballPerformerCategory value) {
copyOnWrite();
instance.setCategory(value);
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformerCategory category = 1 [json_name = "category"];
* @return This builder for chaining.
*/
public Builder clearCategory() {
copyOnWrite();
instance.clearCategory();
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
@java.lang.Override
public boolean hasHomePlayer() {
return instance.hasHomePlayer();
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
@java.lang.Override
public com.streamlayer.sports.basketball.BasketballPerformer getHomePlayer() {
return instance.getHomePlayer();
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
public Builder setHomePlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
copyOnWrite();
instance.setHomePlayer(value);
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
public Builder setHomePlayer(
com.streamlayer.sports.basketball.BasketballPerformer.Builder builderForValue) {
copyOnWrite();
instance.setHomePlayer(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
public Builder mergeHomePlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
copyOnWrite();
instance.mergeHomePlayer(value);
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer home_player = 2 [json_name = "homePlayer"];
*/
public Builder clearHomePlayer() { copyOnWrite();
instance.clearHomePlayer();
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
@java.lang.Override
public boolean hasAwayPlayer() {
return instance.hasAwayPlayer();
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
@java.lang.Override
public com.streamlayer.sports.basketball.BasketballPerformer getAwayPlayer() {
return instance.getAwayPlayer();
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
public Builder setAwayPlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
copyOnWrite();
instance.setAwayPlayer(value);
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
public Builder setAwayPlayer(
com.streamlayer.sports.basketball.BasketballPerformer.Builder builderForValue) {
copyOnWrite();
instance.setAwayPlayer(builderForValue.build());
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
public Builder mergeAwayPlayer(com.streamlayer.sports.basketball.BasketballPerformer value) {
copyOnWrite();
instance.mergeAwayPlayer(value);
return this;
}
/**
* .streamlayer.sports.basketball.BasketballPerformer away_player = 3 [json_name = "awayPlayer"];
*/
public Builder clearAwayPlayer() { copyOnWrite();
instance.clearAwayPlayer();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.basketball.BasketballPerformers)
}
@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.basketball.BasketballPerformers();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"category_",
"homePlayer_",
"awayPlayer_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\u1009" +
"\u0000\u0003\u1009\u0001";
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.basketball.BasketballPerformers.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.basketball.BasketballPerformers)
private static final com.streamlayer.sports.basketball.BasketballPerformers DEFAULT_INSTANCE;
static {
BasketballPerformers defaultInstance = new BasketballPerformers();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
BasketballPerformers.class, defaultInstance);
}
public static com.streamlayer.sports.basketball.BasketballPerformers getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}