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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * This service allows management of links between  a Google
 * Ads customer and another product.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/product_link_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ProductLinkServiceGrpc { private ProductLinkServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.ProductLinkService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getCreateProductLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateProductLink", requestType = com.google.ads.googleads.v17.services.CreateProductLinkRequest.class, responseType = com.google.ads.googleads.v17.services.CreateProductLinkResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateProductLinkMethod() { io.grpc.MethodDescriptor getCreateProductLinkMethod; if ((getCreateProductLinkMethod = ProductLinkServiceGrpc.getCreateProductLinkMethod) == null) { synchronized (ProductLinkServiceGrpc.class) { if ((getCreateProductLinkMethod = ProductLinkServiceGrpc.getCreateProductLinkMethod) == null) { ProductLinkServiceGrpc.getCreateProductLinkMethod = getCreateProductLinkMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProductLink")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.CreateProductLinkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.CreateProductLinkResponse.getDefaultInstance())) .setSchemaDescriptor(new ProductLinkServiceMethodDescriptorSupplier("CreateProductLink")) .build(); } } } return getCreateProductLinkMethod; } private static volatile io.grpc.MethodDescriptor getRemoveProductLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RemoveProductLink", requestType = com.google.ads.googleads.v17.services.RemoveProductLinkRequest.class, responseType = com.google.ads.googleads.v17.services.RemoveProductLinkResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRemoveProductLinkMethod() { io.grpc.MethodDescriptor getRemoveProductLinkMethod; if ((getRemoveProductLinkMethod = ProductLinkServiceGrpc.getRemoveProductLinkMethod) == null) { synchronized (ProductLinkServiceGrpc.class) { if ((getRemoveProductLinkMethod = ProductLinkServiceGrpc.getRemoveProductLinkMethod) == null) { ProductLinkServiceGrpc.getRemoveProductLinkMethod = getRemoveProductLinkMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveProductLink")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.RemoveProductLinkRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.RemoveProductLinkResponse.getDefaultInstance())) .setSchemaDescriptor(new ProductLinkServiceMethodDescriptorSupplier("RemoveProductLink")) .build(); } } } return getRemoveProductLinkMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ProductLinkServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProductLinkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductLinkServiceStub(channel, callOptions); } }; return ProductLinkServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ProductLinkServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProductLinkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductLinkServiceBlockingStub(channel, callOptions); } }; return ProductLinkServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ProductLinkServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ProductLinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductLinkServiceFutureStub(channel, callOptions); } }; return ProductLinkServiceFutureStub.newStub(factory, channel); } /** *
   * This service allows management of links between  a Google
   * Ads customer and another product.
   * 
*/ public interface AsyncService { /** *
     * Creates a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void createProductLink(com.google.ads.googleads.v17.services.CreateProductLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProductLinkMethod(), responseObserver); } /** *
     * Removes a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void removeProductLink(com.google.ads.googleads.v17.services.RemoveProductLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveProductLinkMethod(), responseObserver); } } /** * Base class for the server implementation of the service ProductLinkService. *
   * This service allows management of links between  a Google
   * Ads customer and another product.
   * 
*/ public static abstract class ProductLinkServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return ProductLinkServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ProductLinkService. *
   * This service allows management of links between  a Google
   * Ads customer and another product.
   * 
*/ public static final class ProductLinkServiceStub extends io.grpc.stub.AbstractAsyncStub { private ProductLinkServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProductLinkServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductLinkServiceStub(channel, callOptions); } /** *
     * Creates a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void createProductLink(com.google.ads.googleads.v17.services.CreateProductLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateProductLinkMethod(), getCallOptions()), request, responseObserver); } /** *
     * Removes a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void removeProductLink(com.google.ads.googleads.v17.services.RemoveProductLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRemoveProductLinkMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ProductLinkService. *
   * This service allows management of links between  a Google
   * Ads customer and another product.
   * 
*/ public static final class ProductLinkServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ProductLinkServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProductLinkServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductLinkServiceBlockingStub(channel, callOptions); } /** *
     * Creates a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.CreateProductLinkResponse createProductLink(com.google.ads.googleads.v17.services.CreateProductLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateProductLinkMethod(), getCallOptions(), request); } /** *
     * Removes a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.RemoveProductLinkResponse removeProductLink(com.google.ads.googleads.v17.services.RemoveProductLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveProductLinkMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ProductLinkService. *
   * This service allows management of links between  a Google
   * Ads customer and another product.
   * 
*/ public static final class ProductLinkServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ProductLinkServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ProductLinkServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ProductLinkServiceFutureStub(channel, callOptions); } /** *
     * Creates a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createProductLink( com.google.ads.googleads.v17.services.CreateProductLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateProductLinkMethod(), getCallOptions()), request); } /** *
     * Removes a product link.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture removeProductLink( com.google.ads.googleads.v17.services.RemoveProductLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveProductLinkMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_PRODUCT_LINK = 0; private static final int METHODID_REMOVE_PRODUCT_LINK = 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_CREATE_PRODUCT_LINK: serviceImpl.createProductLink((com.google.ads.googleads.v17.services.CreateProductLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_PRODUCT_LINK: serviceImpl.removeProductLink((com.google.ads.googleads.v17.services.RemoveProductLinkRequest) 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( getCreateProductLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.CreateProductLinkRequest, com.google.ads.googleads.v17.services.CreateProductLinkResponse>( service, METHODID_CREATE_PRODUCT_LINK))) .addMethod( getRemoveProductLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.RemoveProductLinkRequest, com.google.ads.googleads.v17.services.RemoveProductLinkResponse>( service, METHODID_REMOVE_PRODUCT_LINK))) .build(); } private static abstract class ProductLinkServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ProductLinkServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.ProductLinkServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ProductLinkService"); } } private static final class ProductLinkServiceFileDescriptorSupplier extends ProductLinkServiceBaseDescriptorSupplier { ProductLinkServiceFileDescriptorSupplier() {} } private static final class ProductLinkServiceMethodDescriptorSupplier extends ProductLinkServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; ProductLinkServiceMethodDescriptorSupplier(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 (ProductLinkServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ProductLinkServiceFileDescriptorSupplier()) .addMethod(getCreateProductLinkMethod()) .addMethod(getRemoveProductLinkMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy