All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.grpc.com.streamlayer.sdkSettings.organization.OrganizationGrpc Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
package com.streamlayer.sdkSettings.organization;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.65.1)",
    comments = "Source: streamlayer/sdkSettings/organization/organization.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class OrganizationGrpc {

  private OrganizationGrpc() {}

  public static final java.lang.String SERVICE_NAME = "streamlayer.sdkSettings.organization.Organization";

  // 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.GetRequest.class,
      responseType = com.streamlayer.sdkSettings.organization.GetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMethod() {
    io.grpc.MethodDescriptor getGetMethod;
    if ((getGetMethod = OrganizationGrpc.getGetMethod) == null) {
      synchronized (OrganizationGrpc.class) {
        if ((getGetMethod = OrganizationGrpc.getGetMethod) == null) {
          OrganizationGrpc.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.GetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.organization.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.UpdateRequest.class,
      responseType = com.streamlayer.sdkSettings.organization.UpdateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateMethod() {
    io.grpc.MethodDescriptor getUpdateMethod;
    if ((getUpdateMethod = OrganizationGrpc.getUpdateMethod) == null) {
      synchronized (OrganizationGrpc.class) {
        if ((getUpdateMethod = OrganizationGrpc.getUpdateMethod) == null) {
          OrganizationGrpc.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.UpdateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.organization.UpdateResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getUpdateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetByRootMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetByRoot",
      requestType = com.streamlayer.sdkSettings.organization.GetRequest.class,
      responseType = com.streamlayer.sdkSettings.organization.GetResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetByRootMethod() {
    io.grpc.MethodDescriptor getGetByRootMethod;
    if ((getGetByRootMethod = OrganizationGrpc.getGetByRootMethod) == null) {
      synchronized (OrganizationGrpc.class) {
        if ((getGetByRootMethod = OrganizationGrpc.getGetByRootMethod) == null) {
          OrganizationGrpc.getGetByRootMethod = getGetByRootMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetByRoot"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.organization.GetRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.organization.GetResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getGetByRootMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUpdateByRootMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UpdateByRoot",
      requestType = com.streamlayer.sdkSettings.organization.UpdateByRootRequest.class,
      responseType = com.streamlayer.sdkSettings.organization.UpdateResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateByRootMethod() {
    io.grpc.MethodDescriptor getUpdateByRootMethod;
    if ((getUpdateByRootMethod = OrganizationGrpc.getUpdateByRootMethod) == null) {
      synchronized (OrganizationGrpc.class) {
        if ((getUpdateByRootMethod = OrganizationGrpc.getUpdateByRootMethod) == null) {
          OrganizationGrpc.getUpdateByRootMethod = getUpdateByRootMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateByRoot"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.organization.UpdateByRootRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.organization.UpdateResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getUpdateByRootMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static OrganizationStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public OrganizationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new OrganizationStub(channel, callOptions);
        }
      };
    return OrganizationStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static OrganizationBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public OrganizationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new OrganizationBlockingStub(channel, callOptions);
        }
      };
    return OrganizationBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static OrganizationFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public OrganizationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new OrganizationFutureStub(channel, callOptions);
        }
      };
    return OrganizationFutureStub.newStub(factory, channel);
  }

  /**
   */
  public interface AsyncService {

    /**
     */
    default void get(com.streamlayer.sdkSettings.organization.GetRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
    }

    /**
     */
    default void update(com.streamlayer.sdkSettings.organization.UpdateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
    }

    /**
     */
    default void getByRoot(com.streamlayer.sdkSettings.organization.GetRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetByRootMethod(), responseObserver);
    }

    /**
     */
    default void updateByRoot(com.streamlayer.sdkSettings.organization.UpdateByRootRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateByRootMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service Organization.
   */
  public static abstract class OrganizationImplBase
      implements io.grpc.BindableService, AsyncService {

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return OrganizationGrpc.bindService(this);
    }
  }

  /**
   * A stub to allow clients to do asynchronous rpc calls to service Organization.
   */
  public static final class OrganizationStub
      extends io.grpc.stub.AbstractAsyncStub {
    private OrganizationStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected OrganizationStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new OrganizationStub(channel, callOptions);
    }

    /**
     */
    public void get(com.streamlayer.sdkSettings.organization.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.UpdateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getByRoot(com.streamlayer.sdkSettings.organization.GetRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetByRootMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void updateByRoot(com.streamlayer.sdkSettings.organization.UpdateByRootRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateByRootMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * A stub to allow clients to do synchronous rpc calls to service Organization.
   */
  public static final class OrganizationBlockingStub
      extends io.grpc.stub.AbstractBlockingStub {
    private OrganizationBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected OrganizationBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new OrganizationBlockingStub(channel, callOptions);
    }

    /**
     */
    public com.streamlayer.sdkSettings.organization.GetResponse get(com.streamlayer.sdkSettings.organization.GetRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.sdkSettings.organization.UpdateResponse update(com.streamlayer.sdkSettings.organization.UpdateRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.sdkSettings.organization.GetResponse getByRoot(com.streamlayer.sdkSettings.organization.GetRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetByRootMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.sdkSettings.organization.UpdateResponse updateByRoot(com.streamlayer.sdkSettings.organization.UpdateByRootRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateByRootMethod(), getCallOptions(), request);
    }
  }

  /**
   * A stub to allow clients to do ListenableFuture-style rpc calls to service Organization.
   */
  public static final class OrganizationFutureStub
      extends io.grpc.stub.AbstractFutureStub {
    private OrganizationFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected OrganizationFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new OrganizationFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture get(
        com.streamlayer.sdkSettings.organization.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.UpdateRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getByRoot(
        com.streamlayer.sdkSettings.organization.GetRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetByRootMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture updateByRoot(
        com.streamlayer.sdkSettings.organization.UpdateByRootRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateByRootMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_GET = 0;
  private static final int METHODID_UPDATE = 1;
  private static final int METHODID_GET_BY_ROOT = 2;
  private static final int METHODID_UPDATE_BY_ROOT = 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.GetRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE:
          serviceImpl.update((com.streamlayer.sdkSettings.organization.UpdateRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_BY_ROOT:
          serviceImpl.getByRoot((com.streamlayer.sdkSettings.organization.GetRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE_BY_ROOT:
          serviceImpl.updateByRoot((com.streamlayer.sdkSettings.organization.UpdateByRootRequest) 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.GetRequest,
              com.streamlayer.sdkSettings.organization.GetResponse>(
                service, METHODID_GET)))
        .addMethod(
          getUpdateMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.organization.UpdateRequest,
              com.streamlayer.sdkSettings.organization.UpdateResponse>(
                service, METHODID_UPDATE)))
        .addMethod(
          getGetByRootMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.organization.GetRequest,
              com.streamlayer.sdkSettings.organization.GetResponse>(
                service, METHODID_GET_BY_ROOT)))
        .addMethod(
          getUpdateByRootMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.organization.UpdateByRootRequest,
              com.streamlayer.sdkSettings.organization.UpdateResponse>(
                service, METHODID_UPDATE_BY_ROOT)))
        .build();
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (OrganizationGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .addMethod(getGetMethod())
              .addMethod(getUpdateMethod())
              .addMethod(getGetByRootMethod())
              .addMethod(getUpdateByRootMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy