Skip to content
Snippets Groups Projects
ContextServiceGrpc.java 182 KiB
Newer Older
package context;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.38.1)",
    comments = "Source: context.proto")
public final class ContextServiceGrpc {

  private ContextServiceGrpc() {}

  public static final String SERVICE_NAME = "context.ContextService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.Empty,
      context.ContextOuterClass.ContextIdList> getListContextIdsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListContextIds",
      requestType = context.ContextOuterClass.Empty.class,
      responseType = context.ContextOuterClass.ContextIdList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.Empty,
      context.ContextOuterClass.ContextIdList> getListContextIdsMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.Empty, context.ContextOuterClass.ContextIdList> getListContextIdsMethod;
    if ((getListContextIdsMethod = ContextServiceGrpc.getListContextIdsMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getListContextIdsMethod = ContextServiceGrpc.getListContextIdsMethod) == null) {
          ContextServiceGrpc.getListContextIdsMethod = getListContextIdsMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.Empty, context.ContextOuterClass.ContextIdList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContextIds"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Empty.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextIdList.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("ListContextIds"))
              .build();
        }
      }
    }
    return getListContextIdsMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.Empty,
      context.ContextOuterClass.ContextList> getListContextsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListContexts",
      requestType = context.ContextOuterClass.Empty.class,
      responseType = context.ContextOuterClass.ContextList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.Empty,
      context.ContextOuterClass.ContextList> getListContextsMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.Empty, context.ContextOuterClass.ContextList> getListContextsMethod;
    if ((getListContextsMethod = ContextServiceGrpc.getListContextsMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getListContextsMethod = ContextServiceGrpc.getListContextsMethod) == null) {
          ContextServiceGrpc.getListContextsMethod = getListContextsMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.Empty, context.ContextOuterClass.ContextList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContexts"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Empty.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextList.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("ListContexts"))
              .build();
        }
      }
    }
    return getListContextsMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.Context> getGetContextMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetContext",
      requestType = context.ContextOuterClass.ContextId.class,
      responseType = context.ContextOuterClass.Context.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.Context> getGetContextMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId, context.ContextOuterClass.Context> getGetContextMethod;
    if ((getGetContextMethod = ContextServiceGrpc.getGetContextMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getGetContextMethod = ContextServiceGrpc.getGetContextMethod) == null) {
          ContextServiceGrpc.getGetContextMethod = getGetContextMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.ContextId, context.ContextOuterClass.Context>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContext"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextId.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Context.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("GetContext"))
              .build();
        }
      }
    }
    return getGetContextMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.Context,
      context.ContextOuterClass.ContextId> getSetContextMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "SetContext",
      requestType = context.ContextOuterClass.Context.class,
      responseType = context.ContextOuterClass.ContextId.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.Context,
      context.ContextOuterClass.ContextId> getSetContextMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.Context, context.ContextOuterClass.ContextId> getSetContextMethod;
    if ((getSetContextMethod = ContextServiceGrpc.getSetContextMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getSetContextMethod = ContextServiceGrpc.getSetContextMethod) == null) {
          ContextServiceGrpc.getSetContextMethod = getSetContextMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.Context, context.ContextOuterClass.ContextId>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetContext"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Context.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextId.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("SetContext"))
              .build();
        }
      }
    }
    return getSetContextMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.Empty> getRemoveContextMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RemoveContext",
      requestType = context.ContextOuterClass.ContextId.class,
      responseType = context.ContextOuterClass.Empty.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.Empty> getRemoveContextMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId, context.ContextOuterClass.Empty> getRemoveContextMethod;
    if ((getRemoveContextMethod = ContextServiceGrpc.getRemoveContextMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getRemoveContextMethod = ContextServiceGrpc.getRemoveContextMethod) == null) {
          ContextServiceGrpc.getRemoveContextMethod = getRemoveContextMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.ContextId, context.ContextOuterClass.Empty>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveContext"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextId.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Empty.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("RemoveContext"))
              .build();
        }
      }
    }
    return getRemoveContextMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.Empty,
      context.ContextOuterClass.ContextEvent> getGetContextEventsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetContextEvents",
      requestType = context.ContextOuterClass.Empty.class,
      responseType = context.ContextOuterClass.ContextEvent.class,
      methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.Empty,
      context.ContextOuterClass.ContextEvent> getGetContextEventsMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.Empty, context.ContextOuterClass.ContextEvent> getGetContextEventsMethod;
    if ((getGetContextEventsMethod = ContextServiceGrpc.getGetContextEventsMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getGetContextEventsMethod = ContextServiceGrpc.getGetContextEventsMethod) == null) {
          ContextServiceGrpc.getGetContextEventsMethod = getGetContextEventsMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.Empty, context.ContextOuterClass.ContextEvent>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContextEvents"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Empty.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextEvent.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("GetContextEvents"))
              .build();
        }
      }
    }
    return getGetContextEventsMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.TopologyIdList> getListTopologyIdsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListTopologyIds",
      requestType = context.ContextOuterClass.ContextId.class,
      responseType = context.ContextOuterClass.TopologyIdList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.TopologyIdList> getListTopologyIdsMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId, context.ContextOuterClass.TopologyIdList> getListTopologyIdsMethod;
    if ((getListTopologyIdsMethod = ContextServiceGrpc.getListTopologyIdsMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getListTopologyIdsMethod = ContextServiceGrpc.getListTopologyIdsMethod) == null) {
          ContextServiceGrpc.getListTopologyIdsMethod = getListTopologyIdsMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.ContextId, context.ContextOuterClass.TopologyIdList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopologyIds"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextId.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.TopologyIdList.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("ListTopologyIds"))
              .build();
        }
      }
    }
    return getListTopologyIdsMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.TopologyList> getListTopologiesMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ListTopologies",
      requestType = context.ContextOuterClass.ContextId.class,
      responseType = context.ContextOuterClass.TopologyList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId,
      context.ContextOuterClass.TopologyList> getListTopologiesMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.ContextId, context.ContextOuterClass.TopologyList> getListTopologiesMethod;
    if ((getListTopologiesMethod = ContextServiceGrpc.getListTopologiesMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getListTopologiesMethod = ContextServiceGrpc.getListTopologiesMethod) == null) {
          ContextServiceGrpc.getListTopologiesMethod = getListTopologiesMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.ContextId, context.ContextOuterClass.TopologyList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopologies"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.ContextId.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.TopologyList.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("ListTopologies"))
              .build();
        }
      }
    }
    return getListTopologiesMethod;
  }

  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.TopologyId,
      context.ContextOuterClass.Topology> getGetTopologyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetTopology",
      requestType = context.ContextOuterClass.TopologyId.class,
      responseType = context.ContextOuterClass.Topology.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.TopologyId,
      context.ContextOuterClass.Topology> getGetTopologyMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.TopologyId, context.ContextOuterClass.Topology> getGetTopologyMethod;
    if ((getGetTopologyMethod = ContextServiceGrpc.getGetTopologyMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getGetTopologyMethod = ContextServiceGrpc.getGetTopologyMethod) == null) {
          ContextServiceGrpc.getGetTopologyMethod = getGetTopologyMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.TopologyId, context.ContextOuterClass.Topology>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopology"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.TopologyId.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.Topology.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("GetTopology"))
              .build();
        }
      }
    }
    return getGetTopologyMethod;
  }

