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

org.glowroot.wire.api.model.CollectorServiceGrpc Maven / Gradle / Ivy

package org.glowroot.wire.api.model;

import static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.44.1)",
    comments = "Source: CollectorService.proto")
@org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.GrpcGenerated
public final class CollectorServiceGrpc {

  private CollectorServiceGrpc() {}

  public static final String SERVICE_NAME = "org_glowroot_wire_api_model.CollectorService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "collectInit",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectInitMethod;
    if ((getCollectInitMethod = CollectorServiceGrpc.getCollectInitMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getCollectInitMethod = CollectorServiceGrpc.getCollectInitMethod) == null) {
          CollectorServiceGrpc.getCollectInitMethod = getCollectInitMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "collectInit"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectInit"))
              .build();
        }
      }
    }
    return getCollectInitMethod;
  }

  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "collectAggregates",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregatesMethod;
    if ((getCollectAggregatesMethod = CollectorServiceGrpc.getCollectAggregatesMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getCollectAggregatesMethod = CollectorServiceGrpc.getCollectAggregatesMethod) == null) {
          CollectorServiceGrpc.getCollectAggregatesMethod = getCollectAggregatesMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "collectAggregates"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectAggregates"))
              .build();
        }
      }
    }
    return getCollectAggregatesMethod;
  }

  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "collectAggregateStream",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateStreamMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectAggregateStreamMethod;
    if ((getCollectAggregateStreamMethod = CollectorServiceGrpc.getCollectAggregateStreamMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getCollectAggregateStreamMethod = CollectorServiceGrpc.getCollectAggregateStreamMethod) == null) {
          CollectorServiceGrpc.getCollectAggregateStreamMethod = getCollectAggregateStreamMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "collectAggregateStream"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateStreamMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectAggregateStream"))
              .build();
        }
      }
    }
    return getCollectAggregateStreamMethod;
  }

  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "collectGaugeValues",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectGaugeValuesMethod;
    if ((getCollectGaugeValuesMethod = CollectorServiceGrpc.getCollectGaugeValuesMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getCollectGaugeValuesMethod = CollectorServiceGrpc.getCollectGaugeValuesMethod) == null) {
          CollectorServiceGrpc.getCollectGaugeValuesMethod = getCollectGaugeValuesMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "collectGaugeValues"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectGaugeValues"))
              .build();
        }
      }
    }
    return getCollectGaugeValuesMethod;
  }

  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "collectTrace",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceMethod;
    if ((getCollectTraceMethod = CollectorServiceGrpc.getCollectTraceMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getCollectTraceMethod = CollectorServiceGrpc.getCollectTraceMethod) == null) {
          CollectorServiceGrpc.getCollectTraceMethod = getCollectTraceMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "collectTrace"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectTrace"))
              .build();
        }
      }
    }
    return getCollectTraceMethod;
  }

  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "collectTraceStream",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.TraceStreamMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getCollectTraceStreamMethod;
    if ((getCollectTraceStreamMethod = CollectorServiceGrpc.getCollectTraceStreamMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getCollectTraceStreamMethod = CollectorServiceGrpc.getCollectTraceStreamMethod) == null) {
          CollectorServiceGrpc.getCollectTraceStreamMethod = getCollectTraceStreamMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "collectTraceStream"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.TraceStreamMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("collectTraceStream"))
              .build();
        }
      }
    }
    return getCollectTraceStreamMethod;
  }

  private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethod;

  @org.glowroot.agent.it.harness.shaded.io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "log",
      requestType = org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage.class,
      responseType = org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.class,
      methodType = org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
  public static org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethod() {
    org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor getLogMethod;
    if ((getLogMethod = CollectorServiceGrpc.getLogMethod) == null) {
      synchronized (CollectorServiceGrpc.class) {
        if ((getLogMethod = CollectorServiceGrpc.getLogMethod) == null) {
          CollectorServiceGrpc.getLogMethod = getLogMethod =
              org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.newBuilder()
              .setType(org.glowroot.agent.it.harness.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "log"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage.getDefaultInstance()))
              .setResponseMarshaller(org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
                  org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage.getDefaultInstance()))
              .setSchemaDescriptor(new CollectorServiceMethodDescriptorSupplier("log"))
              .build();
        }
      }
    }
    return getLogMethod;
  }

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

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

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

  /**
   */
  public static abstract class CollectorServiceImplBase implements org.glowroot.agent.it.harness.shaded.io.grpc.BindableService {

    /**
     */
    public void collectInit(org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request,
        org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) {
      org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectInitMethod(), responseObserver);
    }

    /**
     * 
     * deprecated in 0.9.5, replaced by collectAggregateStream
     * 
*/ public void collectAggregates(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectAggregatesMethod(), responseObserver); } /** */ public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectAggregateStream( org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getCollectAggregateStreamMethod(), responseObserver); } /** */ public void collectGaugeValues(org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectGaugeValuesMethod(), responseObserver); } /** *
     * deprecated in 0.9.5, replaced by collectTraceStream
     * 
*/ public void collectTrace(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCollectTraceMethod(), responseObserver); } /** */ public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectTraceStream( org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getCollectTraceStreamMethod(), responseObserver); } /** */ public void log(org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLogMethod(), responseObserver); } @java.lang.Override public final org.glowroot.agent.it.harness.shaded.io.grpc.ServerServiceDefinition bindService() { return org.glowroot.agent.it.harness.shaded.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCollectInitMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse>( this, METHODID_COLLECT_INIT))) .addMethod( getCollectAggregatesMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage>( this, METHODID_COLLECT_AGGREGATES))) .addMethod( getCollectAggregateStreamMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncClientStreamingCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateStreamMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage>( this, METHODID_COLLECT_AGGREGATE_STREAM))) .addMethod( getCollectGaugeValuesMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage>( this, METHODID_COLLECT_GAUGE_VALUES))) .addMethod( getCollectTraceMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage>( this, METHODID_COLLECT_TRACE))) .addMethod( getCollectTraceStreamMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncClientStreamingCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.TraceStreamMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage>( this, METHODID_COLLECT_TRACE_STREAM))) .addMethod( getLogMethod(), org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage, org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage>( this, METHODID_LOG))) .build(); } } /** */ public static final class CollectorServiceStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractAsyncStub { private CollectorServiceStub( org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel, org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CollectorServiceStub build( org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel, org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) { return new CollectorServiceStub(channel, callOptions); } /** */ public void collectInit(org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCollectInitMethod(), getCallOptions()), request, responseObserver); } /** *
     * deprecated in 0.9.5, replaced by collectAggregateStream
     * 
*/ public void collectAggregates(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCollectAggregatesMethod(), getCallOptions()), request, responseObserver); } /** */ public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectAggregateStream( org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncClientStreamingCall( getChannel().newCall(getCollectAggregateStreamMethod(), getCallOptions()), responseObserver); } /** */ public void collectGaugeValues(org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCollectGaugeValuesMethod(), getCallOptions()), request, responseObserver); } /** *
     * deprecated in 0.9.5, replaced by collectTraceStream
     * 
*/ public void collectTrace(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCollectTraceMethod(), getCallOptions()), request, responseObserver); } /** */ public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver collectTraceStream( org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncClientStreamingCall( getChannel().newCall(getCollectTraceStreamMethod(), getCallOptions()), responseObserver); } /** */ public void log(org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getLogMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class CollectorServiceBlockingStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractBlockingStub { private CollectorServiceBlockingStub( org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel, org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CollectorServiceBlockingStub build( org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel, org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) { return new CollectorServiceBlockingStub(channel, callOptions); } /** */ public org.glowroot.wire.api.model.CollectorServiceOuterClass.InitResponse collectInit(org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCollectInitMethod(), getCallOptions(), request); } /** *
     * deprecated in 0.9.5, replaced by collectAggregateStream
     * 
*/ public org.glowroot.wire.api.model.CollectorServiceOuterClass.AggregateResponseMessage collectAggregates(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCollectAggregatesMethod(), getCallOptions(), request); } /** */ public org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueResponseMessage collectGaugeValues(org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCollectGaugeValuesMethod(), getCallOptions(), request); } /** *
     * deprecated in 0.9.5, replaced by collectTraceStream
     * 
*/ public org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage collectTrace(org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCollectTraceMethod(), getCallOptions(), request); } /** */ public org.glowroot.wire.api.model.CollectorServiceOuterClass.EmptyMessage log(org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getLogMethod(), getCallOptions(), request); } } /** */ public static final class CollectorServiceFutureStub extends org.glowroot.agent.it.harness.shaded.io.grpc.stub.AbstractFutureStub { private CollectorServiceFutureStub( org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel, org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CollectorServiceFutureStub build( org.glowroot.agent.it.harness.shaded.io.grpc.Channel channel, org.glowroot.agent.it.harness.shaded.io.grpc.CallOptions callOptions) { return new CollectorServiceFutureStub(channel, callOptions); } /** */ public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectInit( org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCollectInitMethod(), getCallOptions()), request); } /** *
     * deprecated in 0.9.5, replaced by collectAggregateStream
     * 
*/ public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectAggregates( org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCollectAggregatesMethod(), getCallOptions()), request); } /** */ public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectGaugeValues( org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCollectGaugeValuesMethod(), getCallOptions()), request); } /** *
     * deprecated in 0.9.5, replaced by collectTraceStream
     * 
*/ public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture collectTrace( org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCollectTraceMethod(), getCallOptions()), request); } /** */ public org.glowroot.agent.it.harness.shaded.com.google.common.util.concurrent.ListenableFuture log( org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage request) { return org.glowroot.agent.it.harness.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLogMethod(), getCallOptions()), request); } } private static final int METHODID_COLLECT_INIT = 0; private static final int METHODID_COLLECT_AGGREGATES = 1; private static final int METHODID_COLLECT_GAUGE_VALUES = 2; private static final int METHODID_COLLECT_TRACE = 3; private static final int METHODID_LOG = 4; private static final int METHODID_COLLECT_AGGREGATE_STREAM = 5; private static final int METHODID_COLLECT_TRACE_STREAM = 6; private static final class MethodHandlers implements org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.UnaryMethod, org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.ServerStreamingMethod, org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.ClientStreamingMethod, org.glowroot.agent.it.harness.shaded.io.grpc.stub.ServerCalls.BidiStreamingMethod { private final CollectorServiceImplBase serviceImpl; private final int methodId; MethodHandlers(CollectorServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COLLECT_INIT: serviceImpl.collectInit((org.glowroot.wire.api.model.CollectorServiceOuterClass.InitMessage) request, (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COLLECT_AGGREGATES: serviceImpl.collectAggregates((org.glowroot.wire.api.model.CollectorServiceOuterClass.OldAggregateMessage) request, (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COLLECT_GAUGE_VALUES: serviceImpl.collectGaugeValues((org.glowroot.wire.api.model.CollectorServiceOuterClass.GaugeValueMessage) request, (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COLLECT_TRACE: serviceImpl.collectTrace((org.glowroot.wire.api.model.CollectorServiceOuterClass.OldTraceMessage) request, (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LOG: serviceImpl.log((org.glowroot.wire.api.model.CollectorServiceOuterClass.LogMessage) request, (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver invoke( org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_COLLECT_AGGREGATE_STREAM: return (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) serviceImpl.collectAggregateStream( (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); case METHODID_COLLECT_TRACE_STREAM: return (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) serviceImpl.collectTraceStream( (org.glowroot.agent.it.harness.shaded.io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class CollectorServiceBaseDescriptorSupplier implements org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoFileDescriptorSupplier, org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoServiceDescriptorSupplier { CollectorServiceBaseDescriptorSupplier() {} @java.lang.Override public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return org.glowroot.wire.api.model.CollectorServiceOuterClass.getDescriptor(); } @java.lang.Override public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("CollectorService"); } } private static final class CollectorServiceFileDescriptorSupplier extends CollectorServiceBaseDescriptorSupplier { CollectorServiceFileDescriptorSupplier() {} } private static final class CollectorServiceMethodDescriptorSupplier extends CollectorServiceBaseDescriptorSupplier implements org.glowroot.agent.it.harness.shaded.io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; CollectorServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public org.glowroot.agent.it.harness.shaded.com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor serviceDescriptor; public static org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor getServiceDescriptor() { org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (CollectorServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = org.glowroot.agent.it.harness.shaded.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CollectorServiceFileDescriptorSupplier()) .addMethod(getCollectInitMethod()) .addMethod(getCollectAggregatesMethod()) .addMethod(getCollectAggregateStreamMethod()) .addMethod(getCollectGaugeValuesMethod()) .addMethod(getCollectTraceMethod()) .addMethod(getCollectTraceStreamMethod()) .addMethod(getLogMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy