Compare commits

...
15 Commits
185 changed files with 15993 additions and 1063 deletions

No files matched your search

+21
View File
@@ -6,6 +6,27 @@ The format is based on [keep a changelog](http://keepachangelog.com/) and this p
## [Unreleased]
## [2.0.4] - 2020-01-23
### Added
- Updated gRPC, GSON and Lombok dependencies.
## [2.0.3] - 2019-10-25
### Added
- More ways to create a socket connection.
### Fixed
- Correctly decode UserPresence from payload.
## [2.0.2] - 2019-10-14
### Added
- Add support for session vars.
- Add support for sending metadata when joining a match with an ID.
- Add pagination support for friends and groups.
## [2.0.1] - 2019-06-19
### Added
- Add support for listing expired leaderboard/tournament records.
## [2.0.0] - 2019-03-29
### Added
- Support for Nakama 2.
+6 -6
View File
@@ -36,7 +36,7 @@ plugins {
}
group = 'com.heroiclabs.nakama'
version = '2.0.0'
version = '2.0.4'
def description = 'Android optimized Java client for Nakama server.'
def gopath = System.getenv('GOPATH')
sourceCompatibility = 1.7
@@ -51,16 +51,16 @@ repositories {
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.2'
compile 'com.google.code.gson:gson:2.8.5'
compileOnly 'org.projectlombok:lombok:1.18.10'
compile 'com.google.code.gson:gson:2.8.6'
compile 'com.google.protobuf:protobuf-lite:3.0.1'
compile ('io.grpc:grpc-okhttp:1.14.0') {
compile ('io.grpc:grpc-okhttp:1.21.0') {
exclude group: 'com.squareup.okio', module:'okio'
}
compile 'com.squareup.okio:okio:1.14.0'
compile 'com.squareup.okhttp3:okhttp:3.11.0'
compile 'io.grpc:grpc-protobuf-lite:1.14.0'
compile 'io.grpc:grpc-stub:1.14.0'
compile 'io.grpc:grpc-protobuf-lite:1.21.0'
compile 'io.grpc:grpc-stub:1.21.0'
compile 'javax.annotation:javax.annotation-api:1.3.2'
compile ('com.google.api.grpc:googleapis-common-protos:0.0.3') {
exclude group: 'io.grpc', module:'grpc-protobuf'
@@ -527,6 +527,37 @@ public final class NakamaGrpc {
return getDeleteStorageObjectsMethod;
}
private static volatile io.grpc.MethodDescriptor<com.heroiclabs.nakama.api.Event,
com.google.protobuf.Empty> getEventMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Event",
requestType = com.heroiclabs.nakama.api.Event.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.heroiclabs.nakama.api.Event,
com.google.protobuf.Empty> getEventMethod() {
io.grpc.MethodDescriptor<com.heroiclabs.nakama.api.Event, com.google.protobuf.Empty> getEventMethod;
if ((getEventMethod = NakamaGrpc.getEventMethod) == null) {
synchronized (NakamaGrpc.class) {
if ((getEventMethod = NakamaGrpc.getEventMethod) == null) {
NakamaGrpc.getEventMethod = getEventMethod =
io.grpc.MethodDescriptor.<com.heroiclabs.nakama.api.Event, com.google.protobuf.Empty>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"nakama.api.Nakama", "Event"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.heroiclabs.nakama.api.Event.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.build();
}
}
}
return getEventMethod;
}
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
com.heroiclabs.nakama.api.Account> getGetAccountMethod;
@@ -1023,30 +1054,30 @@ public final class NakamaGrpc {
return getListChannelMessagesMethod;
}
private static volatile io.grpc.MethodDescriptor<com.google.protobuf.Empty,
com.heroiclabs.nakama.api.Friends> getListFriendsMethod;
private static volatile io.grpc.MethodDescriptor<com.heroiclabs.nakama.api.ListFriendsRequest,
com.heroiclabs.nakama.api.FriendList> getListFriendsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListFriends",
requestType = com.google.protobuf.Empty.class,
responseType = com.heroiclabs.nakama.api.Friends.class,
requestType = com.heroiclabs.nakama.api.ListFriendsRequest.class,
responseType = com.heroiclabs.nakama.api.FriendList.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<com.google.protobuf.Empty,
com.heroiclabs.nakama.api.Friends> getListFriendsMethod() {
io.grpc.MethodDescriptor<com.google.protobuf.Empty, com.heroiclabs.nakama.api.Friends> getListFriendsMethod;
public static io.grpc.MethodDescriptor<com.heroiclabs.nakama.api.ListFriendsRequest,
com.heroiclabs.nakama.api.FriendList> getListFriendsMethod() {
io.grpc.MethodDescriptor<com.heroiclabs.nakama.api.ListFriendsRequest, com.heroiclabs.nakama.api.FriendList> getListFriendsMethod;
if ((getListFriendsMethod = NakamaGrpc.getListFriendsMethod) == null) {
synchronized (NakamaGrpc.class) {
if ((getListFriendsMethod = NakamaGrpc.getListFriendsMethod) == null) {
NakamaGrpc.getListFriendsMethod = getListFriendsMethod =
io.grpc.MethodDescriptor.<com.google.protobuf.Empty, com.heroiclabs.nakama.api.Friends>newBuilder()
io.grpc.MethodDescriptor.<com.heroiclabs.nakama.api.ListFriendsRequest, com.heroiclabs.nakama.api.FriendList>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"nakama.api.Nakama", "ListFriends"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
com.heroiclabs.nakama.api.ListFriendsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.heroiclabs.nakama.api.Friends.getDefaultInstance()))
com.heroiclabs.nakama.api.FriendList.getDefaultInstance()))
.build();
}
}
@@ -2051,6 +2082,16 @@ public final class NakamaGrpc {
asyncUnimplementedUnaryCall(getDeleteStorageObjectsMethod(), responseObserver);
}
/**
* <pre>
* Submit an event for processing in the server's registered runtime custom events handler.
* </pre>
*/
public void event(com.heroiclabs.nakama.api.Event request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
asyncUnimplementedUnaryCall(getEventMethod(), responseObserver);
}
/**
* <pre>
* Fetch the current user's account.
@@ -2216,8 +2257,8 @@ public final class NakamaGrpc {
* List all friends for the current user.
* </pre>
*/
public void listFriends(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.Friends> responseObserver) {
public void listFriends(com.heroiclabs.nakama.api.ListFriendsRequest request,
io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.FriendList> responseObserver) {
asyncUnimplementedUnaryCall(getListFriendsMethod(), responseObserver);
}
@@ -2595,6 +2636,13 @@ public final class NakamaGrpc {
com.heroiclabs.nakama.api.DeleteStorageObjectsRequest,
com.google.protobuf.Empty>(
this, METHODID_DELETE_STORAGE_OBJECTS)))
.addMethod(
getEventMethod(),
asyncUnaryCall(
new MethodHandlers<
com.heroiclabs.nakama.api.Event,
com.google.protobuf.Empty>(
this, METHODID_EVENT)))
.addMethod(
getGetAccountMethod(),
asyncUnaryCall(
@@ -2711,8 +2759,8 @@ public final class NakamaGrpc {
getListFriendsMethod(),
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
com.heroiclabs.nakama.api.Friends>(
com.heroiclabs.nakama.api.ListFriendsRequest,
com.heroiclabs.nakama.api.FriendList>(
this, METHODID_LIST_FRIENDS)))
.addMethod(
getListGroupsMethod(),
@@ -3098,6 +3146,17 @@ public final class NakamaGrpc {
getChannel().newCall(getDeleteStorageObjectsMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Submit an event for processing in the server's registered runtime custom events handler.
* </pre>
*/
public void event(com.heroiclabs.nakama.api.Event request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getEventMethod(), getCallOptions()), request, responseObserver);
}
/**
* <pre>
* Fetch the current user's account.
@@ -3279,8 +3338,8 @@ public final class NakamaGrpc {
* List all friends for the current user.
* </pre>
*/
public void listFriends(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.Friends> responseObserver) {
public void listFriends(com.heroiclabs.nakama.api.ListFriendsRequest request,
io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.FriendList> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getListFriendsMethod(), getCallOptions()), request, responseObserver);
}
@@ -3754,6 +3813,16 @@ public final class NakamaGrpc {
getChannel(), getDeleteStorageObjectsMethod(), getCallOptions(), request);
}
/**
* <pre>
* Submit an event for processing in the server's registered runtime custom events handler.
* </pre>
*/
public com.google.protobuf.Empty event(com.heroiclabs.nakama.api.Event request) {
return blockingUnaryCall(
getChannel(), getEventMethod(), getCallOptions(), request);
}
/**
* <pre>
* Fetch the current user's account.
@@ -3919,7 +3988,7 @@ public final class NakamaGrpc {
* List all friends for the current user.
* </pre>
*/
public com.heroiclabs.nakama.api.Friends listFriends(com.google.protobuf.Empty request) {
public com.heroiclabs.nakama.api.FriendList listFriends(com.heroiclabs.nakama.api.ListFriendsRequest request) {
return blockingUnaryCall(
getChannel(), getListFriendsMethod(), getCallOptions(), request);
}
@@ -4383,6 +4452,17 @@ public final class NakamaGrpc {
getChannel().newCall(getDeleteStorageObjectsMethod(), getCallOptions()), request);
}
/**
* <pre>
* Submit an event for processing in the server's registered runtime custom events handler.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> event(
com.heroiclabs.nakama.api.Event request) {
return futureUnaryCall(
getChannel().newCall(getEventMethod(), getCallOptions()), request);
}
/**
* <pre>
* Fetch the current user's account.
@@ -4564,8 +4644,8 @@ public final class NakamaGrpc {
* List all friends for the current user.
* </pre>
*/
public com.google.common.util.concurrent.ListenableFuture<com.heroiclabs.nakama.api.Friends> listFriends(
com.google.protobuf.Empty request) {
public com.google.common.util.concurrent.ListenableFuture<com.heroiclabs.nakama.api.FriendList> listFriends(
com.heroiclabs.nakama.api.ListFriendsRequest request) {
return futureUnaryCall(
getChannel().newCall(getListFriendsMethod(), getCallOptions()), request);
}
@@ -4873,49 +4953,50 @@ public final class NakamaGrpc {
private static final int METHODID_DELETE_LEADERBOARD_RECORD = 13;
private static final int METHODID_DELETE_NOTIFICATIONS = 14;
private static final int METHODID_DELETE_STORAGE_OBJECTS = 15;
private static final int METHODID_GET_ACCOUNT = 16;
private static final int METHODID_GET_USERS = 17;
private static final int METHODID_HEALTHCHECK = 18;
private static final int METHODID_IMPORT_FACEBOOK_FRIENDS = 19;
private static final int METHODID_JOIN_GROUP = 20;
private static final int METHODID_JOIN_TOURNAMENT = 21;
private static final int METHODID_KICK_GROUP_USERS = 22;
private static final int METHODID_LEAVE_GROUP = 23;
private static final int METHODID_LINK_CUSTOM = 24;
private static final int METHODID_LINK_DEVICE = 25;
private static final int METHODID_LINK_EMAIL = 26;
private static final int METHODID_LINK_FACEBOOK = 27;
private static final int METHODID_LINK_GAME_CENTER = 28;
private static final int METHODID_LINK_GOOGLE = 29;
private static final int METHODID_LINK_STEAM = 30;
private static final int METHODID_LIST_CHANNEL_MESSAGES = 31;
private static final int METHODID_LIST_FRIENDS = 32;
private static final int METHODID_LIST_GROUPS = 33;
private static final int METHODID_LIST_GROUP_USERS = 34;
private static final int METHODID_LIST_LEADERBOARD_RECORDS = 35;
private static final int METHODID_LIST_LEADERBOARD_RECORDS_AROUND_OWNER = 36;
private static final int METHODID_LIST_MATCHES = 37;
private static final int METHODID_LIST_NOTIFICATIONS = 38;
private static final int METHODID_LIST_STORAGE_OBJECTS = 39;
private static final int METHODID_LIST_TOURNAMENTS = 40;
private static final int METHODID_LIST_TOURNAMENT_RECORDS = 41;
private static final int METHODID_LIST_TOURNAMENT_RECORDS_AROUND_OWNER = 42;
private static final int METHODID_LIST_USER_GROUPS = 43;
private static final int METHODID_PROMOTE_GROUP_USERS = 44;
private static final int METHODID_READ_STORAGE_OBJECTS = 45;
private static final int METHODID_RPC_FUNC = 46;
private static final int METHODID_UNLINK_CUSTOM = 47;
private static final int METHODID_UNLINK_DEVICE = 48;
private static final int METHODID_UNLINK_EMAIL = 49;
private static final int METHODID_UNLINK_FACEBOOK = 50;
private static final int METHODID_UNLINK_GAME_CENTER = 51;
private static final int METHODID_UNLINK_GOOGLE = 52;
private static final int METHODID_UNLINK_STEAM = 53;
private static final int METHODID_UPDATE_ACCOUNT = 54;
private static final int METHODID_UPDATE_GROUP = 55;
private static final int METHODID_WRITE_LEADERBOARD_RECORD = 56;
private static final int METHODID_WRITE_STORAGE_OBJECTS = 57;
private static final int METHODID_WRITE_TOURNAMENT_RECORD = 58;
private static final int METHODID_EVENT = 16;
private static final int METHODID_GET_ACCOUNT = 17;
private static final int METHODID_GET_USERS = 18;
private static final int METHODID_HEALTHCHECK = 19;
private static final int METHODID_IMPORT_FACEBOOK_FRIENDS = 20;
private static final int METHODID_JOIN_GROUP = 21;
private static final int METHODID_JOIN_TOURNAMENT = 22;
private static final int METHODID_KICK_GROUP_USERS = 23;
private static final int METHODID_LEAVE_GROUP = 24;
private static final int METHODID_LINK_CUSTOM = 25;
private static final int METHODID_LINK_DEVICE = 26;
private static final int METHODID_LINK_EMAIL = 27;
private static final int METHODID_LINK_FACEBOOK = 28;
private static final int METHODID_LINK_GAME_CENTER = 29;
private static final int METHODID_LINK_GOOGLE = 30;
private static final int METHODID_LINK_STEAM = 31;
private static final int METHODID_LIST_CHANNEL_MESSAGES = 32;
private static final int METHODID_LIST_FRIENDS = 33;
private static final int METHODID_LIST_GROUPS = 34;
private static final int METHODID_LIST_GROUP_USERS = 35;
private static final int METHODID_LIST_LEADERBOARD_RECORDS = 36;
private static final int METHODID_LIST_LEADERBOARD_RECORDS_AROUND_OWNER = 37;
private static final int METHODID_LIST_MATCHES = 38;
private static final int METHODID_LIST_NOTIFICATIONS = 39;
private static final int METHODID_LIST_STORAGE_OBJECTS = 40;
private static final int METHODID_LIST_TOURNAMENTS = 41;
private static final int METHODID_LIST_TOURNAMENT_RECORDS = 42;
private static final int METHODID_LIST_TOURNAMENT_RECORDS_AROUND_OWNER = 43;
private static final int METHODID_LIST_USER_GROUPS = 44;
private static final int METHODID_PROMOTE_GROUP_USERS = 45;
private static final int METHODID_READ_STORAGE_OBJECTS = 46;
private static final int METHODID_RPC_FUNC = 47;
private static final int METHODID_UNLINK_CUSTOM = 48;
private static final int METHODID_UNLINK_DEVICE = 49;
private static final int METHODID_UNLINK_EMAIL = 50;
private static final int METHODID_UNLINK_FACEBOOK = 51;
private static final int METHODID_UNLINK_GAME_CENTER = 52;
private static final int METHODID_UNLINK_GOOGLE = 53;
private static final int METHODID_UNLINK_STEAM = 54;
private static final int METHODID_UPDATE_ACCOUNT = 55;
private static final int METHODID_UPDATE_GROUP = 56;
private static final int METHODID_WRITE_LEADERBOARD_RECORD = 57;
private static final int METHODID_WRITE_STORAGE_OBJECTS = 58;
private static final int METHODID_WRITE_TOURNAMENT_RECORD = 59;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
@@ -4998,6 +5079,10 @@ public final class NakamaGrpc {
serviceImpl.deleteStorageObjects((com.heroiclabs.nakama.api.DeleteStorageObjectsRequest) request,
(io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
break;
case METHODID_EVENT:
serviceImpl.event((com.heroiclabs.nakama.api.Event) request,
(io.grpc.stub.StreamObserver<com.google.protobuf.Empty>) responseObserver);
break;
case METHODID_GET_ACCOUNT:
serviceImpl.getAccount((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.Account>) responseObserver);
@@ -5063,8 +5148,8 @@ public final class NakamaGrpc {
(io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.ChannelMessageList>) responseObserver);
break;
case METHODID_LIST_FRIENDS:
serviceImpl.listFriends((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.Friends>) responseObserver);
serviceImpl.listFriends((com.heroiclabs.nakama.api.ListFriendsRequest) request,
(io.grpc.stub.StreamObserver<com.heroiclabs.nakama.api.FriendList>) responseObserver);
break;
case METHODID_LIST_GROUPS:
serviceImpl.listGroups((com.heroiclabs.nakama.api.ListGroupsRequest) request,
@@ -5211,6 +5296,7 @@ public final class NakamaGrpc {
.addMethod(getDeleteLeaderboardRecordMethod())
.addMethod(getDeleteNotificationsMethod())
.addMethod(getDeleteStorageObjectsMethod())
.addMethod(getEventMethod())
.addMethod(getGetAccountMethod())
.addMethod(getGetUsersMethod())
.addMethod(getHealthcheckMethod())
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -18,6 +18,7 @@ public final class AccountCustom extends
private AccountCustom() {
id_ = "";
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.String id_;
/**
@@ -84,11 +85,123 @@ public final class AccountCustom extends
id_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 2;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeString(1, getId());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 2, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -100,6 +213,11 @@ public final class AccountCustom extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getId());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
2, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -250,6 +368,126 @@ public final class AccountCustom extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountCustom)
}
protected final Object dynamicMethod(
@@ -263,6 +501,7 @@ public final class AccountCustom extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -273,8 +512,11 @@ public final class AccountCustom extends
com.heroiclabs.nakama.api.AccountCustom other = (com.heroiclabs.nakama.api.AccountCustom) arg1;
id_ = visitor.visitString(!id_.isEmpty(), id_,
!other.id_.isEmpty(), other.id_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -303,6 +545,12 @@ public final class AccountCustom extends
id_ = s;
break;
}
case 18: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -24,4 +24,58 @@ public interface AccountCustomOrBuilder extends
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -18,6 +18,7 @@ public final class AccountDevice extends
private AccountDevice() {
id_ = "";
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private java.lang.String id_;
/**
@@ -84,11 +85,123 @@ public final class AccountDevice extends
id_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 2;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!id_.isEmpty()) {
output.writeString(1, getId());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 2, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -100,6 +213,11 @@ public final class AccountDevice extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getId());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
2, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -250,6 +368,126 @@ public final class AccountDevice extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountDevice)
}
protected final Object dynamicMethod(
@@ -263,6 +501,7 @@ public final class AccountDevice extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -273,8 +512,11 @@ public final class AccountDevice extends
com.heroiclabs.nakama.api.AccountDevice other = (com.heroiclabs.nakama.api.AccountDevice) arg1;
id_ = visitor.visitString(!id_.isEmpty(), id_,
!other.id_.isEmpty(), other.id_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -303,6 +545,12 @@ public final class AccountDevice extends
id_ = s;
break;
}
case 18: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -24,4 +24,58 @@ public interface AccountDeviceOrBuilder extends
*/
com.google.protobuf.ByteString
getIdBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -19,6 +19,7 @@ public final class AccountEmail extends
email_ = "";
password_ = "";
}
private int bitField0_;
public static final int EMAIL_FIELD_NUMBER = 1;
private java.lang.String email_;
/**
@@ -151,6 +152,113 @@ public final class AccountEmail extends
password_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 3;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!email_.isEmpty()) {
@@ -159,6 +267,11 @@ public final class AccountEmail extends
if (!password_.isEmpty()) {
output.writeString(2, getPassword());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 3, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -174,6 +287,11 @@ public final class AccountEmail extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getPassword());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
3, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -384,6 +502,126 @@ public final class AccountEmail extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountEmail)
}
protected final Object dynamicMethod(
@@ -397,6 +635,7 @@ public final class AccountEmail extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -409,8 +648,11 @@ public final class AccountEmail extends
!other.email_.isEmpty(), other.email_);
password_ = visitor.visitString(!password_.isEmpty(), password_,
!other.password_.isEmpty(), other.password_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -445,6 +687,12 @@ public final class AccountEmail extends
password_ = s;
break;
}
case 26: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -42,4 +42,58 @@ public interface AccountEmailOrBuilder extends
*/
com.google.protobuf.ByteString
getPasswordBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 3;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -18,6 +18,7 @@ public final class AccountFacebook extends
private AccountFacebook() {
token_ = "";
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private java.lang.String token_;
/**
@@ -84,11 +85,123 @@ public final class AccountFacebook extends
token_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 2;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!token_.isEmpty()) {
output.writeString(1, getToken());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 2, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -100,6 +213,11 @@ public final class AccountFacebook extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getToken());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
2, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -250,6 +368,126 @@ public final class AccountFacebook extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountFacebook)
}
protected final Object dynamicMethod(
@@ -263,6 +501,7 @@ public final class AccountFacebook extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -273,8 +512,11 @@ public final class AccountFacebook extends
com.heroiclabs.nakama.api.AccountFacebook other = (com.heroiclabs.nakama.api.AccountFacebook) arg1;
token_ = visitor.visitString(!token_.isEmpty(), token_,
!other.token_.isEmpty(), other.token_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -303,6 +545,12 @@ public final class AccountFacebook extends
token_ = s;
break;
}
case 18: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -24,4 +24,58 @@ public interface AccountFacebookOrBuilder extends
*/
com.google.protobuf.ByteString
getTokenBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -22,6 +22,7 @@ public final class AccountGameCenter extends
signature_ = "";
publicKeyUrl_ = "";
}
private int bitField0_;
public static final int PLAYER_ID_FIELD_NUMBER = 1;
private java.lang.String playerId_;
/**
@@ -387,6 +388,113 @@ public final class AccountGameCenter extends
publicKeyUrl_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 7;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!playerId_.isEmpty()) {
@@ -407,6 +515,11 @@ public final class AccountGameCenter extends
if (!publicKeyUrl_.isEmpty()) {
output.writeString(6, getPublicKeyUrl());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 7, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -438,6 +551,11 @@ public final class AccountGameCenter extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(6, getPublicKeyUrl());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
7, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -863,6 +981,126 @@ public final class AccountGameCenter extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountGameCenter)
}
protected final Object dynamicMethod(
@@ -876,6 +1114,7 @@ public final class AccountGameCenter extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -896,8 +1135,11 @@ public final class AccountGameCenter extends
!other.signature_.isEmpty(), other.signature_);
publicKeyUrl_ = visitor.visitString(!publicKeyUrl_.isEmpty(), publicKeyUrl_,
!other.publicKeyUrl_.isEmpty(), other.publicKeyUrl_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -955,6 +1197,12 @@ public final class AccountGameCenter extends
publicKeyUrl_ = s;
break;
}
case 58: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -105,4 +105,58 @@ public interface AccountGameCenterOrBuilder extends
*/
com.google.protobuf.ByteString
getPublicKeyUrlBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 7;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -18,6 +18,7 @@ public final class AccountGoogle extends
private AccountGoogle() {
token_ = "";
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private java.lang.String token_;
/**
@@ -84,11 +85,123 @@ public final class AccountGoogle extends
token_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 2;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!token_.isEmpty()) {
output.writeString(1, getToken());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 2, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -100,6 +213,11 @@ public final class AccountGoogle extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getToken());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
2, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -250,6 +368,126 @@ public final class AccountGoogle extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountGoogle)
}
protected final Object dynamicMethod(
@@ -263,6 +501,7 @@ public final class AccountGoogle extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -273,8 +512,11 @@ public final class AccountGoogle extends
com.heroiclabs.nakama.api.AccountGoogle other = (com.heroiclabs.nakama.api.AccountGoogle) arg1;
token_ = visitor.visitString(!token_.isEmpty(), token_,
!other.token_.isEmpty(), other.token_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -303,6 +545,12 @@ public final class AccountGoogle extends
token_ = s;
break;
}
case 18: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -24,4 +24,58 @@ public interface AccountGoogleOrBuilder extends
*/
com.google.protobuf.ByteString
getTokenBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -18,6 +18,7 @@ public final class AccountSteam extends
private AccountSteam() {
token_ = "";
}
private int bitField0_;
public static final int TOKEN_FIELD_NUMBER = 1;
private java.lang.String token_;
/**
@@ -84,11 +85,123 @@ public final class AccountSteam extends
token_ = value.toStringUtf8();
}
public static final int VARS_FIELD_NUMBER = 2;
private static final class VarsDefaultEntryHolder {
static final com.google.protobuf.MapEntryLite<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntryLite
.<java.lang.String, java.lang.String>newDefaultInstance(
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapFieldLite<
java.lang.String, java.lang.String> vars_ =
com.google.protobuf.MapFieldLite.emptyMapField();
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetVars() {
return vars_;
}
private com.google.protobuf.MapFieldLite<java.lang.String, java.lang.String>
internalGetMutableVars() {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
return vars_;
}
public int getVarsCount() {
return internalGetVars().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetVars().containsKey(key);
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
internalGetVars());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
internalGetVars();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
private java.util.Map<java.lang.String, java.lang.String>
getMutableVarsMap() {
return internalGetMutableVars();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!token_.isEmpty()) {
output.writeString(1, getToken());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
VarsDefaultEntryHolder.defaultEntry.serializeTo(
output, 2, entry.getKey(), entry.getValue());
}
}
public int getSerializedSize() {
@@ -100,6 +213,11 @@ public final class AccountSteam extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getToken());
}
for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
: internalGetVars().entrySet()) {
size += VarsDefaultEntryHolder.defaultEntry.computeMessageSize(
2, entry.getKey(), entry.getValue());
}
memoizedSerializedSize = size;
return size;
}
@@ -250,6 +368,126 @@ public final class AccountSteam extends
return this;
}
public int getVarsCount() {
return instance.getVarsMap().size();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public boolean containsVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return instance.getVarsMap().containsKey(key);
}
public Builder clearVars() {
copyOnWrite();
instance.getMutableVarsMap().clear();
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder removeVars(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().remove(key);
return this;
}
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map<java.lang.String, java.lang.String> getVars() {
return getVarsMap();
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.util.Map<java.lang.String, java.lang.String> getVarsMap() {
return java.util.Collections.unmodifiableMap(
instance.getVarsMap());
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public java.lang.String getVarsOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map<java.lang.String, java.lang.String> map =
instance.getVarsMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putVars(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
copyOnWrite();
instance.getMutableVarsMap().put(key, value);
return this;
}
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
public Builder putAllVars(
java.util.Map<java.lang.String, java.lang.String> values) {
copyOnWrite();
instance.getMutableVarsMap().putAll(values);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.AccountSteam)
}
protected final Object dynamicMethod(
@@ -263,6 +501,7 @@ public final class AccountSteam extends
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
vars_.makeImmutable();
return null;
}
case NEW_BUILDER: {
@@ -273,8 +512,11 @@ public final class AccountSteam extends
com.heroiclabs.nakama.api.AccountSteam other = (com.heroiclabs.nakama.api.AccountSteam) arg1;
token_ = visitor.visitString(!token_.isEmpty(), token_,
!other.token_.isEmpty(), other.token_);
vars_ = visitor.visitMap(
vars_, other.internalGetVars());
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -303,6 +545,12 @@ public final class AccountSteam extends
token_ = s;
break;
}
case 18: {
if (!vars_.isMutable()) {
vars_ = vars_.mutableCopy();
}
VarsDefaultEntryHolder.defaultEntry.parseInto(vars_, input, extensionRegistry); break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -24,4 +24,58 @@ public interface AccountSteamOrBuilder extends
*/
com.google.protobuf.ByteString
getTokenBytes();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
int getVarsCount();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
boolean containsVars(
java.lang.String key);
/**
* Use {@link #getVarsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map<java.lang.String, java.lang.String>
getVars();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.util.Map<java.lang.String, java.lang.String>
getVarsMap();
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* <pre>
* Extra information that will be bundled in the session token.
* </pre>
*
* <code>map&lt;string, string&gt; vars = 2;</code>
*/
java.lang.String getVarsOrThrow(
java.lang.String key);
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -21,6 +21,10 @@ public final class ChannelMessage extends
senderId_ = "";
username_ = "";
content_ = "";
roomName_ = "";
groupId_ = "";
userIdOne_ = "";
userIdTwo_ = "";
}
public static final int CHANNEL_ID_FIELD_NUMBER = 1;
private java.lang.String channelId_;
@@ -656,6 +660,270 @@ public final class ChannelMessage extends
}
public static final int ROOM_NAME_FIELD_NUMBER = 10;
private java.lang.String roomName_;
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public java.lang.String getRoomName() {
return roomName_;
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public com.google.protobuf.ByteString
getRoomNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(roomName_);
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
private void setRoomName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
roomName_ = value;
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
private void clearRoomName() {
roomName_ = getDefaultInstance().getRoomName();
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
private void setRoomNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
roomName_ = value.toStringUtf8();
}
public static final int GROUP_ID_FIELD_NUMBER = 11;
private java.lang.String groupId_;
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public java.lang.String getGroupId() {
return groupId_;
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(groupId_);
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
private void setGroupId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
groupId_ = value;
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
private void clearGroupId() {
groupId_ = getDefaultInstance().getGroupId();
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
private void setGroupIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
groupId_ = value.toStringUtf8();
}
public static final int USER_ID_ONE_FIELD_NUMBER = 12;
private java.lang.String userIdOne_;
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public java.lang.String getUserIdOne() {
return userIdOne_;
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public com.google.protobuf.ByteString
getUserIdOneBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(userIdOne_);
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
private void setUserIdOne(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdOne_ = value;
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
private void clearUserIdOne() {
userIdOne_ = getDefaultInstance().getUserIdOne();
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
private void setUserIdOneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userIdOne_ = value.toStringUtf8();
}
public static final int USER_ID_TWO_FIELD_NUMBER = 13;
private java.lang.String userIdTwo_;
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public java.lang.String getUserIdTwo() {
return userIdTwo_;
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public com.google.protobuf.ByteString
getUserIdTwoBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(userIdTwo_);
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
private void setUserIdTwo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userIdTwo_ = value;
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
private void clearUserIdTwo() {
userIdTwo_ = getDefaultInstance().getUserIdTwo();
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
private void setUserIdTwoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userIdTwo_ = value.toStringUtf8();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!channelId_.isEmpty()) {
@@ -685,6 +953,18 @@ public final class ChannelMessage extends
if (persistent_ != null) {
output.writeMessage(9, getPersistent());
}
if (!roomName_.isEmpty()) {
output.writeString(10, getRoomName());
}
if (!groupId_.isEmpty()) {
output.writeString(11, getGroupId());
}
if (!userIdOne_.isEmpty()) {
output.writeString(12, getUserIdOne());
}
if (!userIdTwo_.isEmpty()) {
output.writeString(13, getUserIdTwo());
}
}
public int getSerializedSize() {
@@ -728,6 +1008,22 @@ public final class ChannelMessage extends
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getPersistent());
}
if (!roomName_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(10, getRoomName());
}
if (!groupId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(11, getGroupId());
}
if (!userIdOne_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(12, getUserIdOne());
}
if (!userIdTwo_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(13, getUserIdTwo());
}
memoizedSerializedSize = size;
return size;
}
@@ -1394,6 +1690,246 @@ public final class ChannelMessage extends
return this;
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public java.lang.String getRoomName() {
return instance.getRoomName();
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public com.google.protobuf.ByteString
getRoomNameBytes() {
return instance.getRoomNameBytes();
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public Builder setRoomName(
java.lang.String value) {
copyOnWrite();
instance.setRoomName(value);
return this;
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public Builder clearRoomName() {
copyOnWrite();
instance.clearRoomName();
return this;
}
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
public Builder setRoomNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setRoomNameBytes(value);
return this;
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public java.lang.String getGroupId() {
return instance.getGroupId();
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public com.google.protobuf.ByteString
getGroupIdBytes() {
return instance.getGroupIdBytes();
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public Builder setGroupId(
java.lang.String value) {
copyOnWrite();
instance.setGroupId(value);
return this;
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public Builder clearGroupId() {
copyOnWrite();
instance.clearGroupId();
return this;
}
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
public Builder setGroupIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setGroupIdBytes(value);
return this;
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public java.lang.String getUserIdOne() {
return instance.getUserIdOne();
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public com.google.protobuf.ByteString
getUserIdOneBytes() {
return instance.getUserIdOneBytes();
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public Builder setUserIdOne(
java.lang.String value) {
copyOnWrite();
instance.setUserIdOne(value);
return this;
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public Builder clearUserIdOne() {
copyOnWrite();
instance.clearUserIdOne();
return this;
}
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
public Builder setUserIdOneBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setUserIdOneBytes(value);
return this;
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public java.lang.String getUserIdTwo() {
return instance.getUserIdTwo();
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public com.google.protobuf.ByteString
getUserIdTwoBytes() {
return instance.getUserIdTwoBytes();
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public Builder setUserIdTwo(
java.lang.String value) {
copyOnWrite();
instance.setUserIdTwo(value);
return this;
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public Builder clearUserIdTwo() {
copyOnWrite();
instance.clearUserIdTwo();
return this;
}
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
public Builder setUserIdTwoBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setUserIdTwoBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.ChannelMessage)
}
protected final Object dynamicMethod(
@@ -1429,6 +1965,14 @@ public final class ChannelMessage extends
createTime_ = visitor.visitMessage(createTime_, other.createTime_);
updateTime_ = visitor.visitMessage(updateTime_, other.updateTime_);
persistent_ = visitor.visitMessage(persistent_, other.persistent_);
roomName_ = visitor.visitString(!roomName_.isEmpty(), roomName_,
!other.roomName_.isEmpty(), other.roomName_);
groupId_ = visitor.visitString(!groupId_.isEmpty(), groupId_,
!other.groupId_.isEmpty(), other.groupId_);
userIdOne_ = visitor.visitString(!userIdOne_.isEmpty(), userIdOne_,
!other.userIdOne_.isEmpty(), other.userIdOne_);
userIdTwo_ = visitor.visitString(!userIdTwo_.isEmpty(), userIdTwo_,
!other.userIdTwo_.isEmpty(), other.userIdTwo_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
@@ -1535,6 +2079,30 @@ public final class ChannelMessage extends
break;
}
case 82: {
String s = input.readStringRequireUtf8();
roomName_ = s;
break;
}
case 90: {
String s = input.readStringRequireUtf8();
groupId_ = s;
break;
}
case 98: {
String s = input.readStringRequireUtf8();
userIdOne_ = s;
break;
}
case 106: {
String s = input.readStringRequireUtf8();
userIdTwo_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -164,4 +164,76 @@ public interface ChannelMessageOrBuilder extends
* <code>optional .google.protobuf.BoolValue persistent = 9;</code>
*/
com.google.protobuf.BoolValue getPersistent();
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
java.lang.String getRoomName();
/**
* <pre>
* The name of the chat room, or an empty string if this message was not sent through a chat room.
* </pre>
*
* <code>optional string room_name = 10;</code>
*/
com.google.protobuf.ByteString
getRoomNameBytes();
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
java.lang.String getGroupId();
/**
* <pre>
* The ID of the group, or an empty string if this message was not sent through a group channel.
* </pre>
*
* <code>optional string group_id = 11;</code>
*/
com.google.protobuf.ByteString
getGroupIdBytes();
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
java.lang.String getUserIdOne();
/**
* <pre>
* The ID of the first DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_one = 12;</code>
*/
com.google.protobuf.ByteString
getUserIdOneBytes();
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
java.lang.String getUserIdTwo();
/**
* <pre>
* The ID of the second DM user, or an empty string if this message was not sent through a DM chat.
* </pre>
*
* <code>optional string user_id_two = 13;</code>
*/
com.google.protobuf.ByteString
getUserIdTwoBytes();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -320,6 +320,41 @@ public final class CreateGroupRequest extends
open_ = false;
}
public static final int MAX_COUNT_FIELD_NUMBER = 6;
private int maxCount_;
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
public int getMaxCount() {
return maxCount_;
}
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
private void setMaxCount(int value) {
maxCount_ = value;
}
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
private void clearMaxCount() {
maxCount_ = 0;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!name_.isEmpty()) {
@@ -337,6 +372,9 @@ public final class CreateGroupRequest extends
if (open_ != false) {
output.writeBool(5, open_);
}
if (maxCount_ != 0) {
output.writeInt32(6, maxCount_);
}
}
public int getSerializedSize() {
@@ -364,6 +402,10 @@ public final class CreateGroupRequest extends
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, open_);
}
if (maxCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, maxCount_);
}
memoizedSerializedSize = size;
return size;
}
@@ -729,6 +771,41 @@ public final class CreateGroupRequest extends
return this;
}
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
public int getMaxCount() {
return instance.getMaxCount();
}
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
public Builder setMaxCount(int value) {
copyOnWrite();
instance.setMaxCount(value);
return this;
}
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
public Builder clearMaxCount() {
copyOnWrite();
instance.clearMaxCount();
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.CreateGroupRequest)
}
protected final Object dynamicMethod(
@@ -760,6 +837,8 @@ public final class CreateGroupRequest extends
!other.avatarUrl_.isEmpty(), other.avatarUrl_);
open_ = visitor.visitBoolean(open_ != false, open_,
other.open_ != false, other.open_);
maxCount_ = visitor.visitInt(maxCount_ != 0, maxCount_,
other.maxCount_ != 0, other.maxCount_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
@@ -813,6 +892,11 @@ public final class CreateGroupRequest extends
open_ = input.readBool();
break;
}
case 48: {
maxCount_ = input.readInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -87,4 +87,13 @@ public interface CreateGroupRequestOrBuilder extends
* <code>optional bool open = 5;</code>
*/
boolean getOpen();
/**
* <pre>
* Maximum number of group members.
* </pre>
*
* <code>optional int32 max_count = 6;</code>
*/
int getMaxCount();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,549 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
package com.heroiclabs.nakama.api;
/**
* <pre>
* A collection of zero or more friends of the user.
* </pre>
*
* Protobuf type {@code nakama.api.Friends}
*/
public final class Friends extends
com.google.protobuf.GeneratedMessageLite<
Friends, Friends.Builder> implements
// @@protoc_insertion_point(message_implements:nakama.api.Friends)
FriendsOrBuilder {
private Friends() {
friends_ = emptyProtobufList();
}
public static final int FRIENDS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList<com.heroiclabs.nakama.api.Friend> friends_;
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public java.util.List<com.heroiclabs.nakama.api.Friend> getFriendsList() {
return friends_;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public java.util.List<? extends com.heroiclabs.nakama.api.FriendOrBuilder>
getFriendsOrBuilderList() {
return friends_;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public int getFriendsCount() {
return friends_.size();
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public com.heroiclabs.nakama.api.Friend getFriends(int index) {
return friends_.get(index);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public com.heroiclabs.nakama.api.FriendOrBuilder getFriendsOrBuilder(
int index) {
return friends_.get(index);
}
private void ensureFriendsIsMutable() {
if (!friends_.isModifiable()) {
friends_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(friends_);
}
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void setFriends(
int index, com.heroiclabs.nakama.api.Friend value) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendsIsMutable();
friends_.set(index, value);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void setFriends(
int index, com.heroiclabs.nakama.api.Friend.Builder builderForValue) {
ensureFriendsIsMutable();
friends_.set(index, builderForValue.build());
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void addFriends(com.heroiclabs.nakama.api.Friend value) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendsIsMutable();
friends_.add(value);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void addFriends(
int index, com.heroiclabs.nakama.api.Friend value) {
if (value == null) {
throw new NullPointerException();
}
ensureFriendsIsMutable();
friends_.add(index, value);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void addFriends(
com.heroiclabs.nakama.api.Friend.Builder builderForValue) {
ensureFriendsIsMutable();
friends_.add(builderForValue.build());
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void addFriends(
int index, com.heroiclabs.nakama.api.Friend.Builder builderForValue) {
ensureFriendsIsMutable();
friends_.add(index, builderForValue.build());
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void addAllFriends(
java.lang.Iterable<? extends com.heroiclabs.nakama.api.Friend> values) {
ensureFriendsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, friends_);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void clearFriends() {
friends_ = emptyProtobufList();
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
private void removeFriends(int index) {
ensureFriendsIsMutable();
friends_.remove(index);
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < friends_.size(); i++) {
output.writeMessage(1, friends_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < friends_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, friends_.get(i));
}
memoizedSerializedSize = size;
return size;
}
public static com.heroiclabs.nakama.api.Friends parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.heroiclabs.nakama.api.Friends 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.heroiclabs.nakama.api.Friends parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.heroiclabs.nakama.api.Friends 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.heroiclabs.nakama.api.Friends parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.Friends 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.heroiclabs.nakama.api.Friends parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.Friends parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.heroiclabs.nakama.api.Friends parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.Friends 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 DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.heroiclabs.nakama.api.Friends prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
/**
* <pre>
* A collection of zero or more friends of the user.
* </pre>
*
* Protobuf type {@code nakama.api.Friends}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.heroiclabs.nakama.api.Friends, Builder> implements
// @@protoc_insertion_point(builder_implements:nakama.api.Friends)
com.heroiclabs.nakama.api.FriendsOrBuilder {
// Construct using com.heroiclabs.nakama.api.Friends.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public java.util.List<com.heroiclabs.nakama.api.Friend> getFriendsList() {
return java.util.Collections.unmodifiableList(
instance.getFriendsList());
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public int getFriendsCount() {
return instance.getFriendsCount();
}/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public com.heroiclabs.nakama.api.Friend getFriends(int index) {
return instance.getFriends(index);
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder setFriends(
int index, com.heroiclabs.nakama.api.Friend value) {
copyOnWrite();
instance.setFriends(index, value);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder setFriends(
int index, com.heroiclabs.nakama.api.Friend.Builder builderForValue) {
copyOnWrite();
instance.setFriends(index, builderForValue);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder addFriends(com.heroiclabs.nakama.api.Friend value) {
copyOnWrite();
instance.addFriends(value);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder addFriends(
int index, com.heroiclabs.nakama.api.Friend value) {
copyOnWrite();
instance.addFriends(index, value);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder addFriends(
com.heroiclabs.nakama.api.Friend.Builder builderForValue) {
copyOnWrite();
instance.addFriends(builderForValue);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder addFriends(
int index, com.heroiclabs.nakama.api.Friend.Builder builderForValue) {
copyOnWrite();
instance.addFriends(index, builderForValue);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder addAllFriends(
java.lang.Iterable<? extends com.heroiclabs.nakama.api.Friend> values) {
copyOnWrite();
instance.addAllFriends(values);
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder clearFriends() {
copyOnWrite();
instance.clearFriends();
return this;
}
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
public Builder removeFriends(int index) {
copyOnWrite();
instance.removeFriends(index);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.Friends)
}
protected final Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0, Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.heroiclabs.nakama.api.Friends();
}
case IS_INITIALIZED: {
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
friends_.makeImmutable();
return null;
}
case NEW_BUILDER: {
return new Builder();
}
case VISIT: {
Visitor visitor = (Visitor) arg0;
com.heroiclabs.nakama.api.Friends other = (com.heroiclabs.nakama.api.Friends) arg1;
friends_= visitor.visitList(friends_, other.friends_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
return this;
}
case MERGE_FROM_STREAM: {
com.google.protobuf.CodedInputStream input =
(com.google.protobuf.CodedInputStream) arg0;
com.google.protobuf.ExtensionRegistryLite extensionRegistry =
(com.google.protobuf.ExtensionRegistryLite) arg1;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!friends_.isModifiable()) {
friends_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(friends_);
}
friends_.add(
input.readMessage(com.heroiclabs.nakama.api.Friend.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
}
}
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
if (PARSER == null) { synchronized (com.heroiclabs.nakama.api.Friends.class) {
if (PARSER == null) {
PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
}
}
}
return PARSER;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:nakama.api.Friends)
private static final com.heroiclabs.nakama.api.Friends DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Friends();
DEFAULT_INSTANCE.makeImmutable();
}
public static com.heroiclabs.nakama.api.Friends getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser<Friends> PARSER;
public static com.google.protobuf.Parser<Friends> parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
@@ -1,35 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
package com.heroiclabs.nakama.api;
public interface FriendsOrBuilder extends
// @@protoc_insertion_point(interface_extends:nakama.api.Friends)
com.google.protobuf.MessageLiteOrBuilder {
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
java.util.List<com.heroiclabs.nakama.api.Friend>
getFriendsList();
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
com.heroiclabs.nakama.api.Friend getFriends(int index);
/**
* <pre>
* The Friend objects.
* </pre>
*
* <code>repeated .nakama.api.Friend friends = 1;</code>
*/
int getFriendsCount();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -17,6 +17,7 @@ public final class GroupUserList extends
GroupUserListOrBuilder {
private GroupUserList() {
groupUsers_ = emptyProtobufList();
cursor_ = "";
}
public interface GroupUserOrBuilder extends
// @@protoc_insertion_point(interface_extends:nakama.api.GroupUserList.GroupUser)
@@ -713,6 +714,7 @@ public final class GroupUserList extends
}
}
private int bitField0_;
public static final int GROUP_USERS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.ProtobufList<com.heroiclabs.nakama.api.GroupUserList.GroupUser> groupUsers_;
/**
@@ -889,11 +891,80 @@ public final class GroupUserList extends
groupUsers_.remove(index);
}
public static final int CURSOR_FIELD_NUMBER = 2;
private java.lang.String cursor_;
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public java.lang.String getCursor() {
return cursor_;
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public com.google.protobuf.ByteString
getCursorBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(cursor_);
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
private void setCursor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cursor_ = value;
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
private void clearCursor() {
cursor_ = getDefaultInstance().getCursor();
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
private void setCursorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cursor_ = value.toStringUtf8();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < groupUsers_.size(); i++) {
output.writeMessage(1, groupUsers_.get(i));
}
if (!cursor_.isEmpty()) {
output.writeString(2, getCursor());
}
}
public int getSerializedSize() {
@@ -905,6 +976,10 @@ public final class GroupUserList extends
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, groupUsers_.get(i));
}
if (!cursor_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getCursor());
}
memoizedSerializedSize = size;
return size;
}
@@ -1140,6 +1215,66 @@ public final class GroupUserList extends
return this;
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public java.lang.String getCursor() {
return instance.getCursor();
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public com.google.protobuf.ByteString
getCursorBytes() {
return instance.getCursorBytes();
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public Builder setCursor(
java.lang.String value) {
copyOnWrite();
instance.setCursor(value);
return this;
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public Builder clearCursor() {
copyOnWrite();
instance.clearCursor();
return this;
}
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
public Builder setCursorBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setCursorBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.GroupUserList)
}
protected final Object dynamicMethod(
@@ -1163,8 +1298,11 @@ public final class GroupUserList extends
Visitor visitor = (Visitor) arg0;
com.heroiclabs.nakama.api.GroupUserList other = (com.heroiclabs.nakama.api.GroupUserList) arg1;
groupUsers_= visitor.visitList(groupUsers_, other.groupUsers_);
cursor_ = visitor.visitString(!cursor_.isEmpty(), cursor_,
!other.cursor_.isEmpty(), other.cursor_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
@@ -1196,6 +1334,12 @@ public final class GroupUserList extends
input.readMessage(com.heroiclabs.nakama.api.GroupUserList.GroupUser.parser(), extensionRegistry));
break;
}
case 18: {
String s = input.readStringRequireUtf8();
cursor_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -32,4 +32,22 @@ public interface GroupUserListOrBuilder extends
* <code>repeated .nakama.api.GroupUserList.GroupUser group_users = 1;</code>
*/
int getGroupUsersCount();
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
java.lang.String getCursor();
/**
* <pre>
* Cursor for the next page of results, if any.
* </pre>
*
* <code>optional string cursor = 2;</code>
*/
com.google.protobuf.ByteString
getCursorBytes();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -0,0 +1,351 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
/**
* <pre>
* The request to join a tournament.
* </pre>
*
* Protobuf type {@code nakama.api.JoinTournamentRequest}
*/
public final class JoinTournamentRequest extends
com.google.protobuf.GeneratedMessageLite<
JoinTournamentRequest, JoinTournamentRequest.Builder> implements
// @@protoc_insertion_point(message_implements:nakama.api.JoinTournamentRequest)
JoinTournamentRequestOrBuilder {
private JoinTournamentRequest() {
tournamentId_ = "";
}
public static final int TOURNAMENT_ID_FIELD_NUMBER = 1;
private java.lang.String tournamentId_;
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public java.lang.String getTournamentId() {
return tournamentId_;
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public com.google.protobuf.ByteString
getTournamentIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(tournamentId_);
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
private void setTournamentId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
tournamentId_ = value;
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
private void clearTournamentId() {
tournamentId_ = getDefaultInstance().getTournamentId();
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
private void setTournamentIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
tournamentId_ = value.toStringUtf8();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!tournamentId_.isEmpty()) {
output.writeString(1, getTournamentId());
}
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (!tournamentId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getTournamentId());
}
memoizedSerializedSize = size;
return size;
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest 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.heroiclabs.nakama.api.JoinTournamentRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest 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.heroiclabs.nakama.api.JoinTournamentRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest 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.heroiclabs.nakama.api.JoinTournamentRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest 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 DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.heroiclabs.nakama.api.JoinTournamentRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
/**
* <pre>
* The request to join a tournament.
* </pre>
*
* Protobuf type {@code nakama.api.JoinTournamentRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.heroiclabs.nakama.api.JoinTournamentRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:nakama.api.JoinTournamentRequest)
com.heroiclabs.nakama.api.JoinTournamentRequestOrBuilder {
// Construct using com.heroiclabs.nakama.api.JoinTournamentRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public java.lang.String getTournamentId() {
return instance.getTournamentId();
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public com.google.protobuf.ByteString
getTournamentIdBytes() {
return instance.getTournamentIdBytes();
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public Builder setTournamentId(
java.lang.String value) {
copyOnWrite();
instance.setTournamentId(value);
return this;
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public Builder clearTournamentId() {
copyOnWrite();
instance.clearTournamentId();
return this;
}
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
public Builder setTournamentIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTournamentIdBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.JoinTournamentRequest)
}
protected final Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0, Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.heroiclabs.nakama.api.JoinTournamentRequest();
}
case IS_INITIALIZED: {
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
return null;
}
case NEW_BUILDER: {
return new Builder();
}
case VISIT: {
Visitor visitor = (Visitor) arg0;
com.heroiclabs.nakama.api.JoinTournamentRequest other = (com.heroiclabs.nakama.api.JoinTournamentRequest) arg1;
tournamentId_ = visitor.visitString(!tournamentId_.isEmpty(), tournamentId_,
!other.tournamentId_.isEmpty(), other.tournamentId_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
return this;
}
case MERGE_FROM_STREAM: {
com.google.protobuf.CodedInputStream input =
(com.google.protobuf.CodedInputStream) arg0;
com.google.protobuf.ExtensionRegistryLite extensionRegistry =
(com.google.protobuf.ExtensionRegistryLite) arg1;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
tournamentId_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
}
}
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
if (PARSER == null) { synchronized (com.heroiclabs.nakama.api.JoinTournamentRequest.class) {
if (PARSER == null) {
PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
}
}
}
return PARSER;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:nakama.api.JoinTournamentRequest)
private static final com.heroiclabs.nakama.api.JoinTournamentRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new JoinTournamentRequest();
DEFAULT_INSTANCE.makeImmutable();
}
public static com.heroiclabs.nakama.api.JoinTournamentRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser<JoinTournamentRequest> PARSER;
public static com.google.protobuf.Parser<JoinTournamentRequest> parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
@@ -0,0 +1,27 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
public interface JoinTournamentRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:nakama.api.JoinTournamentRequest)
com.google.protobuf.MessageLiteOrBuilder {
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
java.lang.String getTournamentId();
/**
* <pre>
* The ID of the tournament to join. The tournament must already exist.
* </pre>
*
* <code>optional string tournament_id = 1;</code>
*/
com.google.protobuf.ByteString
getTournamentIdBytes();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -202,7 +202,7 @@ public final class LeaderboardRecordList extends
private com.google.protobuf.Internal.ProtobufList<com.heroiclabs.nakama.api.LeaderboardRecord> ownerRecords_;
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -212,7 +212,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -223,7 +223,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -233,7 +233,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -243,7 +243,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -261,7 +261,7 @@ public final class LeaderboardRecordList extends
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -276,7 +276,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -288,7 +288,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -302,7 +302,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -317,7 +317,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -329,7 +329,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -341,7 +341,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -354,7 +354,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -364,7 +364,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -378,7 +378,7 @@ public final class LeaderboardRecordList extends
private java.lang.String nextCursor_;
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -388,7 +388,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -399,7 +399,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -414,7 +414,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -425,7 +425,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -780,7 +780,7 @@ public final class LeaderboardRecordList extends
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -791,7 +791,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -800,7 +800,7 @@ public final class LeaderboardRecordList extends
return instance.getOwnerRecordsCount();
}/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -810,7 +810,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -823,7 +823,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -836,7 +836,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -848,7 +848,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -861,7 +861,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -874,7 +874,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -887,7 +887,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -900,7 +900,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -912,7 +912,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -925,7 +925,7 @@ public final class LeaderboardRecordList extends
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -935,7 +935,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -946,7 +946,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -959,7 +959,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -971,7 +971,7 @@ public final class LeaderboardRecordList extends
}
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -35,7 +35,7 @@ public interface LeaderboardRecordListOrBuilder extends
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -44,7 +44,7 @@ public interface LeaderboardRecordListOrBuilder extends
getOwnerRecordsList();
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -52,7 +52,7 @@ public interface LeaderboardRecordListOrBuilder extends
com.heroiclabs.nakama.api.LeaderboardRecord getOwnerRecords(int index);
/**
* <pre>
* A batched set of leaderobard records belonging to specified owners.
* A batched set of leaderboard records belonging to specified owners.
* </pre>
*
* <code>repeated .nakama.api.LeaderboardRecord owner_records = 2;</code>
@@ -61,7 +61,7 @@ public interface LeaderboardRecordListOrBuilder extends
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -69,7 +69,7 @@ public interface LeaderboardRecordListOrBuilder extends
java.lang.String getNextCursor();
/**
* <pre>
* The cursor to send when retireving the next page, if any.
* The cursor to send when retrieving the next page, if any.
* </pre>
*
* <code>optional string next_cursor = 3;</code>
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -17,6 +17,7 @@ public final class ListGroupUsersRequest extends
ListGroupUsersRequestOrBuilder {
private ListGroupUsersRequest() {
groupId_ = "";
cursor_ = "";
}
public static final int GROUP_ID_FIELD_NUMBER = 1;
private java.lang.String groupId_;
@@ -84,11 +85,238 @@ public final class ListGroupUsersRequest extends
groupId_ = value.toStringUtf8();
}
public static final int LIMIT_FIELD_NUMBER = 2;
private com.google.protobuf.Int32Value limit_;
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public boolean hasLimit() {
return limit_ != null;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public com.google.protobuf.Int32Value getLimit() {
return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
private void setLimit(com.google.protobuf.Int32Value value) {
if (value == null) {
throw new NullPointerException();
}
limit_ = value;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
private void setLimit(
com.google.protobuf.Int32Value.Builder builderForValue) {
limit_ = builderForValue.build();
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
private void mergeLimit(com.google.protobuf.Int32Value value) {
if (limit_ != null &&
limit_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
limit_ =
com.google.protobuf.Int32Value.newBuilder(limit_).mergeFrom(value).buildPartial();
} else {
limit_ = value;
}
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
private void clearLimit() { limit_ = null;
}
public static final int STATE_FIELD_NUMBER = 3;
private com.google.protobuf.Int32Value state_;
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public boolean hasState() {
return state_ != null;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public com.google.protobuf.Int32Value getState() {
return state_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : state_;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
private void setState(com.google.protobuf.Int32Value value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
private void setState(
com.google.protobuf.Int32Value.Builder builderForValue) {
state_ = builderForValue.build();
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
private void mergeState(com.google.protobuf.Int32Value value) {
if (state_ != null &&
state_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
state_ =
com.google.protobuf.Int32Value.newBuilder(state_).mergeFrom(value).buildPartial();
} else {
state_ = value;
}
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
private void clearState() { state_ = null;
}
public static final int CURSOR_FIELD_NUMBER = 4;
private java.lang.String cursor_;
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public java.lang.String getCursor() {
return cursor_;
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public com.google.protobuf.ByteString
getCursorBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(cursor_);
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
private void setCursor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
cursor_ = value;
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
private void clearCursor() {
cursor_ = getDefaultInstance().getCursor();
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
private void setCursorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
cursor_ = value.toStringUtf8();
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!groupId_.isEmpty()) {
output.writeString(1, getGroupId());
}
if (limit_ != null) {
output.writeMessage(2, getLimit());
}
if (state_ != null) {
output.writeMessage(3, getState());
}
if (!cursor_.isEmpty()) {
output.writeString(4, getCursor());
}
}
public int getSerializedSize() {
@@ -100,6 +328,18 @@ public final class ListGroupUsersRequest extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getGroupId());
}
if (limit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLimit());
}
if (state_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getState());
}
if (!cursor_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getCursor());
}
memoizedSerializedSize = size;
return size;
}
@@ -250,6 +490,204 @@ public final class ListGroupUsersRequest extends
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public boolean hasLimit() {
return instance.hasLimit();
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public com.google.protobuf.Int32Value getLimit() {
return instance.getLimit();
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public Builder setLimit(com.google.protobuf.Int32Value value) {
copyOnWrite();
instance.setLimit(value);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public Builder setLimit(
com.google.protobuf.Int32Value.Builder builderForValue) {
copyOnWrite();
instance.setLimit(builderForValue);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public Builder mergeLimit(com.google.protobuf.Int32Value value) {
copyOnWrite();
instance.mergeLimit(value);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
public Builder clearLimit() { copyOnWrite();
instance.clearLimit();
return this;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public boolean hasState() {
return instance.hasState();
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public com.google.protobuf.Int32Value getState() {
return instance.getState();
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public Builder setState(com.google.protobuf.Int32Value value) {
copyOnWrite();
instance.setState(value);
return this;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public Builder setState(
com.google.protobuf.Int32Value.Builder builderForValue) {
copyOnWrite();
instance.setState(builderForValue);
return this;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public Builder mergeState(com.google.protobuf.Int32Value value) {
copyOnWrite();
instance.mergeState(value);
return this;
}
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
public Builder clearState() { copyOnWrite();
instance.clearState();
return this;
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public java.lang.String getCursor() {
return instance.getCursor();
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public com.google.protobuf.ByteString
getCursorBytes() {
return instance.getCursorBytes();
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public Builder setCursor(
java.lang.String value) {
copyOnWrite();
instance.setCursor(value);
return this;
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public Builder clearCursor() {
copyOnWrite();
instance.clearCursor();
return this;
}
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
public Builder setCursorBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setCursorBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.ListGroupUsersRequest)
}
protected final Object dynamicMethod(
@@ -273,6 +711,10 @@ public final class ListGroupUsersRequest extends
com.heroiclabs.nakama.api.ListGroupUsersRequest other = (com.heroiclabs.nakama.api.ListGroupUsersRequest) arg1;
groupId_ = visitor.visitString(!groupId_.isEmpty(), groupId_,
!other.groupId_.isEmpty(), other.groupId_);
limit_ = visitor.visitMessage(limit_, other.limit_);
state_ = visitor.visitMessage(state_, other.state_);
cursor_ = visitor.visitString(!cursor_.isEmpty(), cursor_,
!other.cursor_.isEmpty(), other.cursor_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
@@ -303,6 +745,38 @@ public final class ListGroupUsersRequest extends
groupId_ = s;
break;
}
case 18: {
com.google.protobuf.Int32Value.Builder subBuilder = null;
if (limit_ != null) {
subBuilder = limit_.toBuilder();
}
limit_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(limit_);
limit_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.google.protobuf.Int32Value.Builder subBuilder = null;
if (state_ != null) {
subBuilder = state_.toBuilder();
}
state_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(state_);
state_ = subBuilder.buildPartial();
}
break;
}
case 34: {
String s = input.readStringRequireUtf8();
cursor_ = s;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -24,4 +24,56 @@ public interface ListGroupUsersRequestOrBuilder extends
*/
com.google.protobuf.ByteString
getGroupIdBytes();
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
boolean hasLimit();
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.Int32Value limit = 2;</code>
*/
com.google.protobuf.Int32Value getLimit();
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
boolean hasState();
/**
* <pre>
* The group user state to list.
* </pre>
*
* <code>optional .google.protobuf.Int32Value state = 3;</code>
*/
com.google.protobuf.Int32Value getState();
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
java.lang.String getCursor();
/**
* <pre>
* An optional next page cursor.
* </pre>
*
* <code>optional string cursor = 4;</code>
*/
com.google.protobuf.ByteString
getCursorBytes();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -0,0 +1,825 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
/**
* <pre>
* List leaerboard records from a given leaderboard around the owner.
* </pre>
*
* Protobuf type {@code nakama.api.ListLeaderboardRecordsAroundOwnerRequest}
*/
public final class ListLeaderboardRecordsAroundOwnerRequest extends
com.google.protobuf.GeneratedMessageLite<
ListLeaderboardRecordsAroundOwnerRequest, ListLeaderboardRecordsAroundOwnerRequest.Builder> implements
// @@protoc_insertion_point(message_implements:nakama.api.ListLeaderboardRecordsAroundOwnerRequest)
ListLeaderboardRecordsAroundOwnerRequestOrBuilder {
private ListLeaderboardRecordsAroundOwnerRequest() {
leaderboardId_ = "";
ownerId_ = "";
}
public static final int LEADERBOARD_ID_FIELD_NUMBER = 1;
private java.lang.String leaderboardId_;
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public java.lang.String getLeaderboardId() {
return leaderboardId_;
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public com.google.protobuf.ByteString
getLeaderboardIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(leaderboardId_);
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
private void setLeaderboardId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
leaderboardId_ = value;
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
private void clearLeaderboardId() {
leaderboardId_ = getDefaultInstance().getLeaderboardId();
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
private void setLeaderboardIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
leaderboardId_ = value.toStringUtf8();
}
public static final int LIMIT_FIELD_NUMBER = 2;
private com.google.protobuf.UInt32Value limit_;
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public boolean hasLimit() {
return limit_ != null;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public com.google.protobuf.UInt32Value getLimit() {
return limit_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : limit_;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
private void setLimit(com.google.protobuf.UInt32Value value) {
if (value == null) {
throw new NullPointerException();
}
limit_ = value;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
private void setLimit(
com.google.protobuf.UInt32Value.Builder builderForValue) {
limit_ = builderForValue.build();
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
private void mergeLimit(com.google.protobuf.UInt32Value value) {
if (limit_ != null &&
limit_ != com.google.protobuf.UInt32Value.getDefaultInstance()) {
limit_ =
com.google.protobuf.UInt32Value.newBuilder(limit_).mergeFrom(value).buildPartial();
} else {
limit_ = value;
}
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
private void clearLimit() { limit_ = null;
}
public static final int OWNER_ID_FIELD_NUMBER = 3;
private java.lang.String ownerId_;
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public java.lang.String getOwnerId() {
return ownerId_;
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public com.google.protobuf.ByteString
getOwnerIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(ownerId_);
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
private void setOwnerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ownerId_ = value;
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
private void clearOwnerId() {
ownerId_ = getDefaultInstance().getOwnerId();
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
private void setOwnerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ownerId_ = value.toStringUtf8();
}
public static final int EXPIRY_FIELD_NUMBER = 4;
private com.google.protobuf.Int64Value expiry_;
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public boolean hasExpiry() {
return expiry_ != null;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public com.google.protobuf.Int64Value getExpiry() {
return expiry_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : expiry_;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
private void setExpiry(com.google.protobuf.Int64Value value) {
if (value == null) {
throw new NullPointerException();
}
expiry_ = value;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
private void setExpiry(
com.google.protobuf.Int64Value.Builder builderForValue) {
expiry_ = builderForValue.build();
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
private void mergeExpiry(com.google.protobuf.Int64Value value) {
if (expiry_ != null &&
expiry_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
expiry_ =
com.google.protobuf.Int64Value.newBuilder(expiry_).mergeFrom(value).buildPartial();
} else {
expiry_ = value;
}
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
private void clearExpiry() { expiry_ = null;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!leaderboardId_.isEmpty()) {
output.writeString(1, getLeaderboardId());
}
if (limit_ != null) {
output.writeMessage(2, getLimit());
}
if (!ownerId_.isEmpty()) {
output.writeString(3, getOwnerId());
}
if (expiry_ != null) {
output.writeMessage(4, getExpiry());
}
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (!leaderboardId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getLeaderboardId());
}
if (limit_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLimit());
}
if (!ownerId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getOwnerId());
}
if (expiry_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExpiry());
}
memoizedSerializedSize = size;
return size;
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest 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.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest 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.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest 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.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest 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 DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
/**
* <pre>
* List leaerboard records from a given leaderboard around the owner.
* </pre>
*
* Protobuf type {@code nakama.api.ListLeaderboardRecordsAroundOwnerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest, Builder> implements
// @@protoc_insertion_point(builder_implements:nakama.api.ListLeaderboardRecordsAroundOwnerRequest)
com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequestOrBuilder {
// Construct using com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public java.lang.String getLeaderboardId() {
return instance.getLeaderboardId();
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public com.google.protobuf.ByteString
getLeaderboardIdBytes() {
return instance.getLeaderboardIdBytes();
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public Builder setLeaderboardId(
java.lang.String value) {
copyOnWrite();
instance.setLeaderboardId(value);
return this;
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public Builder clearLeaderboardId() {
copyOnWrite();
instance.clearLeaderboardId();
return this;
}
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
public Builder setLeaderboardIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setLeaderboardIdBytes(value);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public boolean hasLimit() {
return instance.hasLimit();
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public com.google.protobuf.UInt32Value getLimit() {
return instance.getLimit();
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public Builder setLimit(com.google.protobuf.UInt32Value value) {
copyOnWrite();
instance.setLimit(value);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public Builder setLimit(
com.google.protobuf.UInt32Value.Builder builderForValue) {
copyOnWrite();
instance.setLimit(builderForValue);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public Builder mergeLimit(com.google.protobuf.UInt32Value value) {
copyOnWrite();
instance.mergeLimit(value);
return this;
}
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
public Builder clearLimit() { copyOnWrite();
instance.clearLimit();
return this;
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public java.lang.String getOwnerId() {
return instance.getOwnerId();
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public com.google.protobuf.ByteString
getOwnerIdBytes() {
return instance.getOwnerIdBytes();
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public Builder setOwnerId(
java.lang.String value) {
copyOnWrite();
instance.setOwnerId(value);
return this;
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public Builder clearOwnerId() {
copyOnWrite();
instance.clearOwnerId();
return this;
}
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
public Builder setOwnerIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setOwnerIdBytes(value);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public boolean hasExpiry() {
return instance.hasExpiry();
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public com.google.protobuf.Int64Value getExpiry() {
return instance.getExpiry();
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public Builder setExpiry(com.google.protobuf.Int64Value value) {
copyOnWrite();
instance.setExpiry(value);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public Builder setExpiry(
com.google.protobuf.Int64Value.Builder builderForValue) {
copyOnWrite();
instance.setExpiry(builderForValue);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public Builder mergeExpiry(com.google.protobuf.Int64Value value) {
copyOnWrite();
instance.mergeExpiry(value);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
public Builder clearExpiry() { copyOnWrite();
instance.clearExpiry();
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.ListLeaderboardRecordsAroundOwnerRequest)
}
protected final Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0, Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest();
}
case IS_INITIALIZED: {
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
return null;
}
case NEW_BUILDER: {
return new Builder();
}
case VISIT: {
Visitor visitor = (Visitor) arg0;
com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest other = (com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest) arg1;
leaderboardId_ = visitor.visitString(!leaderboardId_.isEmpty(), leaderboardId_,
!other.leaderboardId_.isEmpty(), other.leaderboardId_);
limit_ = visitor.visitMessage(limit_, other.limit_);
ownerId_ = visitor.visitString(!ownerId_.isEmpty(), ownerId_,
!other.ownerId_.isEmpty(), other.ownerId_);
expiry_ = visitor.visitMessage(expiry_, other.expiry_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
}
return this;
}
case MERGE_FROM_STREAM: {
com.google.protobuf.CodedInputStream input =
(com.google.protobuf.CodedInputStream) arg0;
com.google.protobuf.ExtensionRegistryLite extensionRegistry =
(com.google.protobuf.ExtensionRegistryLite) arg1;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
leaderboardId_ = s;
break;
}
case 18: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (limit_ != null) {
subBuilder = limit_.toBuilder();
}
limit_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(limit_);
limit_ = subBuilder.buildPartial();
}
break;
}
case 26: {
String s = input.readStringRequireUtf8();
ownerId_ = s;
break;
}
case 34: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (expiry_ != null) {
subBuilder = expiry_.toBuilder();
}
expiry_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expiry_);
expiry_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
}
}
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
if (PARSER == null) { synchronized (com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest.class) {
if (PARSER == null) {
PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
}
}
}
return PARSER;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:nakama.api.ListLeaderboardRecordsAroundOwnerRequest)
private static final com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ListLeaderboardRecordsAroundOwnerRequest();
DEFAULT_INSTANCE.makeImmutable();
}
public static com.heroiclabs.nakama.api.ListLeaderboardRecordsAroundOwnerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser<ListLeaderboardRecordsAroundOwnerRequest> PARSER;
public static com.google.protobuf.Parser<ListLeaderboardRecordsAroundOwnerRequest> parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
@@ -0,0 +1,79 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
public interface ListLeaderboardRecordsAroundOwnerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:nakama.api.ListLeaderboardRecordsAroundOwnerRequest)
com.google.protobuf.MessageLiteOrBuilder {
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
java.lang.String getLeaderboardId();
/**
* <pre>
* The ID of the tournament to list for.
* </pre>
*
* <code>optional string leaderboard_id = 1;</code>
*/
com.google.protobuf.ByteString
getLeaderboardIdBytes();
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
boolean hasLimit();
/**
* <pre>
* Max number of records to return. Between 1 and 100.
* </pre>
*
* <code>optional .google.protobuf.UInt32Value limit = 2;</code>
*/
com.google.protobuf.UInt32Value getLimit();
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
java.lang.String getOwnerId();
/**
* <pre>
* The owner to retrieve records around.
* </pre>
*
* <code>optional string owner_id = 3;</code>
*/
com.google.protobuf.ByteString
getOwnerIdBytes();
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
boolean hasExpiry();
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 4;</code>
*/
com.google.protobuf.Int64Value getExpiry();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -349,6 +349,82 @@ public final class ListLeaderboardRecordsRequest extends
cursor_ = value.toStringUtf8();
}
public static final int EXPIRY_FIELD_NUMBER = 5;
private com.google.protobuf.Int64Value expiry_;
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public boolean hasExpiry() {
return expiry_ != null;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public com.google.protobuf.Int64Value getExpiry() {
return expiry_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : expiry_;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
private void setExpiry(com.google.protobuf.Int64Value value) {
if (value == null) {
throw new NullPointerException();
}
expiry_ = value;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
private void setExpiry(
com.google.protobuf.Int64Value.Builder builderForValue) {
expiry_ = builderForValue.build();
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
private void mergeExpiry(com.google.protobuf.Int64Value value) {
if (expiry_ != null &&
expiry_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
expiry_ =
com.google.protobuf.Int64Value.newBuilder(expiry_).mergeFrom(value).buildPartial();
} else {
expiry_ = value;
}
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
private void clearExpiry() { expiry_ = null;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!leaderboardId_.isEmpty()) {
@@ -363,6 +439,9 @@ public final class ListLeaderboardRecordsRequest extends
if (!cursor_.isEmpty()) {
output.writeString(4, getCursor());
}
if (expiry_ != null) {
output.writeMessage(5, getExpiry());
}
}
public int getSerializedSize() {
@@ -391,6 +470,10 @@ public final class ListLeaderboardRecordsRequest extends
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getCursor());
}
if (expiry_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getExpiry());
}
memoizedSerializedSize = size;
return size;
}
@@ -778,6 +861,75 @@ public final class ListLeaderboardRecordsRequest extends
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public boolean hasExpiry() {
return instance.hasExpiry();
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public com.google.protobuf.Int64Value getExpiry() {
return instance.getExpiry();
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public Builder setExpiry(com.google.protobuf.Int64Value value) {
copyOnWrite();
instance.setExpiry(value);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public Builder setExpiry(
com.google.protobuf.Int64Value.Builder builderForValue) {
copyOnWrite();
instance.setExpiry(builderForValue);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public Builder mergeExpiry(com.google.protobuf.Int64Value value) {
copyOnWrite();
instance.mergeExpiry(value);
return this;
}
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
public Builder clearExpiry() { copyOnWrite();
instance.clearExpiry();
return this;
}
// @@protoc_insertion_point(builder_scope:nakama.api.ListLeaderboardRecordsRequest)
}
protected final Object dynamicMethod(
@@ -806,6 +958,7 @@ public final class ListLeaderboardRecordsRequest extends
limit_ = visitor.visitMessage(limit_, other.limit_);
cursor_ = visitor.visitString(!cursor_.isEmpty(), cursor_,
!other.cursor_.isEmpty(), other.cursor_);
expiry_ = visitor.visitMessage(expiry_, other.expiry_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
@@ -865,6 +1018,19 @@ public final class ListLeaderboardRecordsRequest extends
cursor_ = s;
break;
}
case 42: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (expiry_ != null) {
subBuilder = expiry_.toBuilder();
}
expiry_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(expiry_);
expiry_ = subBuilder.buildPartial();
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -94,4 +94,21 @@ public interface ListLeaderboardRecordsRequestOrBuilder extends
*/
com.google.protobuf.ByteString
getCursorBytes();
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
boolean hasExpiry();
/**
* <pre>
* Expiry in seconds (since epoch) to begin fetching records from. Optional. 0 means from current time.
* </pre>
*
* <code>optional .google.protobuf.Int64Value expiry = 5;</code>
*/
com.google.protobuf.Int64Value getExpiry();
}
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
@@ -1,5 +1,5 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: github.com/heroiclabs/nakama/api/api.proto
// source: github.com/heroiclabs/nakama-common/api/api.proto
package com.heroiclabs.nakama.api;
Loaded 100 of 185 files, more files were not shown because too many files have changed in this diff. Show more