famelis's avatar
famelis committed
  private static volatile io.grpc.MethodDescriptor<context.ContextOuterClass.TopologyId,
      context.ContextOuterClass.TopologyDetails> getGetTopologyDetailsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "GetTopologyDetails",
      requestType = context.ContextOuterClass.TopologyId.class,
      responseType = context.ContextOuterClass.TopologyDetails.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<context.ContextOuterClass.TopologyId,
      context.ContextOuterClass.TopologyDetails> getGetTopologyDetailsMethod() {
    io.grpc.MethodDescriptor<context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyDetails> getGetTopologyDetailsMethod;
    if ((getGetTopologyDetailsMethod = ContextServiceGrpc.getGetTopologyDetailsMethod) == null) {
      synchronized (ContextServiceGrpc.class) {
        if ((getGetTopologyDetailsMethod = ContextServiceGrpc.getGetTopologyDetailsMethod) == null) {
          ContextServiceGrpc.getGetTopologyDetailsMethod = getGetTopologyDetailsMethod =
              io.grpc.MethodDescriptor.<context.ContextOuterClass.TopologyId, context.ContextOuterClass.TopologyDetails>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopologyDetails"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.TopologyId.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  context.ContextOuterClass.TopologyDetails.getDefaultInstance()))
              .setSchemaDescriptor(new ContextServiceMethodDescriptorSupplier("GetTopologyDetails"))
              .build();
        }
      }
    }
    return getGetTopologyDetailsMethod;
  }

Loading
Loading full blame...