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

io.opentelemetry.proto.collector.profiles.v1experimental.ProfilesServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.0.47
Show newest version
package io.opentelemetry.proto.collector.profiles.v1experimental;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service that can be used to push profiles between one Application instrumented with
 * OpenTelemetry and a collector, or between a collector and a central collector.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.62.2)", comments = "Source: opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProfilesServiceGrpc { private ProfilesServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "opentelemetry.proto.collector.profiles.v1experimental.ProfilesService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getExportMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Export", requestType = io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest.class, responseType = io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getExportMethod() { io.grpc.MethodDescriptor getExportMethod; if ((getExportMethod = ProfilesServiceGrpc.getExportMethod) == null) { synchronized (ProfilesServiceGrpc.class) { if ((getExportMethod = ProfilesServiceGrpc.getExportMethod) == null) { ProfilesServiceGrpc.getExportMethod = getExportMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Export")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceResponse.getDefaultInstance())) .setSchemaDescriptor(new ProfilesServiceMethodDescriptorSupplier("Export")) .build(); } } } return getExportMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ProfilesServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProfilesServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilesServiceStub(channel, callOptions); } }; return ProfilesServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ProfilesServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProfilesServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilesServiceBlockingStub(channel, callOptions); } }; return ProfilesServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ProfilesServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProfilesServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilesServiceFutureStub(channel, callOptions); } }; return ProfilesServiceFutureStub.newStub(factory, channel); } /** *
   * Service that can be used to push profiles between one Application instrumented with
   * OpenTelemetry and a collector, or between a collector and a central collector.
   * 
*/ public interface AsyncService { /** *
     * For performance reasons, it is recommended to keep this RPC
     * alive for the entire life of the application.
     * 
*/ default void export(io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportMethod(), responseObserver); } } /** * Base class for the server implementation of the service ProfilesService. *
   * Service that can be used to push profiles between one Application instrumented with
   * OpenTelemetry and a collector, or between a collector and a central collector.
   * 
*/ public static abstract class ProfilesServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return ProfilesServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ProfilesService. *
   * Service that can be used to push profiles between one Application instrumented with
   * OpenTelemetry and a collector, or between a collector and a central collector.
   * 
*/ public static final class ProfilesServiceStub extends io.grpc.stub.AbstractAsyncStub { private ProfilesServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProfilesServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilesServiceStub(channel, callOptions); } /** *
     * For performance reasons, it is recommended to keep this RPC
     * alive for the entire life of the application.
     * 
*/ public void export(io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getExportMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ProfilesService. *
   * Service that can be used to push profiles between one Application instrumented with
   * OpenTelemetry and a collector, or between a collector and a central collector.
   * 
*/ public static final class ProfilesServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ProfilesServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProfilesServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilesServiceBlockingStub(channel, callOptions); } /** *
     * For performance reasons, it is recommended to keep this RPC
     * alive for the entire life of the application.
     * 
*/ public io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceResponse export(io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getExportMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ProfilesService. *
   * Service that can be used to push profiles between one Application instrumented with
   * OpenTelemetry and a collector, or between a collector and a central collector.
   * 
*/ public static final class ProfilesServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ProfilesServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProfilesServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProfilesServiceFutureStub(channel, callOptions); } /** *
     * For performance reasons, it is recommended to keep this RPC
     * alive for the entire life of the application.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture export( io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getExportMethod(), getCallOptions()), request); } } private static final int METHODID_EXPORT = 0; 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_EXPORT: serviceImpl.export((io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest) 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( getExportMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceRequest, io.opentelemetry.proto.collector.profiles.v1experimental.ExportProfilesServiceResponse>( service, METHODID_EXPORT))) .build(); } private static abstract class ProfilesServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProfilesServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.opentelemetry.proto.collector.profiles.v1experimental.ProfilesServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ProfilesService"); } } private static final class ProfilesServiceFileDescriptorSupplier extends ProfilesServiceBaseDescriptorSupplier { ProfilesServiceFileDescriptorSupplier() {} } private static final class ProfilesServiceMethodDescriptorSupplier extends ProfilesServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; ProfilesServiceMethodDescriptorSupplier(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 (ProfilesServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ProfilesServiceFileDescriptorSupplier()) .addMethod(getExportMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy