main.grpc.com.streamlayer.sdkSettings.organization.getstream.OrganizationGetStreamGrpc 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.sdkSettings.organization.getstream;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: streamlayer/sdkSettings/organization/getstream/organizations.getstream.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class OrganizationGetStreamGrpc {
private OrganizationGetStreamGrpc() {}
public static final java.lang.String SERVICE_NAME = "streamlayer.sdkSettings.organization.getstream.OrganizationGetStream";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Get",
requestType = com.streamlayer.sdkSettings.organization.getstream.GetRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.GetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = OrganizationGetStreamGrpc.getGetMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getGetMethod = OrganizationGetStreamGrpc.getGetMethod) == null) {
OrganizationGetStreamGrpc.getGetMethod = getGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.GetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.GetResponse.getDefaultInstance()))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getGetStudioMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetStudio",
requestType = com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.GetStudioResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetStudioMethod() {
io.grpc.MethodDescriptor getGetStudioMethod;
if ((getGetStudioMethod = OrganizationGetStreamGrpc.getGetStudioMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getGetStudioMethod = OrganizationGetStreamGrpc.getGetStudioMethod) == null) {
OrganizationGetStreamGrpc.getGetStudioMethod = getGetStudioMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStudio"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.GetStudioResponse.getDefaultInstance()))
.build();
}
}
}
return getGetStudioMethod;
}
private static volatile io.grpc.MethodDescriptor getSetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Set",
requestType = com.streamlayer.sdkSettings.organization.getstream.SetRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.SetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetMethod() {
io.grpc.MethodDescriptor getSetMethod;
if ((getSetMethod = OrganizationGetStreamGrpc.getSetMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getSetMethod = OrganizationGetStreamGrpc.getSetMethod) == null) {
OrganizationGetStreamGrpc.getSetMethod = getSetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Set"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.SetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.SetResponse.getDefaultInstance()))
.build();
}
}
}
return getSetMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateChannelMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateChannel",
requestType = com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.CreateChannelResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateChannelMethod() {
io.grpc.MethodDescriptor getCreateChannelMethod;
if ((getCreateChannelMethod = OrganizationGetStreamGrpc.getCreateChannelMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getCreateChannelMethod = OrganizationGetStreamGrpc.getCreateChannelMethod) == null) {
OrganizationGetStreamGrpc.getCreateChannelMethod = getCreateChannelMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChannel"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.CreateChannelResponse.getDefaultInstance()))
.build();
}
}
}
return getCreateChannelMethod;
}
private static volatile io.grpc.MethodDescriptor getChannelListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ChannelList",
requestType = com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.ChannelListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getChannelListMethod() {
io.grpc.MethodDescriptor getChannelListMethod;
if ((getChannelListMethod = OrganizationGetStreamGrpc.getChannelListMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getChannelListMethod = OrganizationGetStreamGrpc.getChannelListMethod) == null) {
OrganizationGetStreamGrpc.getChannelListMethod = getChannelListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChannelList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.ChannelListResponse.getDefaultInstance()))
.build();
}
}
}
return getChannelListMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateChannelMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateChannel",
requestType = com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.UpdateChannelResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateChannelMethod() {
io.grpc.MethodDescriptor getUpdateChannelMethod;
if ((getUpdateChannelMethod = OrganizationGetStreamGrpc.getUpdateChannelMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getUpdateChannelMethod = OrganizationGetStreamGrpc.getUpdateChannelMethod) == null) {
OrganizationGetStreamGrpc.getUpdateChannelMethod = getUpdateChannelMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateChannel"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.UpdateChannelResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateChannelMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteChannelMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteChannel",
requestType = com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest.class,
responseType = com.streamlayer.sdkSettings.organization.getstream.DeleteChannelResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteChannelMethod() {
io.grpc.MethodDescriptor getDeleteChannelMethod;
if ((getDeleteChannelMethod = OrganizationGetStreamGrpc.getDeleteChannelMethod) == null) {
synchronized (OrganizationGetStreamGrpc.class) {
if ((getDeleteChannelMethod = OrganizationGetStreamGrpc.getDeleteChannelMethod) == null) {
OrganizationGetStreamGrpc.getDeleteChannelMethod = getDeleteChannelMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteChannel"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.getstream.DeleteChannelResponse.getDefaultInstance()))
.build();
}
}
}
return getDeleteChannelMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static OrganizationGetStreamStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationGetStreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationGetStreamStub(channel, callOptions);
}
};
return OrganizationGetStreamStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static OrganizationGetStreamBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationGetStreamBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationGetStreamBlockingStub(channel, callOptions);
}
};
return OrganizationGetStreamBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static OrganizationGetStreamFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationGetStreamFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationGetStreamFutureStub(channel, callOptions);
}
};
return OrganizationGetStreamFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void get(com.streamlayer.sdkSettings.organization.getstream.GetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*/
default void getStudio(com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStudioMethod(), responseObserver);
}
/**
*/
default void set(com.streamlayer.sdkSettings.organization.getstream.SetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetMethod(), responseObserver);
}
/**
*/
default void createChannel(com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateChannelMethod(), responseObserver);
}
/**
*/
default void channelList(com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getChannelListMethod(), responseObserver);
}
/**
*/
default void updateChannel(com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateChannelMethod(), responseObserver);
}
/**
*/
default void deleteChannel(com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteChannelMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service OrganizationGetStream.
*/
public static abstract class OrganizationGetStreamImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return OrganizationGetStreamGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service OrganizationGetStream.
*/
public static final class OrganizationGetStreamStub
extends io.grpc.stub.AbstractAsyncStub {
private OrganizationGetStreamStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationGetStreamStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationGetStreamStub(channel, callOptions);
}
/**
*/
public void get(com.streamlayer.sdkSettings.organization.getstream.GetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getStudio(com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetStudioMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void set(com.streamlayer.sdkSettings.organization.getstream.SetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createChannel(com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateChannelMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void channelList(com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getChannelListMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateChannel(com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateChannelMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void deleteChannel(com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteChannelMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service OrganizationGetStream.
*/
public static final class OrganizationGetStreamBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private OrganizationGetStreamBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationGetStreamBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationGetStreamBlockingStub(channel, callOptions);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.GetResponse get(com.streamlayer.sdkSettings.organization.getstream.GetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.GetStudioResponse getStudio(com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetStudioMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.SetResponse set(com.streamlayer.sdkSettings.organization.getstream.SetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.CreateChannelResponse createChannel(com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateChannelMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.ChannelListResponse channelList(com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getChannelListMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.UpdateChannelResponse updateChannel(com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateChannelMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.getstream.DeleteChannelResponse deleteChannel(com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteChannelMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service OrganizationGetStream.
*/
public static final class OrganizationGetStreamFutureStub
extends io.grpc.stub.AbstractFutureStub {
private OrganizationGetStreamFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationGetStreamFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationGetStreamFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture get(
com.streamlayer.sdkSettings.organization.getstream.GetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getStudio(
com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetStudioMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture set(
com.streamlayer.sdkSettings.organization.getstream.SetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createChannel(
com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateChannelMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture channelList(
com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getChannelListMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateChannel(
com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateChannelMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteChannel(
com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteChannelMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET = 0;
private static final int METHODID_GET_STUDIO = 1;
private static final int METHODID_SET = 2;
private static final int METHODID_CREATE_CHANNEL = 3;
private static final int METHODID_CHANNEL_LIST = 4;
private static final int METHODID_UPDATE_CHANNEL = 5;
private static final int METHODID_DELETE_CHANNEL = 6;
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_GET:
serviceImpl.get((com.streamlayer.sdkSettings.organization.getstream.GetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_STUDIO:
serviceImpl.getStudio((com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SET:
serviceImpl.set((com.streamlayer.sdkSettings.organization.getstream.SetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_CHANNEL:
serviceImpl.createChannel((com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CHANNEL_LIST:
serviceImpl.channelList((com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CHANNEL:
serviceImpl.updateChannel((com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_CHANNEL:
serviceImpl.deleteChannel((com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest) 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(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.GetRequest,
com.streamlayer.sdkSettings.organization.getstream.GetResponse>(
service, METHODID_GET)))
.addMethod(
getGetStudioMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.GetStudioRequest,
com.streamlayer.sdkSettings.organization.getstream.GetStudioResponse>(
service, METHODID_GET_STUDIO)))
.addMethod(
getSetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.SetRequest,
com.streamlayer.sdkSettings.organization.getstream.SetResponse>(
service, METHODID_SET)))
.addMethod(
getCreateChannelMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.CreateChannelRequest,
com.streamlayer.sdkSettings.organization.getstream.CreateChannelResponse>(
service, METHODID_CREATE_CHANNEL)))
.addMethod(
getChannelListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.ChannelListRequest,
com.streamlayer.sdkSettings.organization.getstream.ChannelListResponse>(
service, METHODID_CHANNEL_LIST)))
.addMethod(
getUpdateChannelMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.UpdateChannelRequest,
com.streamlayer.sdkSettings.organization.getstream.UpdateChannelResponse>(
service, METHODID_UPDATE_CHANNEL)))
.addMethod(
getDeleteChannelMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.getstream.DeleteChannelRequest,
com.streamlayer.sdkSettings.organization.getstream.DeleteChannelResponse>(
service, METHODID_DELETE_CHANNEL)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (OrganizationGetStreamGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getGetMethod())
.addMethod(getGetStudioMethod())
.addMethod(getSetMethod())
.addMethod(getCreateChannelMethod())
.addMethod(getChannelListMethod())
.addMethod(getUpdateChannelMethod())
.addMethod(getDeleteChannelMethod())
.build();
}
}
}
return result;
}
}