main.grpc.com.streamlayer.users.UsersGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
package com.streamlayer.users;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: streamlayer/users/users.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class UsersGrpc {
private UsersGrpc() {}
public static final java.lang.String SERVICE_NAME = "streamlayer.users.Users";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getLoginMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Login",
requestType = com.streamlayer.users.LoginRequest.class,
responseType = com.streamlayer.users.AuthResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLoginMethod() {
io.grpc.MethodDescriptor getLoginMethod;
if ((getLoginMethod = UsersGrpc.getLoginMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getLoginMethod = UsersGrpc.getLoginMethod) == null) {
UsersGrpc.getLoginMethod = getLoginMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Login"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.LoginRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.AuthResponse.getDefaultInstance()))
.build();
}
}
}
return getLoginMethod;
}
private static volatile io.grpc.MethodDescriptor getRegisterMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Register",
requestType = com.streamlayer.users.RegisterRequest.class,
responseType = com.streamlayer.users.RegisterResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRegisterMethod() {
io.grpc.MethodDescriptor getRegisterMethod;
if ((getRegisterMethod = UsersGrpc.getRegisterMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getRegisterMethod = UsersGrpc.getRegisterMethod) == null) {
UsersGrpc.getRegisterMethod = getRegisterMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Register"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.RegisterRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.RegisterResponse.getDefaultInstance()))
.build();
}
}
}
return getRegisterMethod;
}
private static volatile io.grpc.MethodDescriptor getRequestPasswordMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RequestPassword",
requestType = com.streamlayer.users.RequestPasswordRequest.class,
responseType = com.streamlayer.users.RequestPasswordResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRequestPasswordMethod() {
io.grpc.MethodDescriptor getRequestPasswordMethod;
if ((getRequestPasswordMethod = UsersGrpc.getRequestPasswordMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getRequestPasswordMethod = UsersGrpc.getRequestPasswordMethod) == null) {
UsersGrpc.getRequestPasswordMethod = getRequestPasswordMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RequestPassword"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.RequestPasswordRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.RequestPasswordResponse.getDefaultInstance()))
.build();
}
}
}
return getRequestPasswordMethod;
}
private static volatile io.grpc.MethodDescriptor getMeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Me",
requestType = com.streamlayer.users.MeRequest.class,
responseType = com.streamlayer.users.MeResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMeMethod() {
io.grpc.MethodDescriptor getMeMethod;
if ((getMeMethod = UsersGrpc.getMeMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getMeMethod = UsersGrpc.getMeMethod) == null) {
UsersGrpc.getMeMethod = getMeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Me"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.MeRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.MeResponse.getDefaultInstance()))
.build();
}
}
}
return getMeMethod;
}
private static volatile io.grpc.MethodDescriptor getInviteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Invite",
requestType = com.streamlayer.users.InviteRequest.class,
responseType = com.streamlayer.users.InviteResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getInviteMethod() {
io.grpc.MethodDescriptor getInviteMethod;
if ((getInviteMethod = UsersGrpc.getInviteMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getInviteMethod = UsersGrpc.getInviteMethod) == null) {
UsersGrpc.getInviteMethod = getInviteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Invite"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.InviteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.InviteResponse.getDefaultInstance()))
.build();
}
}
}
return getInviteMethod;
}
private static volatile io.grpc.MethodDescriptor getBypassAuthMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BypassAuth",
requestType = com.streamlayer.users.BypassAuthRequest.class,
responseType = com.streamlayer.users.BypassAuthResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBypassAuthMethod() {
io.grpc.MethodDescriptor getBypassAuthMethod;
if ((getBypassAuthMethod = UsersGrpc.getBypassAuthMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getBypassAuthMethod = UsersGrpc.getBypassAuthMethod) == null) {
UsersGrpc.getBypassAuthMethod = getBypassAuthMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BypassAuth"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.BypassAuthRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.BypassAuthResponse.getDefaultInstance()))
.build();
}
}
}
return getBypassAuthMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateMetadata",
requestType = com.streamlayer.users.UpdateMetadataRequest.class,
responseType = com.streamlayer.users.UpdateMetadataResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMetadataMethod() {
io.grpc.MethodDescriptor getUpdateMetadataMethod;
if ((getUpdateMetadataMethod = UsersGrpc.getUpdateMetadataMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getUpdateMetadataMethod = UsersGrpc.getUpdateMetadataMethod) == null) {
UsersGrpc.getUpdateMetadataMethod = getUpdateMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdateMetadataRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdateMetadataResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateAvatarMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateAvatar",
requestType = com.streamlayer.users.UpdateAvatarRequest.class,
responseType = com.streamlayer.users.UpdateAvatarResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateAvatarMethod() {
io.grpc.MethodDescriptor getUpdateAvatarMethod;
if ((getUpdateAvatarMethod = UsersGrpc.getUpdateAvatarMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getUpdateAvatarMethod = UsersGrpc.getUpdateAvatarMethod) == null) {
UsersGrpc.getUpdateAvatarMethod = getUpdateAvatarMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAvatar"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdateAvatarRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdateAvatarResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateAvatarMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdatePublicChatNameMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdatePublicChatName",
requestType = com.streamlayer.users.UpdatePublicChatNameRequest.class,
responseType = com.streamlayer.users.UpdatePublicChatNameResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdatePublicChatNameMethod() {
io.grpc.MethodDescriptor getUpdatePublicChatNameMethod;
if ((getUpdatePublicChatNameMethod = UsersGrpc.getUpdatePublicChatNameMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getUpdatePublicChatNameMethod = UsersGrpc.getUpdatePublicChatNameMethod) == null) {
UsersGrpc.getUpdatePublicChatNameMethod = getUpdatePublicChatNameMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePublicChatName"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdatePublicChatNameRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdatePublicChatNameResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdatePublicChatNameMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdatePublicNameMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdatePublicName",
requestType = com.streamlayer.users.UpdatePublicNameRequest.class,
responseType = com.streamlayer.users.UpdatePublicNameResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdatePublicNameMethod() {
io.grpc.MethodDescriptor getUpdatePublicNameMethod;
if ((getUpdatePublicNameMethod = UsersGrpc.getUpdatePublicNameMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getUpdatePublicNameMethod = UsersGrpc.getUpdatePublicNameMethod) == null) {
UsersGrpc.getUpdatePublicNameMethod = getUpdatePublicNameMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePublicName"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdatePublicNameRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.UpdatePublicNameResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdatePublicNameMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFriendsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetFriends",
requestType = com.streamlayer.users.GetFriendsRequest.class,
responseType = com.streamlayer.users.GetFriendsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetFriendsMethod() {
io.grpc.MethodDescriptor getGetFriendsMethod;
if ((getGetFriendsMethod = UsersGrpc.getGetFriendsMethod) == null) {
synchronized (UsersGrpc.class) {
if ((getGetFriendsMethod = UsersGrpc.getGetFriendsMethod) == null) {
UsersGrpc.getGetFriendsMethod = getGetFriendsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFriends"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.GetFriendsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.users.GetFriendsResponse.getDefaultInstance()))
.build();
}
}
}
return getGetFriendsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static UsersStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UsersStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UsersStub(channel, callOptions);
}
};
return UsersStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static UsersBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UsersBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UsersBlockingStub(channel, callOptions);
}
};
return UsersBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static UsersFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public UsersFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UsersFutureStub(channel, callOptions);
}
};
return UsersFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void login(com.streamlayer.users.LoginRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLoginMethod(), responseObserver);
}
/**
*/
default void register(com.streamlayer.users.RegisterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterMethod(), responseObserver);
}
/**
*/
default void requestPassword(com.streamlayer.users.RequestPasswordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRequestPasswordMethod(), responseObserver);
}
/**
*/
default void me(com.streamlayer.users.MeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMeMethod(), responseObserver);
}
/**
*/
default void invite(com.streamlayer.users.InviteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInviteMethod(), responseObserver);
}
/**
*/
default void bypassAuth(com.streamlayer.users.BypassAuthRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBypassAuthMethod(), responseObserver);
}
/**
*/
default void updateMetadata(com.streamlayer.users.UpdateMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMetadataMethod(), responseObserver);
}
/**
*/
default void updateAvatar(com.streamlayer.users.UpdateAvatarRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAvatarMethod(), responseObserver);
}
/**
*/
default void updatePublicChatName(com.streamlayer.users.UpdatePublicChatNameRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePublicChatNameMethod(), responseObserver);
}
/**
*/
default void updatePublicName(com.streamlayer.users.UpdatePublicNameRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePublicNameMethod(), responseObserver);
}
/**
*/
default void getFriends(com.streamlayer.users.GetFriendsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFriendsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Users.
*/
public static abstract class UsersImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return UsersGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Users.
*/
public static final class UsersStub
extends io.grpc.stub.AbstractAsyncStub {
private UsersStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UsersStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UsersStub(channel, callOptions);
}
/**
*/
public void login(com.streamlayer.users.LoginRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getLoginMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void register(com.streamlayer.users.RegisterRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRegisterMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void requestPassword(com.streamlayer.users.RequestPasswordRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRequestPasswordMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void me(com.streamlayer.users.MeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMeMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void invite(com.streamlayer.users.InviteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getInviteMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void bypassAuth(com.streamlayer.users.BypassAuthRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBypassAuthMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateMetadata(com.streamlayer.users.UpdateMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMetadataMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateAvatar(com.streamlayer.users.UpdateAvatarRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateAvatarMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updatePublicChatName(com.streamlayer.users.UpdatePublicChatNameRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdatePublicChatNameMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updatePublicName(com.streamlayer.users.UpdatePublicNameRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdatePublicNameMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getFriends(com.streamlayer.users.GetFriendsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetFriendsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Users.
*/
public static final class UsersBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private UsersBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UsersBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UsersBlockingStub(channel, callOptions);
}
/**
*/
public com.streamlayer.users.AuthResponse login(com.streamlayer.users.LoginRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getLoginMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.RegisterResponse register(com.streamlayer.users.RegisterRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRegisterMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.RequestPasswordResponse requestPassword(com.streamlayer.users.RequestPasswordRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRequestPasswordMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.MeResponse me(com.streamlayer.users.MeRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMeMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.InviteResponse invite(com.streamlayer.users.InviteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getInviteMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.BypassAuthResponse bypassAuth(com.streamlayer.users.BypassAuthRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBypassAuthMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.UpdateMetadataResponse updateMetadata(com.streamlayer.users.UpdateMetadataRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMetadataMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.UpdateAvatarResponse updateAvatar(com.streamlayer.users.UpdateAvatarRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateAvatarMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.UpdatePublicChatNameResponse updatePublicChatName(com.streamlayer.users.UpdatePublicChatNameRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdatePublicChatNameMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.UpdatePublicNameResponse updatePublicName(com.streamlayer.users.UpdatePublicNameRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdatePublicNameMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.users.GetFriendsResponse getFriends(com.streamlayer.users.GetFriendsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetFriendsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Users.
*/
public static final class UsersFutureStub
extends io.grpc.stub.AbstractFutureStub {
private UsersFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected UsersFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new UsersFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture login(
com.streamlayer.users.LoginRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getLoginMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture register(
com.streamlayer.users.RegisterRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRegisterMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture requestPassword(
com.streamlayer.users.RequestPasswordRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRequestPasswordMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture me(
com.streamlayer.users.MeRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMeMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture invite(
com.streamlayer.users.InviteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getInviteMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture bypassAuth(
com.streamlayer.users.BypassAuthRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBypassAuthMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateMetadata(
com.streamlayer.users.UpdateMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMetadataMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateAvatar(
com.streamlayer.users.UpdateAvatarRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateAvatarMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updatePublicChatName(
com.streamlayer.users.UpdatePublicChatNameRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdatePublicChatNameMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updatePublicName(
com.streamlayer.users.UpdatePublicNameRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdatePublicNameMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getFriends(
com.streamlayer.users.GetFriendsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetFriendsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LOGIN = 0;
private static final int METHODID_REGISTER = 1;
private static final int METHODID_REQUEST_PASSWORD = 2;
private static final int METHODID_ME = 3;
private static final int METHODID_INVITE = 4;
private static final int METHODID_BYPASS_AUTH = 5;
private static final int METHODID_UPDATE_METADATA = 6;
private static final int METHODID_UPDATE_AVATAR = 7;
private static final int METHODID_UPDATE_PUBLIC_CHAT_NAME = 8;
private static final int METHODID_UPDATE_PUBLIC_NAME = 9;
private static final int METHODID_GET_FRIENDS = 10;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_LOGIN:
serviceImpl.login((com.streamlayer.users.LoginRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REGISTER:
serviceImpl.register((com.streamlayer.users.RegisterRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REQUEST_PASSWORD:
serviceImpl.requestPassword((com.streamlayer.users.RequestPasswordRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ME:
serviceImpl.me((com.streamlayer.users.MeRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_INVITE:
serviceImpl.invite((com.streamlayer.users.InviteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BYPASS_AUTH:
serviceImpl.bypassAuth((com.streamlayer.users.BypassAuthRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_METADATA:
serviceImpl.updateMetadata((com.streamlayer.users.UpdateMetadataRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_AVATAR:
serviceImpl.updateAvatar((com.streamlayer.users.UpdateAvatarRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_PUBLIC_CHAT_NAME:
serviceImpl.updatePublicChatName((com.streamlayer.users.UpdatePublicChatNameRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_PUBLIC_NAME:
serviceImpl.updatePublicName((com.streamlayer.users.UpdatePublicNameRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FRIENDS:
serviceImpl.getFriends((com.streamlayer.users.GetFriendsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getLoginMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.LoginRequest,
com.streamlayer.users.AuthResponse>(
service, METHODID_LOGIN)))
.addMethod(
getRegisterMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.RegisterRequest,
com.streamlayer.users.RegisterResponse>(
service, METHODID_REGISTER)))
.addMethod(
getRequestPasswordMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.RequestPasswordRequest,
com.streamlayer.users.RequestPasswordResponse>(
service, METHODID_REQUEST_PASSWORD)))
.addMethod(
getMeMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.MeRequest,
com.streamlayer.users.MeResponse>(
service, METHODID_ME)))
.addMethod(
getInviteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.InviteRequest,
com.streamlayer.users.InviteResponse>(
service, METHODID_INVITE)))
.addMethod(
getBypassAuthMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.BypassAuthRequest,
com.streamlayer.users.BypassAuthResponse>(
service, METHODID_BYPASS_AUTH)))
.addMethod(
getUpdateMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.UpdateMetadataRequest,
com.streamlayer.users.UpdateMetadataResponse>(
service, METHODID_UPDATE_METADATA)))
.addMethod(
getUpdateAvatarMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.UpdateAvatarRequest,
com.streamlayer.users.UpdateAvatarResponse>(
service, METHODID_UPDATE_AVATAR)))
.addMethod(
getUpdatePublicChatNameMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.UpdatePublicChatNameRequest,
com.streamlayer.users.UpdatePublicChatNameResponse>(
service, METHODID_UPDATE_PUBLIC_CHAT_NAME)))
.addMethod(
getUpdatePublicNameMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.UpdatePublicNameRequest,
com.streamlayer.users.UpdatePublicNameResponse>(
service, METHODID_UPDATE_PUBLIC_NAME)))
.addMethod(
getGetFriendsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.users.GetFriendsRequest,
com.streamlayer.users.GetFriendsResponse>(
service, METHODID_GET_FRIENDS)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (UsersGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getLoginMethod())
.addMethod(getRegisterMethod())
.addMethod(getRequestPasswordMethod())
.addMethod(getMeMethod())
.addMethod(getInviteMethod())
.addMethod(getBypassAuthMethod())
.addMethod(getUpdateMetadataMethod())
.addMethod(getUpdateAvatarMethod())
.addMethod(getUpdatePublicChatNameMethod())
.addMethod(getUpdatePublicNameMethod())
.addMethod(getGetFriendsMethod())
.build();
}
}
}
return result;
}
}