main.java.com.streamlayer.sports.hockey.HockeyTeamSummary 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/hockey/hockey.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sports.hockey;
/**
* Protobuf type {@code streamlayer.sports.hockey.HockeyTeamSummary}
*/
public final class HockeyTeamSummary extends
com.google.protobuf.GeneratedMessageLite<
HockeyTeamSummary, HockeyTeamSummary.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sports.hockey.HockeyTeamSummary)
HockeyTeamSummaryOrBuilder {
private HockeyTeamSummary() {
}
public static final int SHOTS_ON_GOAL_FIELD_NUMBER = 1;
private int shotsOnGoal_;
/**
* int32 shots_on_goal = 1 [json_name = "shotsOnGoal"];
* @return The shotsOnGoal.
*/
@java.lang.Override
public int getShotsOnGoal() {
return shotsOnGoal_;
}
/**
* int32 shots_on_goal = 1 [json_name = "shotsOnGoal"];
* @param value The shotsOnGoal to set.
*/
private void setShotsOnGoal(int value) {
shotsOnGoal_ = value;
}
/**
* int32 shots_on_goal = 1 [json_name = "shotsOnGoal"];
*/
private void clearShotsOnGoal() {
shotsOnGoal_ = 0;
}
public static final int FACEOFF_FIELD_NUMBER = 2;
private double faceoff_;
/**
* double faceoff = 2 [json_name = "faceoff"];
* @return The faceoff.
*/
@java.lang.Override
public double getFaceoff() {
return faceoff_;
}
/**
* double faceoff = 2 [json_name = "faceoff"];
* @param value The faceoff to set.
*/
private void setFaceoff(double value) {
faceoff_ = value;
}
/**
* double faceoff = 2 [json_name = "faceoff"];
*/
private void clearFaceoff() {
faceoff_ = 0D;
}
public static final int POWERPLAY_FIELD_NUMBER = 3;
private int powerplay_;
/**
* int32 powerplay = 3 [json_name = "powerplay"];
* @return The powerplay.
*/
@java.lang.Override
public int getPowerplay() {
return powerplay_;
}
/**
* int32 powerplay = 3 [json_name = "powerplay"];
* @param value The powerplay to set.
*/
private void setPowerplay(int value) {
powerplay_ = value;
}
/**
* int32 powerplay = 3 [json_name = "powerplay"];
*/
private void clearPowerplay() {
powerplay_ = 0;
}
public static final int PENALTY_MINUTES_FIELD_NUMBER = 4;
private int penaltyMinutes_;
/**
* int32 penalty_minutes = 4 [json_name = "penaltyMinutes"];
* @return The penaltyMinutes.
*/
@java.lang.Override
public int getPenaltyMinutes() {
return penaltyMinutes_;
}
/**
* int32 penalty_minutes = 4 [json_name = "penaltyMinutes"];
* @param value The penaltyMinutes to set.
*/
private void setPenaltyMinutes(int value) {
penaltyMinutes_ = value;
}
/**
* int32 penalty_minutes = 4 [json_name = "penaltyMinutes"];
*/
private void clearPenaltyMinutes() {
penaltyMinutes_ = 0;
}
public static final int HITS_FIELD_NUMBER = 5;
private int hits_;
/**
* int32 hits = 5 [json_name = "hits"];
* @return The hits.
*/
@java.lang.Override
public int getHits() {
return hits_;
}
/**
* int32 hits = 5 [json_name = "hits"];
* @param value The hits to set.
*/
private void setHits(int value) {
hits_ = value;
}
/**
* int32 hits = 5 [json_name = "hits"];
*/
private void clearHits() {
hits_ = 0;
}
public static final int BLOCKS_FIELD_NUMBER = 6;
private int blocks_;
/**
* int32 blocks = 6 [json_name = "blocks"];
* @return The blocks.
*/
@java.lang.Override
public int getBlocks() {
return blocks_;
}
/**
* int32 blocks = 6 [json_name = "blocks"];
* @param value The blocks to set.
*/
private void setBlocks(int value) {
blocks_ = value;
}
/**
* int32 blocks = 6 [json_name = "blocks"];
*/
private void clearBlocks() {
blocks_ = 0;
}
public static final int GIVEAWAYS_FIELD_NUMBER = 7;
private int giveaways_;
/**
* int32 giveaways = 7 [json_name = "giveaways"];
* @return The giveaways.
*/
@java.lang.Override
public int getGiveaways() {
return giveaways_;
}
/**
* int32 giveaways = 7 [json_name = "giveaways"];
* @param value The giveaways to set.
*/
private void setGiveaways(int value) {
giveaways_ = value;
}
/**
* int32 giveaways = 7 [json_name = "giveaways"];
*/
private void clearGiveaways() {
giveaways_ = 0;
}
public static final int TAKEAWAYS_FIELD_NUMBER = 8;
private int takeaways_;
/**
* int32 takeaways = 8 [json_name = "takeaways"];
* @return The takeaways.
*/
@java.lang.Override
public int getTakeaways() {
return takeaways_;
}
/**
* int32 takeaways = 8 [json_name = "takeaways"];
* @param value The takeaways to set.
*/
private void setTakeaways(int value) {
takeaways_ = value;
}
/**
* int32 takeaways = 8 [json_name = "takeaways"];
*/
private void clearTakeaways() {
takeaways_ = 0;
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary 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.hockey.HockeyTeamSummary prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sports.hockey.HockeyTeamSummary}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sports.hockey.HockeyTeamSummary, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sports.hockey.HockeyTeamSummary)
com.streamlayer.sports.hockey.HockeyTeamSummaryOrBuilder {
// Construct using com.streamlayer.sports.hockey.HockeyTeamSummary.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 shots_on_goal = 1 [json_name = "shotsOnGoal"];
* @return The shotsOnGoal.
*/
@java.lang.Override
public int getShotsOnGoal() {
return instance.getShotsOnGoal();
}
/**
* int32 shots_on_goal = 1 [json_name = "shotsOnGoal"];
* @param value The shotsOnGoal to set.
* @return This builder for chaining.
*/
public Builder setShotsOnGoal(int value) {
copyOnWrite();
instance.setShotsOnGoal(value);
return this;
}
/**
* int32 shots_on_goal = 1 [json_name = "shotsOnGoal"];
* @return This builder for chaining.
*/
public Builder clearShotsOnGoal() {
copyOnWrite();
instance.clearShotsOnGoal();
return this;
}
/**
* double faceoff = 2 [json_name = "faceoff"];
* @return The faceoff.
*/
@java.lang.Override
public double getFaceoff() {
return instance.getFaceoff();
}
/**
* double faceoff = 2 [json_name = "faceoff"];
* @param value The faceoff to set.
* @return This builder for chaining.
*/
public Builder setFaceoff(double value) {
copyOnWrite();
instance.setFaceoff(value);
return this;
}
/**
* double faceoff = 2 [json_name = "faceoff"];
* @return This builder for chaining.
*/
public Builder clearFaceoff() {
copyOnWrite();
instance.clearFaceoff();
return this;
}
/**
* int32 powerplay = 3 [json_name = "powerplay"];
* @return The powerplay.
*/
@java.lang.Override
public int getPowerplay() {
return instance.getPowerplay();
}
/**
* int32 powerplay = 3 [json_name = "powerplay"];
* @param value The powerplay to set.
* @return This builder for chaining.
*/
public Builder setPowerplay(int value) {
copyOnWrite();
instance.setPowerplay(value);
return this;
}
/**
* int32 powerplay = 3 [json_name = "powerplay"];
* @return This builder for chaining.
*/
public Builder clearPowerplay() {
copyOnWrite();
instance.clearPowerplay();
return this;
}
/**
* int32 penalty_minutes = 4 [json_name = "penaltyMinutes"];
* @return The penaltyMinutes.
*/
@java.lang.Override
public int getPenaltyMinutes() {
return instance.getPenaltyMinutes();
}
/**
* int32 penalty_minutes = 4 [json_name = "penaltyMinutes"];
* @param value The penaltyMinutes to set.
* @return This builder for chaining.
*/
public Builder setPenaltyMinutes(int value) {
copyOnWrite();
instance.setPenaltyMinutes(value);
return this;
}
/**
* int32 penalty_minutes = 4 [json_name = "penaltyMinutes"];
* @return This builder for chaining.
*/
public Builder clearPenaltyMinutes() {
copyOnWrite();
instance.clearPenaltyMinutes();
return this;
}
/**
* int32 hits = 5 [json_name = "hits"];
* @return The hits.
*/
@java.lang.Override
public int getHits() {
return instance.getHits();
}
/**
* int32 hits = 5 [json_name = "hits"];
* @param value The hits to set.
* @return This builder for chaining.
*/
public Builder setHits(int value) {
copyOnWrite();
instance.setHits(value);
return this;
}
/**
* int32 hits = 5 [json_name = "hits"];
* @return This builder for chaining.
*/
public Builder clearHits() {
copyOnWrite();
instance.clearHits();
return this;
}
/**
* int32 blocks = 6 [json_name = "blocks"];
* @return The blocks.
*/
@java.lang.Override
public int getBlocks() {
return instance.getBlocks();
}
/**
* int32 blocks = 6 [json_name = "blocks"];
* @param value The blocks to set.
* @return This builder for chaining.
*/
public Builder setBlocks(int value) {
copyOnWrite();
instance.setBlocks(value);
return this;
}
/**
* int32 blocks = 6 [json_name = "blocks"];
* @return This builder for chaining.
*/
public Builder clearBlocks() {
copyOnWrite();
instance.clearBlocks();
return this;
}
/**
* int32 giveaways = 7 [json_name = "giveaways"];
* @return The giveaways.
*/
@java.lang.Override
public int getGiveaways() {
return instance.getGiveaways();
}
/**
* int32 giveaways = 7 [json_name = "giveaways"];
* @param value The giveaways to set.
* @return This builder for chaining.
*/
public Builder setGiveaways(int value) {
copyOnWrite();
instance.setGiveaways(value);
return this;
}
/**
* int32 giveaways = 7 [json_name = "giveaways"];
* @return This builder for chaining.
*/
public Builder clearGiveaways() {
copyOnWrite();
instance.clearGiveaways();
return this;
}
/**
* int32 takeaways = 8 [json_name = "takeaways"];
* @return The takeaways.
*/
@java.lang.Override
public int getTakeaways() {
return instance.getTakeaways();
}
/**
* int32 takeaways = 8 [json_name = "takeaways"];
* @param value The takeaways to set.
* @return This builder for chaining.
*/
public Builder setTakeaways(int value) {
copyOnWrite();
instance.setTakeaways(value);
return this;
}
/**
* int32 takeaways = 8 [json_name = "takeaways"];
* @return This builder for chaining.
*/
public Builder clearTakeaways() {
copyOnWrite();
instance.clearTakeaways();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sports.hockey.HockeyTeamSummary)
}
@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.hockey.HockeyTeamSummary();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"shotsOnGoal_",
"faceoff_",
"powerplay_",
"penaltyMinutes_",
"hits_",
"blocks_",
"giveaways_",
"takeaways_",
};
java.lang.String info =
"\u0000\b\u0000\u0000\u0001\b\b\u0000\u0000\u0000\u0001\u0004\u0002\u0000\u0003\u0004" +
"\u0004\u0004\u0005\u0004\u0006\u0004\u0007\u0004\b\u0004";
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.hockey.HockeyTeamSummary.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.hockey.HockeyTeamSummary)
private static final com.streamlayer.sports.hockey.HockeyTeamSummary DEFAULT_INSTANCE;
static {
HockeyTeamSummary defaultInstance = new HockeyTeamSummary();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
HockeyTeamSummary.class, defaultInstance);
}
public static com.streamlayer.sports.hockey.HockeyTeamSummary getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}