main.grpc.com.streamlayer.sdkSettings.organization.advertising.OrganizationAdvertisingGrpc 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.advertising;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: streamlayer/sdkSettings/organization/advertising/organization.advertising.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class OrganizationAdvertisingGrpc {
private OrganizationAdvertisingGrpc() {}
public static final java.lang.String SERVICE_NAME = "streamlayer.sdkSettings.organization.advertising.OrganizationAdvertising";
// 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.advertising.GetRequest.class,
responseType = com.streamlayer.sdkSettings.organization.advertising.GetResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = OrganizationAdvertisingGrpc.getGetMethod) == null) {
synchronized (OrganizationAdvertisingGrpc.class) {
if ((getGetMethod = OrganizationAdvertisingGrpc.getGetMethod) == null) {
OrganizationAdvertisingGrpc.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.advertising.GetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.GetResponse.getDefaultInstance()))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = com.streamlayer.sdkSettings.organization.advertising.UpdateRequest.class,
responseType = com.streamlayer.sdkSettings.organization.advertising.UpdateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMethod() {
io.grpc.MethodDescriptor getUpdateMethod;
if ((getUpdateMethod = OrganizationAdvertisingGrpc.getUpdateMethod) == null) {
synchronized (OrganizationAdvertisingGrpc.class) {
if ((getUpdateMethod = OrganizationAdvertisingGrpc.getUpdateMethod) == null) {
OrganizationAdvertisingGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.UpdateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.UpdateResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateMethod;
}
private static volatile io.grpc.MethodDescriptor getTemplateListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TemplateList",
requestType = com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest.class,
responseType = com.streamlayer.sdkSettings.organization.advertising.TemplateListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getTemplateListMethod() {
io.grpc.MethodDescriptor getTemplateListMethod;
if ((getTemplateListMethod = OrganizationAdvertisingGrpc.getTemplateListMethod) == null) {
synchronized (OrganizationAdvertisingGrpc.class) {
if ((getTemplateListMethod = OrganizationAdvertisingGrpc.getTemplateListMethod) == null) {
OrganizationAdvertisingGrpc.getTemplateListMethod = getTemplateListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TemplateList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.TemplateListResponse.getDefaultInstance()))
.build();
}
}
}
return getTemplateListMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateTemplateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateTemplate",
requestType = com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest.class,
responseType = com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateTemplateMethod() {
io.grpc.MethodDescriptor getUpdateTemplateMethod;
if ((getUpdateTemplateMethod = OrganizationAdvertisingGrpc.getUpdateTemplateMethod) == null) {
synchronized (OrganizationAdvertisingGrpc.class) {
if ((getUpdateTemplateMethod = OrganizationAdvertisingGrpc.getUpdateTemplateMethod) == null) {
OrganizationAdvertisingGrpc.getUpdateTemplateMethod = getUpdateTemplateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTemplate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateTemplateMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static OrganizationAdvertisingStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationAdvertisingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationAdvertisingStub(channel, callOptions);
}
};
return OrganizationAdvertisingStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static OrganizationAdvertisingBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationAdvertisingBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationAdvertisingBlockingStub(channel, callOptions);
}
};
return OrganizationAdvertisingBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static OrganizationAdvertisingFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OrganizationAdvertisingFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationAdvertisingFutureStub(channel, callOptions);
}
};
return OrganizationAdvertisingFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void get(com.streamlayer.sdkSettings.organization.advertising.GetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*/
default void update(com.streamlayer.sdkSettings.organization.advertising.UpdateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
default void templateList(com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTemplateListMethod(), responseObserver);
}
/**
*/
default void updateTemplate(com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTemplateMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service OrganizationAdvertising.
*/
public static abstract class OrganizationAdvertisingImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return OrganizationAdvertisingGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service OrganizationAdvertising.
*/
public static final class OrganizationAdvertisingStub
extends io.grpc.stub.AbstractAsyncStub {
private OrganizationAdvertisingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationAdvertisingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationAdvertisingStub(channel, callOptions);
}
/**
*/
public void get(com.streamlayer.sdkSettings.organization.advertising.GetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(com.streamlayer.sdkSettings.organization.advertising.UpdateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void templateList(com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTemplateListMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateTemplate(com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateTemplateMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service OrganizationAdvertising.
*/
public static final class OrganizationAdvertisingBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private OrganizationAdvertisingBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationAdvertisingBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationAdvertisingBlockingStub(channel, callOptions);
}
/**
*/
public com.streamlayer.sdkSettings.organization.advertising.GetResponse get(com.streamlayer.sdkSettings.organization.advertising.GetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.advertising.UpdateResponse update(com.streamlayer.sdkSettings.organization.advertising.UpdateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.advertising.TemplateListResponse templateList(com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTemplateListMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateResponse updateTemplate(com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateTemplateMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service OrganizationAdvertising.
*/
public static final class OrganizationAdvertisingFutureStub
extends io.grpc.stub.AbstractFutureStub {
private OrganizationAdvertisingFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OrganizationAdvertisingFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OrganizationAdvertisingFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture get(
com.streamlayer.sdkSettings.organization.advertising.GetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture update(
com.streamlayer.sdkSettings.organization.advertising.UpdateRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture templateList(
com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTemplateListMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateTemplate(
com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateTemplateMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET = 0;
private static final int METHODID_UPDATE = 1;
private static final int METHODID_TEMPLATE_LIST = 2;
private static final int METHODID_UPDATE_TEMPLATE = 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_GET:
serviceImpl.get((com.streamlayer.sdkSettings.organization.advertising.GetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((com.streamlayer.sdkSettings.organization.advertising.UpdateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TEMPLATE_LIST:
serviceImpl.templateList((com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_TEMPLATE:
serviceImpl.updateTemplate((com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest) 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.advertising.GetRequest,
com.streamlayer.sdkSettings.organization.advertising.GetResponse>(
service, METHODID_GET)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.advertising.UpdateRequest,
com.streamlayer.sdkSettings.organization.advertising.UpdateResponse>(
service, METHODID_UPDATE)))
.addMethod(
getTemplateListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.advertising.TemplateListRequest,
com.streamlayer.sdkSettings.organization.advertising.TemplateListResponse>(
service, METHODID_TEMPLATE_LIST)))
.addMethod(
getUpdateTemplateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateRequest,
com.streamlayer.sdkSettings.organization.advertising.UpdateTemplateResponse>(
service, METHODID_UPDATE_TEMPLATE)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (OrganizationAdvertisingGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getGetMethod())
.addMethod(getUpdateMethod())
.addMethod(getTemplateListMethod())
.addMethod(getUpdateTemplateMethod())
.build();
}
}
}
return result;
}
}