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

com.google.ads.googleads.v17.services.ConversionUploadServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.google.ads.googleads.v17.services;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to upload conversions.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/conversion_upload_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConversionUploadServiceGrpc { private ConversionUploadServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.ConversionUploadService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getUploadClickConversionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UploadClickConversions", requestType = com.google.ads.googleads.v17.services.UploadClickConversionsRequest.class, responseType = com.google.ads.googleads.v17.services.UploadClickConversionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUploadClickConversionsMethod() { io.grpc.MethodDescriptor getUploadClickConversionsMethod; if ((getUploadClickConversionsMethod = ConversionUploadServiceGrpc.getUploadClickConversionsMethod) == null) { synchronized (ConversionUploadServiceGrpc.class) { if ((getUploadClickConversionsMethod = ConversionUploadServiceGrpc.getUploadClickConversionsMethod) == null) { ConversionUploadServiceGrpc.getUploadClickConversionsMethod = getUploadClickConversionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadClickConversions")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.UploadClickConversionsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.UploadClickConversionsResponse.getDefaultInstance())) .setSchemaDescriptor(new ConversionUploadServiceMethodDescriptorSupplier("UploadClickConversions")) .build(); } } } return getUploadClickConversionsMethod; } private static volatile io.grpc.MethodDescriptor getUploadCallConversionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UploadCallConversions", requestType = com.google.ads.googleads.v17.services.UploadCallConversionsRequest.class, responseType = com.google.ads.googleads.v17.services.UploadCallConversionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUploadCallConversionsMethod() { io.grpc.MethodDescriptor getUploadCallConversionsMethod; if ((getUploadCallConversionsMethod = ConversionUploadServiceGrpc.getUploadCallConversionsMethod) == null) { synchronized (ConversionUploadServiceGrpc.class) { if ((getUploadCallConversionsMethod = ConversionUploadServiceGrpc.getUploadCallConversionsMethod) == null) { ConversionUploadServiceGrpc.getUploadCallConversionsMethod = getUploadCallConversionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadCallConversions")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.UploadCallConversionsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.UploadCallConversionsResponse.getDefaultInstance())) .setSchemaDescriptor(new ConversionUploadServiceMethodDescriptorSupplier("UploadCallConversions")) .build(); } } } return getUploadCallConversionsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ConversionUploadServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ConversionUploadServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversionUploadServiceStub(channel, callOptions); } }; return ConversionUploadServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ConversionUploadServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ConversionUploadServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversionUploadServiceBlockingStub(channel, callOptions); } }; return ConversionUploadServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ConversionUploadServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ConversionUploadServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversionUploadServiceFutureStub(channel, callOptions); } }; return ConversionUploadServiceFutureStub.newStub(factory, channel); } /** *
   * Service to upload conversions.
   * 
*/ public interface AsyncService { /** *
     * Processes the given click conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [ConversionUploadError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void uploadClickConversions(com.google.ads.googleads.v17.services.UploadClickConversionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadClickConversionsMethod(), responseObserver); } /** *
     * Processes the given call conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void uploadCallConversions(com.google.ads.googleads.v17.services.UploadCallConversionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadCallConversionsMethod(), responseObserver); } } /** * Base class for the server implementation of the service ConversionUploadService. *
   * Service to upload conversions.
   * 
*/ public static abstract class ConversionUploadServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return ConversionUploadServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ConversionUploadService. *
   * Service to upload conversions.
   * 
*/ public static final class ConversionUploadServiceStub extends io.grpc.stub.AbstractAsyncStub { private ConversionUploadServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ConversionUploadServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversionUploadServiceStub(channel, callOptions); } /** *
     * Processes the given click conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [ConversionUploadError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void uploadClickConversions(com.google.ads.googleads.v17.services.UploadClickConversionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUploadClickConversionsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Processes the given call conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void uploadCallConversions(com.google.ads.googleads.v17.services.UploadCallConversionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUploadCallConversionsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ConversionUploadService. *
   * Service to upload conversions.
   * 
*/ public static final class ConversionUploadServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ConversionUploadServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ConversionUploadServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversionUploadServiceBlockingStub(channel, callOptions); } /** *
     * Processes the given click conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [ConversionUploadError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.UploadClickConversionsResponse uploadClickConversions(com.google.ads.googleads.v17.services.UploadClickConversionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUploadClickConversionsMethod(), getCallOptions(), request); } /** *
     * Processes the given call conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.UploadCallConversionsResponse uploadCallConversions(com.google.ads.googleads.v17.services.UploadCallConversionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUploadCallConversionsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ConversionUploadService. *
   * Service to upload conversions.
   * 
*/ public static final class ConversionUploadServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ConversionUploadServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ConversionUploadServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConversionUploadServiceFutureStub(channel, callOptions); } /** *
     * Processes the given click conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [ConversionUploadError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture uploadClickConversions( com.google.ads.googleads.v17.services.UploadClickConversionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUploadClickConversionsMethod(), getCallOptions()), request); } /** *
     * Processes the given call conversions.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [PartialFailureError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture uploadCallConversions( com.google.ads.googleads.v17.services.UploadCallConversionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUploadCallConversionsMethod(), getCallOptions()), request); } } private static final int METHODID_UPLOAD_CLICK_CONVERSIONS = 0; private static final int METHODID_UPLOAD_CALL_CONVERSIONS = 1; 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_UPLOAD_CLICK_CONVERSIONS: serviceImpl.uploadClickConversions((com.google.ads.googleads.v17.services.UploadClickConversionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPLOAD_CALL_CONVERSIONS: serviceImpl.uploadCallConversions((com.google.ads.googleads.v17.services.UploadCallConversionsRequest) 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( getUploadClickConversionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.UploadClickConversionsRequest, com.google.ads.googleads.v17.services.UploadClickConversionsResponse>( service, METHODID_UPLOAD_CLICK_CONVERSIONS))) .addMethod( getUploadCallConversionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.UploadCallConversionsRequest, com.google.ads.googleads.v17.services.UploadCallConversionsResponse>( service, METHODID_UPLOAD_CALL_CONVERSIONS))) .build(); } private static abstract class ConversionUploadServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConversionUploadServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.ConversionUploadServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ConversionUploadService"); } } private static final class ConversionUploadServiceFileDescriptorSupplier extends ConversionUploadServiceBaseDescriptorSupplier { ConversionUploadServiceFileDescriptorSupplier() {} } private static final class ConversionUploadServiceMethodDescriptorSupplier extends ConversionUploadServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; ConversionUploadServiceMethodDescriptorSupplier(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 (ConversionUploadServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ConversionUploadServiceFileDescriptorSupplier()) .addMethod(getUploadClickConversionsMethod()) .addMethod(getUploadCallConversionsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy