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

main.grpc.com.streamlayer.sdkSettings.client.ClientGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private ClientGrpc() {}

  public static final java.lang.String SERVICE_NAME = "streamlayer.sdkSettings.client.Client";

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

  private static volatile io.grpc.MethodDescriptor getGetStreamMethod;

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

  private static volatile io.grpc.MethodDescriptor getGetOrganizationMethod;

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

  private static volatile io.grpc.MethodDescriptor getGetOrganizationAdvertisingMethod;

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

  private static volatile io.grpc.MethodDescriptor getGenerateDeepLinkMethod;

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

  private static volatile io.grpc.MethodDescriptor getStreamSubscriptionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "StreamSubscription",
      requestType = com.streamlayer.sdkSettings.client.StreamSubscriptionRequest.class,
      responseType = com.streamlayer.sdkSettings.client.StreamSubscriptionResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getStreamSubscriptionMethod() {
    io.grpc.MethodDescriptor getStreamSubscriptionMethod;
    if ((getStreamSubscriptionMethod = ClientGrpc.getStreamSubscriptionMethod) == null) {
      synchronized (ClientGrpc.class) {
        if ((getStreamSubscriptionMethod = ClientGrpc.getStreamSubscriptionMethod) == null) {
          ClientGrpc.getStreamSubscriptionMethod = getStreamSubscriptionMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamSubscription"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.client.StreamSubscriptionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.client.StreamSubscriptionResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getStreamSubscriptionMethod;
  }

  private static volatile io.grpc.MethodDescriptor getOrganizationSubscriptionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "OrganizationSubscription",
      requestType = com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest.class,
      responseType = com.streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getOrganizationSubscriptionMethod() {
    io.grpc.MethodDescriptor getOrganizationSubscriptionMethod;
    if ((getOrganizationSubscriptionMethod = ClientGrpc.getOrganizationSubscriptionMethod) == null) {
      synchronized (ClientGrpc.class) {
        if ((getOrganizationSubscriptionMethod = ClientGrpc.getOrganizationSubscriptionMethod) == null) {
          ClientGrpc.getOrganizationSubscriptionMethod = getOrganizationSubscriptionMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OrganizationSubscription"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getOrganizationSubscriptionMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

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

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

    /**
     */
    default void getStream(com.streamlayer.sdkSettings.client.GetStreamRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver);
    }

    /**
     */
    default void getOrganization(com.streamlayer.sdkSettings.client.GetOrganizationRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationMethod(), responseObserver);
    }

    /**
     */
    default void getOrganizationAdvertising(com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationAdvertisingMethod(), responseObserver);
    }

    /**
     */
    default void generateDeepLink(com.streamlayer.sdkSettings.client.GenerateDeepLinkRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateDeepLinkMethod(), responseObserver);
    }

    /**
     */
    default void streamSubscription(com.streamlayer.sdkSettings.client.StreamSubscriptionRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamSubscriptionMethod(), responseObserver);
    }

    /**
     */
    default void organizationSubscription(com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getOrganizationSubscriptionMethod(), responseObserver);
    }
  }

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

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

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

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

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

    /**
     */
    public void update(com.streamlayer.sdkSettings.client.UpdateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getStream(com.streamlayer.sdkSettings.client.GetStreamRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getOrganization(com.streamlayer.sdkSettings.client.GetOrganizationRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetOrganizationMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getOrganizationAdvertising(com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetOrganizationAdvertisingMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void generateDeepLink(com.streamlayer.sdkSettings.client.GenerateDeepLinkRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGenerateDeepLinkMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void streamSubscription(com.streamlayer.sdkSettings.client.StreamSubscriptionRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncServerStreamingCall(
          getChannel().newCall(getStreamSubscriptionMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void organizationSubscription(com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncServerStreamingCall(
          getChannel().newCall(getOrganizationSubscriptionMethod(), getCallOptions()), request, responseObserver);
    }
  }

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

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

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

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

    /**
     */
    public com.streamlayer.sdkSettings.client.GetStreamResponse getStream(com.streamlayer.sdkSettings.client.GetStreamRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetStreamMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.sdkSettings.client.GetOrganizationResponse getOrganization(com.streamlayer.sdkSettings.client.GetOrganizationRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetOrganizationMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse getOrganizationAdvertising(com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetOrganizationAdvertisingMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.sdkSettings.client.GenerateDeepLinkResponse generateDeepLink(com.streamlayer.sdkSettings.client.GenerateDeepLinkRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGenerateDeepLinkMethod(), getCallOptions(), request);
    }

    /**
     */
    public java.util.Iterator streamSubscription(
        com.streamlayer.sdkSettings.client.StreamSubscriptionRequest request) {
      return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
          getChannel(), getStreamSubscriptionMethod(), getCallOptions(), request);
    }

    /**
     */
    public java.util.Iterator organizationSubscription(
        com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest request) {
      return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
          getChannel(), getOrganizationSubscriptionMethod(), getCallOptions(), request);
    }
  }

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

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

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture update(
        com.streamlayer.sdkSettings.client.UpdateRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getStream(
        com.streamlayer.sdkSettings.client.GetStreamRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetStreamMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getOrganization(
        com.streamlayer.sdkSettings.client.GetOrganizationRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetOrganizationMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture getOrganizationAdvertising(
        com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetOrganizationAdvertisingMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture generateDeepLink(
        com.streamlayer.sdkSettings.client.GenerateDeepLinkRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGenerateDeepLinkMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_GET = 0;
  private static final int METHODID_UPDATE = 1;
  private static final int METHODID_GET_STREAM = 2;
  private static final int METHODID_GET_ORGANIZATION = 3;
  private static final int METHODID_GET_ORGANIZATION_ADVERTISING = 4;
  private static final int METHODID_GENERATE_DEEP_LINK = 5;
  private static final int METHODID_STREAM_SUBSCRIPTION = 6;
  private static final int METHODID_ORGANIZATION_SUBSCRIPTION = 7;

  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.client.GetRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE:
          serviceImpl.update((com.streamlayer.sdkSettings.client.UpdateRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_STREAM:
          serviceImpl.getStream((com.streamlayer.sdkSettings.client.GetStreamRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_ORGANIZATION:
          serviceImpl.getOrganization((com.streamlayer.sdkSettings.client.GetOrganizationRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GET_ORGANIZATION_ADVERTISING:
          serviceImpl.getOrganizationAdvertising((com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_GENERATE_DEEP_LINK:
          serviceImpl.generateDeepLink((com.streamlayer.sdkSettings.client.GenerateDeepLinkRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_STREAM_SUBSCRIPTION:
          serviceImpl.streamSubscription((com.streamlayer.sdkSettings.client.StreamSubscriptionRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_ORGANIZATION_SUBSCRIPTION:
          serviceImpl.organizationSubscription((com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest) 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.client.GetRequest,
              com.streamlayer.sdkSettings.client.GetResponse>(
                service, METHODID_GET)))
        .addMethod(
          getUpdateMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.UpdateRequest,
              com.streamlayer.sdkSettings.client.UpdateResponse>(
                service, METHODID_UPDATE)))
        .addMethod(
          getGetStreamMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.GetStreamRequest,
              com.streamlayer.sdkSettings.client.GetStreamResponse>(
                service, METHODID_GET_STREAM)))
        .addMethod(
          getGetOrganizationMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.GetOrganizationRequest,
              com.streamlayer.sdkSettings.client.GetOrganizationResponse>(
                service, METHODID_GET_ORGANIZATION)))
        .addMethod(
          getGetOrganizationAdvertisingMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest,
              com.streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse>(
                service, METHODID_GET_ORGANIZATION_ADVERTISING)))
        .addMethod(
          getGenerateDeepLinkMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.GenerateDeepLinkRequest,
              com.streamlayer.sdkSettings.client.GenerateDeepLinkResponse>(
                service, METHODID_GENERATE_DEEP_LINK)))
        .addMethod(
          getStreamSubscriptionMethod(),
          io.grpc.stub.ServerCalls.asyncServerStreamingCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.StreamSubscriptionRequest,
              com.streamlayer.sdkSettings.client.StreamSubscriptionResponse>(
                service, METHODID_STREAM_SUBSCRIPTION)))
        .addMethod(
          getOrganizationSubscriptionMethod(),
          io.grpc.stub.ServerCalls.asyncServerStreamingCall(
            new MethodHandlers<
              com.streamlayer.sdkSettings.client.OrganizationSubscriptionRequest,
              com.streamlayer.sdkSettings.client.OrganizationSubscriptionResponse>(
                service, METHODID_ORGANIZATION_SUBSCRIPTION)))
        .build();
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (ClientGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .addMethod(getGetMethod())
              .addMethod(getUpdateMethod())
              .addMethod(getGetStreamMethod())
              .addMethod(getGetOrganizationMethod())
              .addMethod(getGetOrganizationAdvertisingMethod())
              .addMethod(getGenerateDeepLinkMethod())
              .addMethod(getStreamSubscriptionMethod())
              .addMethod(getOrganizationSubscriptionMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy