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

com.zepben.protobuf.nc.NetworkConsumerGrpc Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
package com.zepben.protobuf.nc;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.59.1)",
    comments = "Source: zepben/protobuf/nc/nc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class NetworkConsumerGrpc {

  private NetworkConsumerGrpc() {}

  public static final java.lang.String SERVICE_NAME = "zepben.protobuf.nc.NetworkConsumer";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getGetIdentifiedObjectsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getIdentifiedObjects",
      requestType = com.zepben.protobuf.nc.GetIdentifiedObjectsRequest.class,
      responseType = com.zepben.protobuf.nc.GetIdentifiedObjectsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
  public static io.grpc.MethodDescriptor getGetIdentifiedObjectsMethod() {
    io.grpc.MethodDescriptor getGetIdentifiedObjectsMethod;
    if ((getGetIdentifiedObjectsMethod = NetworkConsumerGrpc.getGetIdentifiedObjectsMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetIdentifiedObjectsMethod = NetworkConsumerGrpc.getGetIdentifiedObjectsMethod) == null) {
          NetworkConsumerGrpc.getGetIdentifiedObjectsMethod = getGetIdentifiedObjectsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getIdentifiedObjects"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetIdentifiedObjectsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetIdentifiedObjectsResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getIdentifiedObjects"))
              .build();
        }
      }
    }
    return getGetIdentifiedObjectsMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetNetworkHierarchyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getNetworkHierarchy",
      requestType = com.zepben.protobuf.nc.GetNetworkHierarchyRequest.class,
      responseType = com.zepben.protobuf.nc.GetNetworkHierarchyResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetNetworkHierarchyMethod() {
    io.grpc.MethodDescriptor getGetNetworkHierarchyMethod;
    if ((getGetNetworkHierarchyMethod = NetworkConsumerGrpc.getGetNetworkHierarchyMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetNetworkHierarchyMethod = NetworkConsumerGrpc.getGetNetworkHierarchyMethod) == null) {
          NetworkConsumerGrpc.getGetNetworkHierarchyMethod = getGetNetworkHierarchyMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getNetworkHierarchy"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetNetworkHierarchyRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetNetworkHierarchyResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getNetworkHierarchy"))
              .build();
        }
      }
    }
    return getGetNetworkHierarchyMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetEquipmentForContainersMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getEquipmentForContainers",
      requestType = com.zepben.protobuf.nc.GetEquipmentForContainersRequest.class,
      responseType = com.zepben.protobuf.nc.GetEquipmentForContainersResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
  public static io.grpc.MethodDescriptor getGetEquipmentForContainersMethod() {
    io.grpc.MethodDescriptor getGetEquipmentForContainersMethod;
    if ((getGetEquipmentForContainersMethod = NetworkConsumerGrpc.getGetEquipmentForContainersMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetEquipmentForContainersMethod = NetworkConsumerGrpc.getGetEquipmentForContainersMethod) == null) {
          NetworkConsumerGrpc.getGetEquipmentForContainersMethod = getGetEquipmentForContainersMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getEquipmentForContainers"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetEquipmentForContainersRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetEquipmentForContainersResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getEquipmentForContainers"))
              .build();
        }
      }
    }
    return getGetEquipmentForContainersMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetCurrentEquipmentForFeederMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getCurrentEquipmentForFeeder",
      requestType = com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest.class,
      responseType = com.zepben.protobuf.nc.GetCurrentEquipmentForFeederResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getGetCurrentEquipmentForFeederMethod() {
    io.grpc.MethodDescriptor getGetCurrentEquipmentForFeederMethod;
    if ((getGetCurrentEquipmentForFeederMethod = NetworkConsumerGrpc.getGetCurrentEquipmentForFeederMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetCurrentEquipmentForFeederMethod = NetworkConsumerGrpc.getGetCurrentEquipmentForFeederMethod) == null) {
          NetworkConsumerGrpc.getGetCurrentEquipmentForFeederMethod = getGetCurrentEquipmentForFeederMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getCurrentEquipmentForFeeder"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetCurrentEquipmentForFeederResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getCurrentEquipmentForFeeder"))
              .build();
        }
      }
    }
    return getGetCurrentEquipmentForFeederMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetEquipmentForRestrictionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getEquipmentForRestriction",
      requestType = com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest.class,
      responseType = com.zepben.protobuf.nc.GetEquipmentForRestrictionResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getGetEquipmentForRestrictionMethod() {
    io.grpc.MethodDescriptor getGetEquipmentForRestrictionMethod;
    if ((getGetEquipmentForRestrictionMethod = NetworkConsumerGrpc.getGetEquipmentForRestrictionMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetEquipmentForRestrictionMethod = NetworkConsumerGrpc.getGetEquipmentForRestrictionMethod) == null) {
          NetworkConsumerGrpc.getGetEquipmentForRestrictionMethod = getGetEquipmentForRestrictionMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getEquipmentForRestriction"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetEquipmentForRestrictionResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getEquipmentForRestriction"))
              .build();
        }
      }
    }
    return getGetEquipmentForRestrictionMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetTerminalsForNodeMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getTerminalsForNode",
      requestType = com.zepben.protobuf.nc.GetTerminalsForNodeRequest.class,
      responseType = com.zepben.protobuf.nc.GetTerminalsForNodeResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor getGetTerminalsForNodeMethod() {
    io.grpc.MethodDescriptor getGetTerminalsForNodeMethod;
    if ((getGetTerminalsForNodeMethod = NetworkConsumerGrpc.getGetTerminalsForNodeMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetTerminalsForNodeMethod = NetworkConsumerGrpc.getGetTerminalsForNodeMethod) == null) {
          NetworkConsumerGrpc.getGetTerminalsForNodeMethod = getGetTerminalsForNodeMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTerminalsForNode"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetTerminalsForNodeRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.nc.GetTerminalsForNodeResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getTerminalsForNode"))
              .build();
        }
      }
    }
    return getGetTerminalsForNodeMethod;
  }

  private static volatile io.grpc.MethodDescriptor getGetMetadataMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getMetadata",
      requestType = com.zepben.protobuf.metadata.GetMetadataRequest.class,
      responseType = com.zepben.protobuf.metadata.GetMetadataResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getGetMetadataMethod() {
    io.grpc.MethodDescriptor getGetMetadataMethod;
    if ((getGetMetadataMethod = NetworkConsumerGrpc.getGetMetadataMethod) == null) {
      synchronized (NetworkConsumerGrpc.class) {
        if ((getGetMetadataMethod = NetworkConsumerGrpc.getGetMetadataMethod) == null) {
          NetworkConsumerGrpc.getGetMetadataMethod = getGetMetadataMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getMetadata"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.metadata.GetMetadataRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.zepben.protobuf.metadata.GetMetadataResponse.getDefaultInstance()))
              .setSchemaDescriptor(new NetworkConsumerMethodDescriptorSupplier("getMetadata"))
              .build();
        }
      }
    }
    return getGetMetadataMethod;
  }

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

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

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

  /**
   */
  public interface AsyncService {

    /**
     * 
     * Get identified objects
     * 
*/ default io.grpc.stub.StreamObserver getIdentifiedObjects( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getGetIdentifiedObjectsMethod(), responseObserver); } /** *
     * Get a simplified view of the network hierarchy from the geographical region down to the feeder level
     * 
*/ default void getNetworkHierarchy(com.zepben.protobuf.nc.GetNetworkHierarchyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNetworkHierarchyMethod(), responseObserver); } /** *
     * Get an EquipmentContainer's equipment
     * 
*/ default io.grpc.stub.StreamObserver getEquipmentForContainers( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getGetEquipmentForContainersMethod(), responseObserver); } /** *
     * Get an EquipmentContainer's current equipment
     * 
*/ default void getCurrentEquipmentForFeeder(com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCurrentEquipmentForFeederMethod(), responseObserver); } /** *
     * Get an OperationalRestriction's equipment
     * 
*/ default void getEquipmentForRestriction(com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEquipmentForRestrictionMethod(), responseObserver); } /** *
     * Get a ConnectivityNodes Terminals
     * 
*/ default void getTerminalsForNode(com.zepben.protobuf.nc.GetTerminalsForNodeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTerminalsForNodeMethod(), responseObserver); } /** *
     * Get Metadata related to the service
     * 
*/ default void getMetadata(com.zepben.protobuf.metadata.GetMetadataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetadataMethod(), responseObserver); } } /** * Base class for the server implementation of the service NetworkConsumer. */ public static abstract class NetworkConsumerImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return NetworkConsumerGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service NetworkConsumer. */ public static final class NetworkConsumerStub extends io.grpc.stub.AbstractAsyncStub { private NetworkConsumerStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected NetworkConsumerStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkConsumerStub(channel, callOptions); } /** *
     * Get identified objects
     * 
*/ public io.grpc.stub.StreamObserver getIdentifiedObjects( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getGetIdentifiedObjectsMethod(), getCallOptions()), responseObserver); } /** *
     * Get a simplified view of the network hierarchy from the geographical region down to the feeder level
     * 
*/ public void getNetworkHierarchy(com.zepben.protobuf.nc.GetNetworkHierarchyRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetNetworkHierarchyMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get an EquipmentContainer's equipment
     * 
*/ public io.grpc.stub.StreamObserver getEquipmentForContainers( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getGetEquipmentForContainersMethod(), getCallOptions()), responseObserver); } /** *
     * Get an EquipmentContainer's current equipment
     * 
*/ public void getCurrentEquipmentForFeeder(com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getGetCurrentEquipmentForFeederMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get an OperationalRestriction's equipment
     * 
*/ public void getEquipmentForRestriction(com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getGetEquipmentForRestrictionMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get a ConnectivityNodes Terminals
     * 
*/ public void getTerminalsForNode(com.zepben.protobuf.nc.GetTerminalsForNodeRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getGetTerminalsForNodeMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get Metadata related to the service
     * 
*/ public void getMetadata(com.zepben.protobuf.metadata.GetMetadataRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service NetworkConsumer. */ public static final class NetworkConsumerBlockingStub extends io.grpc.stub.AbstractBlockingStub { private NetworkConsumerBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected NetworkConsumerBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkConsumerBlockingStub(channel, callOptions); } /** *
     * Get a simplified view of the network hierarchy from the geographical region down to the feeder level
     * 
*/ public com.zepben.protobuf.nc.GetNetworkHierarchyResponse getNetworkHierarchy(com.zepben.protobuf.nc.GetNetworkHierarchyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNetworkHierarchyMethod(), getCallOptions(), request); } /** *
     * Get an EquipmentContainer's current equipment
     * 
*/ public java.util.Iterator getCurrentEquipmentForFeeder( com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getGetCurrentEquipmentForFeederMethod(), getCallOptions(), request); } /** *
     * Get an OperationalRestriction's equipment
     * 
*/ public java.util.Iterator getEquipmentForRestriction( com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getGetEquipmentForRestrictionMethod(), getCallOptions(), request); } /** *
     * Get a ConnectivityNodes Terminals
     * 
*/ public java.util.Iterator getTerminalsForNode( com.zepben.protobuf.nc.GetTerminalsForNodeRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getGetTerminalsForNodeMethod(), getCallOptions(), request); } /** *
     * Get Metadata related to the service
     * 
*/ public com.zepben.protobuf.metadata.GetMetadataResponse getMetadata(com.zepben.protobuf.metadata.GetMetadataRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMetadataMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service NetworkConsumer. */ public static final class NetworkConsumerFutureStub extends io.grpc.stub.AbstractFutureStub { private NetworkConsumerFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected NetworkConsumerFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new NetworkConsumerFutureStub(channel, callOptions); } /** *
     * Get a simplified view of the network hierarchy from the geographical region down to the feeder level
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getNetworkHierarchy( com.zepben.protobuf.nc.GetNetworkHierarchyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNetworkHierarchyMethod(), getCallOptions()), request); } /** *
     * Get Metadata related to the service
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getMetadata( com.zepben.protobuf.metadata.GetMetadataRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request); } } private static final int METHODID_GET_NETWORK_HIERARCHY = 0; private static final int METHODID_GET_CURRENT_EQUIPMENT_FOR_FEEDER = 1; private static final int METHODID_GET_EQUIPMENT_FOR_RESTRICTION = 2; private static final int METHODID_GET_TERMINALS_FOR_NODE = 3; private static final int METHODID_GET_METADATA = 4; private static final int METHODID_GET_IDENTIFIED_OBJECTS = 5; private static final int METHODID_GET_EQUIPMENT_FOR_CONTAINERS = 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_NETWORK_HIERARCHY: serviceImpl.getNetworkHierarchy((com.zepben.protobuf.nc.GetNetworkHierarchyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CURRENT_EQUIPMENT_FOR_FEEDER: serviceImpl.getCurrentEquipmentForFeeder((com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_EQUIPMENT_FOR_RESTRICTION: serviceImpl.getEquipmentForRestriction((com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_TERMINALS_FOR_NODE: serviceImpl.getTerminalsForNode((com.zepben.protobuf.nc.GetTerminalsForNodeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_METADATA: serviceImpl.getMetadata((com.zepben.protobuf.metadata.GetMetadataRequest) 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) { case METHODID_GET_IDENTIFIED_OBJECTS: return (io.grpc.stub.StreamObserver) serviceImpl.getIdentifiedObjects( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_GET_EQUIPMENT_FOR_CONTAINERS: return (io.grpc.stub.StreamObserver) serviceImpl.getEquipmentForContainers( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetIdentifiedObjectsMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.zepben.protobuf.nc.GetIdentifiedObjectsRequest, com.zepben.protobuf.nc.GetIdentifiedObjectsResponse>( service, METHODID_GET_IDENTIFIED_OBJECTS))) .addMethod( getGetNetworkHierarchyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.nc.GetNetworkHierarchyRequest, com.zepben.protobuf.nc.GetNetworkHierarchyResponse>( service, METHODID_GET_NETWORK_HIERARCHY))) .addMethod( getGetEquipmentForContainersMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.zepben.protobuf.nc.GetEquipmentForContainersRequest, com.zepben.protobuf.nc.GetEquipmentForContainersResponse>( service, METHODID_GET_EQUIPMENT_FOR_CONTAINERS))) .addMethod( getGetCurrentEquipmentForFeederMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< com.zepben.protobuf.nc.GetCurrentEquipmentForFeederRequest, com.zepben.protobuf.nc.GetCurrentEquipmentForFeederResponse>( service, METHODID_GET_CURRENT_EQUIPMENT_FOR_FEEDER))) .addMethod( getGetEquipmentForRestrictionMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< com.zepben.protobuf.nc.GetEquipmentForRestrictionRequest, com.zepben.protobuf.nc.GetEquipmentForRestrictionResponse>( service, METHODID_GET_EQUIPMENT_FOR_RESTRICTION))) .addMethod( getGetTerminalsForNodeMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< com.zepben.protobuf.nc.GetTerminalsForNodeRequest, com.zepben.protobuf.nc.GetTerminalsForNodeResponse>( service, METHODID_GET_TERMINALS_FOR_NODE))) .addMethod( getGetMetadataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.zepben.protobuf.metadata.GetMetadataRequest, com.zepben.protobuf.metadata.GetMetadataResponse>( service, METHODID_GET_METADATA))) .build(); } private static abstract class NetworkConsumerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { NetworkConsumerBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.zepben.protobuf.nc.Nc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("NetworkConsumer"); } } private static final class NetworkConsumerFileDescriptorSupplier extends NetworkConsumerBaseDescriptorSupplier { NetworkConsumerFileDescriptorSupplier() {} } private static final class NetworkConsumerMethodDescriptorSupplier extends NetworkConsumerBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; NetworkConsumerMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (NetworkConsumerGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new NetworkConsumerFileDescriptorSupplier()) .addMethod(getGetIdentifiedObjectsMethod()) .addMethod(getGetNetworkHierarchyMethod()) .addMethod(getGetEquipmentForContainersMethod()) .addMethod(getGetCurrentEquipmentForFeederMethod()) .addMethod(getGetEquipmentForRestrictionMethod()) .addMethod(getGetTerminalsForNodeMethod()) .addMethod(getGetMetadataMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy