main.grpc.com.streamlayer.sdkSettings.organization.presets.OrganizationPresetsGrpc 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.presets;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: streamlayer/sdkSettings/organization/presets/organization.presets.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class OrganizationPresetsGrpc {
private OrganizationPresetsGrpc() {}
public static final java.lang.String SERVICE_NAME = "streamlayer.sdkSettings.organization.presets.OrganizationPresets";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = com.streamlayer.sdkSettings.organization.presets.ListRequest.class,
responseType = com.streamlayer.sdkSettings.organization.presets.ListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = OrganizationPresetsGrpc.getListMethod) == null) {
synchronized (OrganizationPresetsGrpc.class) {
if ((getListMethod = OrganizationPresetsGrpc.getListMethod) == null) {
OrganizationPresetsGrpc.getListMethod = getListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.ListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.ListResponse.getDefaultInstance()))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getCreatePresetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreatePreset",
requestType = com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest.class,
responseType = com.streamlayer.sdkSettings.organization.presets.CreatePresetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreatePresetMethod() {
io.grpc.MethodDescriptor getCreatePresetMethod;
if ((getCreatePresetMethod = OrganizationPresetsGrpc.getCreatePresetMethod) == null) {
synchronized (OrganizationPresetsGrpc.class) {
if ((getCreatePresetMethod = OrganizationPresetsGrpc.getCreatePresetMethod) == null) {
OrganizationPresetsGrpc.getCreatePresetMethod = getCreatePresetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePreset"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.CreatePresetResponse.getDefaultInstance()))
.build();
}
}
}
return getCreatePresetMethod;
}
private static volatile io.grpc.MethodDescriptor getRemovePresetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RemovePreset",
requestType = com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest.class,
responseType = com.streamlayer.sdkSettings.organization.presets.RemovePresetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRemovePresetMethod() {
io.grpc.MethodDescriptor getRemovePresetMethod;
if ((getRemovePresetMethod = OrganizationPresetsGrpc.getRemovePresetMethod) == null) {
synchronized (OrganizationPresetsGrpc.class) {
if ((getRemovePresetMethod = OrganizationPresetsGrpc.getRemovePresetMethod) == null) {
OrganizationPresetsGrpc.getRemovePresetMethod = getRemovePresetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemovePreset"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.RemovePresetResponse.getDefaultInstance()))
.build();
}
}
}
return getRemovePresetMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdatePresetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdatePreset",
requestType = com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest.class,
responseType = com.streamlayer.sdkSettings.organization.presets.UpdatePresetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdatePresetMethod() {
io.grpc.MethodDescriptor getUpdatePresetMethod;
if ((getUpdatePresetMethod = OrganizationPresetsGrpc.getUpdatePresetMethod) == null) {
synchronized (OrganizationPresetsGrpc.class) {
if ((getUpdatePresetMethod = OrganizationPresetsGrpc.getUpdatePresetMethod) == null) {
OrganizationPresetsGrpc.getUpdatePresetMethod = getUpdatePresetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePreset"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.presets.UpdatePresetResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdatePresetMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static OrganizationPresetsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationPresetsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationPresetsStub(channel, callOptions);
}
};
return OrganizationPresetsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static OrganizationPresetsBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationPresetsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationPresetsBlockingStub(channel, callOptions);
}
};
return OrganizationPresetsBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static OrganizationPresetsFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationPresetsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationPresetsFutureStub(channel, callOptions);
}
};
return OrganizationPresetsFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void list(com.streamlayer.sdkSettings.organization.presets.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*/
default void createPreset(com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePresetMethod(), responseObserver);
}
/**
*/
default void removePreset(com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemovePresetMethod(), responseObserver);
}
/**
*/
default void updatePreset(com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePresetMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service OrganizationPresets.
*/
public static abstract class OrganizationPresetsImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return OrganizationPresetsGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service OrganizationPresets.
*/
public static final class OrganizationPresetsStub
extends io.grpc.stub.AbstractAsyncStub {
private OrganizationPresetsStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationPresetsStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationPresetsStub(channel, callOptions);
}
/**
*/
public void list(com.streamlayer.sdkSettings.organization.presets.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createPreset(com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreatePresetMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void removePreset(com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRemovePresetMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updatePreset(com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdatePresetMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service OrganizationPresets.
*/
public static final class OrganizationPresetsBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private OrganizationPresetsBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationPresetsBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationPresetsBlockingStub(channel, callOptions);
}
/**
*/
public com.streamlayer.sdkSettings.organization.presets.ListResponse list(com.streamlayer.sdkSettings.organization.presets.ListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.presets.CreatePresetResponse createPreset(com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreatePresetMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.presets.RemovePresetResponse removePreset(com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRemovePresetMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.presets.UpdatePresetResponse updatePreset(com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdatePresetMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service OrganizationPresets.
*/
public static final class OrganizationPresetsFutureStub
extends io.grpc.stub.AbstractFutureStub {
private OrganizationPresetsFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationPresetsFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationPresetsFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture list(
com.streamlayer.sdkSettings.organization.presets.ListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createPreset(
com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreatePresetMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture removePreset(
com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRemovePresetMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updatePreset(
com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdatePresetMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LIST = 0;
private static final int METHODID_CREATE_PRESET = 1;
private static final int METHODID_REMOVE_PRESET = 2;
private static final int METHODID_UPDATE_PRESET = 3;
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_LIST:
serviceImpl.list((com.streamlayer.sdkSettings.organization.presets.ListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_PRESET:
serviceImpl.createPreset((com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REMOVE_PRESET:
serviceImpl.removePreset((com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_PRESET:
serviceImpl.updatePreset((com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest) 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(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.presets.ListRequest,
com.streamlayer.sdkSettings.organization.presets.ListResponse>(
service, METHODID_LIST)))
.addMethod(
getCreatePresetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.presets.CreatePresetRequest,
com.streamlayer.sdkSettings.organization.presets.CreatePresetResponse>(
service, METHODID_CREATE_PRESET)))
.addMethod(
getRemovePresetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.presets.RemovePresetRequest,
com.streamlayer.sdkSettings.organization.presets.RemovePresetResponse>(
service, METHODID_REMOVE_PRESET)))
.addMethod(
getUpdatePresetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.presets.UpdatePresetRequest,
com.streamlayer.sdkSettings.organization.presets.UpdatePresetResponse>(
service, METHODID_UPDATE_PRESET)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (OrganizationPresetsGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getListMethod())
.addMethod(getCreatePresetMethod())
.addMethod(getRemovePresetMethod())
.addMethod(getUpdatePresetMethod())
.build();
}
}
}
return result;
}
}