main.java.com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData 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/interactive/leaderboard/admin/interactive.leaderboard.admin.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.interactive.leaderboard.admin;
/**
* Protobuf type {@code streamlayer.interactive.leaderboard.admin.LeaderboardCreateData}
*/
public final class LeaderboardCreateData extends
com.google.protobuf.GeneratedMessageLite<
LeaderboardCreateData, LeaderboardCreateData.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.interactive.leaderboard.admin.LeaderboardCreateData)
LeaderboardCreateDataOrBuilder {
private LeaderboardCreateData() {
id_ = "";
name_ = "";
eventIds_ = emptyLongList();
leaderboards_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int ID_FIELD_NUMBER = 1;
private java.lang.String id_;
/**
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return id_;
}
/**
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(id_);
}
/**
* string id = 1 [json_name = "id"];
* @param value The id to set.
*/
private void setId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
id_ = value;
}
/**
* string id = 1 [json_name = "id"];
*/
private void clearId() {
id_ = getDefaultInstance().getId();
}
/**
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
*/
private void setIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
id_ = value.toStringUtf8();
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return type_;
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public com.streamlayer.interactive.leaderboard.LeaderboardType getType() {
com.streamlayer.interactive.leaderboard.LeaderboardType result = com.streamlayer.interactive.leaderboard.LeaderboardType.forNumber(type_);
return result == null ? com.streamlayer.interactive.leaderboard.LeaderboardType.UNRECOGNIZED : result;
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @param value The enum numeric value on the wire for type to set.
*/
private void setTypeValue(int value) {
type_ = value;
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @param value The type to set.
*/
private void setType(com.streamlayer.interactive.leaderboard.LeaderboardType value) {
type_ = value.getNumber();
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
*/
private void clearType() {
type_ = 0;
}
public static final int NAME_FIELD_NUMBER = 3;
private java.lang.String name_;
/**
* string name = 3 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return name_;
}
/**
* string name = 3 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
* string name = 3 [json_name = "name"];
* @param value The name to set.
*/
private void setName(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
name_ = value;
}
/**
* string name = 3 [json_name = "name"];
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
* string name = 3 [json_name = "name"];
* @param value The bytes for name to set.
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int EVENT_IDS_FIELD_NUMBER = 4;
private com.google.protobuf.Internal.LongList eventIds_;
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @return A list containing the eventIds.
*/
@java.lang.Override
public java.util.List
getEventIdsList() {
return eventIds_;
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @return The count of eventIds.
*/
@java.lang.Override
public int getEventIdsCount() {
return eventIds_.size();
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param index The index of the element to return.
* @return The eventIds at the given index.
*/
@java.lang.Override
public long getEventIds(int index) {
return eventIds_.getLong(index);
}
private int eventIdsMemoizedSerializedSize = -1;
private void ensureEventIdsIsMutable() {
com.google.protobuf.Internal.LongList tmp = eventIds_;
if (!tmp.isModifiable()) {
eventIds_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param index The index to set the value at.
* @param value The eventIds to set.
*/
private void setEventIds(
int index, long value) {
ensureEventIdsIsMutable();
eventIds_.setLong(index, value);
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param value The eventIds to add.
*/
private void addEventIds(long value) {
ensureEventIdsIsMutable();
eventIds_.addLong(value);
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param values The eventIds to add.
*/
private void addAllEventIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureEventIdsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, eventIds_);
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
*/
private void clearEventIds() {
eventIds_ = emptyLongList();
}
public static final int LEADERBOARDS_FIELD_NUMBER = 8;
private com.google.protobuf.Internal.ProtobufList leaderboards_;
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @return A list containing the leaderboards.
*/
@java.lang.Override
public java.util.List getLeaderboardsList() {
return leaderboards_;
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @return The count of leaderboards.
*/
@java.lang.Override
public int getLeaderboardsCount() {
return leaderboards_.size();
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param index The index of the element to return.
* @return The leaderboards at the given index.
*/
@java.lang.Override
public java.lang.String getLeaderboards(int index) {
return leaderboards_.get(index);
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param index The index of the value to return.
* @return The bytes of the leaderboards at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLeaderboardsBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
leaderboards_.get(index));
}
private void ensureLeaderboardsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
leaderboards_; if (!tmp.isModifiable()) {
leaderboards_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param index The index to set the value at.
* @param value The leaderboards to set.
*/
private void setLeaderboards(
int index, java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureLeaderboardsIsMutable();
leaderboards_.set(index, value);
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param value The leaderboards to add.
*/
private void addLeaderboards(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureLeaderboardsIsMutable();
leaderboards_.add(value);
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param values The leaderboards to add.
*/
private void addAllLeaderboards(
java.lang.Iterable values) {
ensureLeaderboardsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, leaderboards_);
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
*/
private void clearLeaderboards() {
leaderboards_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param value The bytes of the leaderboards to add.
*/
private void addLeaderboardsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureLeaderboardsIsMutable();
leaderboards_.add(value.toStringUtf8());
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData 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.interactive.leaderboard.admin.LeaderboardCreateData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData 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.interactive.leaderboard.admin.LeaderboardCreateData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData 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.interactive.leaderboard.admin.LeaderboardCreateData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData 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.interactive.leaderboard.admin.LeaderboardCreateData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData 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.interactive.leaderboard.admin.LeaderboardCreateData prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.interactive.leaderboard.admin.LeaderboardCreateData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.interactive.leaderboard.admin.LeaderboardCreateData)
com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateDataOrBuilder {
// Construct using com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string id = 1 [json_name = "id"];
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
return instance.getId();
}
/**
* string id = 1 [json_name = "id"];
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIdBytes() {
return instance.getIdBytes();
}
/**
* string id = 1 [json_name = "id"];
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(
java.lang.String value) {
copyOnWrite();
instance.setId(value);
return this;
}
/**
* string id = 1 [json_name = "id"];
* @return This builder for chaining.
*/
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
* string id = 1 [json_name = "id"];
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setIdBytes(value);
return this;
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override
public int getTypeValue() {
return instance.getTypeValue();
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [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.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @return The type.
*/
@java.lang.Override
public com.streamlayer.interactive.leaderboard.LeaderboardType getType() {
return instance.getType();
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [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.interactive.leaderboard.LeaderboardType value) {
copyOnWrite();
instance.setType(value);
return this;
}
/**
* .streamlayer.interactive.leaderboard.LeaderboardType type = 2 [json_name = "type"];
* @return This builder for chaining.
*/
public Builder clearType() {
copyOnWrite();
instance.clearType();
return this;
}
/**
* string name = 3 [json_name = "name"];
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
return instance.getName();
}
/**
* string name = 3 [json_name = "name"];
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
* string name = 3 [json_name = "name"];
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
* string name = 3 [json_name = "name"];
* @return This builder for chaining.
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
* string name = 3 [json_name = "name"];
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @return A list containing the eventIds.
*/
@java.lang.Override
public java.util.List
getEventIdsList() {
return java.util.Collections.unmodifiableList(
instance.getEventIdsList());
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @return The count of eventIds.
*/
@java.lang.Override
public int getEventIdsCount() {
return instance.getEventIdsCount();
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param index The index of the element to return.
* @return The eventIds at the given index.
*/
@java.lang.Override
public long getEventIds(int index) {
return instance.getEventIds(index);
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param value The eventIds to set.
* @return This builder for chaining.
*/
public Builder setEventIds(
int index, long value) {
copyOnWrite();
instance.setEventIds(index, value);
return this;
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param value The eventIds to add.
* @return This builder for chaining.
*/
public Builder addEventIds(long value) {
copyOnWrite();
instance.addEventIds(value);
return this;
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @param values The eventIds to add.
* @return This builder for chaining.
*/
public Builder addAllEventIds(
java.lang.Iterable extends java.lang.Long> values) {
copyOnWrite();
instance.addAllEventIds(values);
return this;
}
/**
* repeated int64 event_ids = 4 [json_name = "eventIds"];
* @return This builder for chaining.
*/
public Builder clearEventIds() {
copyOnWrite();
instance.clearEventIds();
return this;
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @return A list containing the leaderboards.
*/
@java.lang.Override
public java.util.List
getLeaderboardsList() {
return java.util.Collections.unmodifiableList(
instance.getLeaderboardsList());
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @return The count of leaderboards.
*/
@java.lang.Override
public int getLeaderboardsCount() {
return instance.getLeaderboardsCount();
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param index The index of the element to return.
* @return The leaderboards at the given index.
*/
@java.lang.Override
public java.lang.String getLeaderboards(int index) {
return instance.getLeaderboards(index);
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param index The index of the value to return.
* @return The bytes of the leaderboards at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLeaderboardsBytes(int index) {
return instance.getLeaderboardsBytes(index);
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param index The index to set the value at.
* @param value The leaderboards to set.
* @return This builder for chaining.
*/
public Builder setLeaderboards(
int index, java.lang.String value) {
copyOnWrite();
instance.setLeaderboards(index, value);
return this;
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param value The leaderboards to add.
* @return This builder for chaining.
*/
public Builder addLeaderboards(
java.lang.String value) {
copyOnWrite();
instance.addLeaderboards(value);
return this;
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param values The leaderboards to add.
* @return This builder for chaining.
*/
public Builder addAllLeaderboards(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllLeaderboards(values);
return this;
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @return This builder for chaining.
*/
public Builder clearLeaderboards() {
copyOnWrite();
instance.clearLeaderboards();
return this;
}
/**
* repeated string leaderboards = 8 [json_name = "leaderboards"];
* @param value The bytes of the leaderboards to add.
* @return This builder for chaining.
*/
public Builder addLeaderboardsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addLeaderboardsBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.interactive.leaderboard.admin.LeaderboardCreateData)
}
@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.interactive.leaderboard.admin.LeaderboardCreateData();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"type_",
"name_",
"eventIds_",
"leaderboards_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0000\u0001\b\u0005\u0000\u0002\u0000\u0001\u0208\u0002\f\u0003" +
"\u0208\u0004%\b\u021a";
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.interactive.leaderboard.admin.LeaderboardCreateData.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.interactive.leaderboard.admin.LeaderboardCreateData)
private static final com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData DEFAULT_INSTANCE;
static {
LeaderboardCreateData defaultInstance = new LeaderboardCreateData();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
LeaderboardCreateData.class, defaultInstance);
}
public static com.streamlayer.interactive.leaderboard.admin.LeaderboardCreateData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}