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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to manage labels on ad groups.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/ad_group_label_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class AdGroupLabelServiceGrpc { private AdGroupLabelServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.AdGroupLabelService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getMutateAdGroupLabelsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MutateAdGroupLabels", requestType = com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest.class, responseType = com.google.ads.googleads.v17.services.MutateAdGroupLabelsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMutateAdGroupLabelsMethod() { io.grpc.MethodDescriptor getMutateAdGroupLabelsMethod; if ((getMutateAdGroupLabelsMethod = AdGroupLabelServiceGrpc.getMutateAdGroupLabelsMethod) == null) { synchronized (AdGroupLabelServiceGrpc.class) { if ((getMutateAdGroupLabelsMethod = AdGroupLabelServiceGrpc.getMutateAdGroupLabelsMethod) == null) { AdGroupLabelServiceGrpc.getMutateAdGroupLabelsMethod = getMutateAdGroupLabelsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateAdGroupLabels")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.MutateAdGroupLabelsResponse.getDefaultInstance())) .setSchemaDescriptor(new AdGroupLabelServiceMethodDescriptorSupplier("MutateAdGroupLabels")) .build(); } } } return getMutateAdGroupLabelsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static AdGroupLabelServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AdGroupLabelServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AdGroupLabelServiceStub(channel, callOptions); } }; return AdGroupLabelServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static AdGroupLabelServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AdGroupLabelServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AdGroupLabelServiceBlockingStub(channel, callOptions); } }; return AdGroupLabelServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static AdGroupLabelServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public AdGroupLabelServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AdGroupLabelServiceFutureStub(channel, callOptions); } }; return AdGroupLabelServiceFutureStub.newStub(factory, channel); } /** *
   * Service to manage labels on ad groups.
   * 
*/ public interface AsyncService { /** *
     * Creates and removes ad group labels.
     * Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [LabelError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void mutateAdGroupLabels(com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateAdGroupLabelsMethod(), responseObserver); } } /** * Base class for the server implementation of the service AdGroupLabelService. *
   * Service to manage labels on ad groups.
   * 
*/ public static abstract class AdGroupLabelServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return AdGroupLabelServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service AdGroupLabelService. *
   * Service to manage labels on ad groups.
   * 
*/ public static final class AdGroupLabelServiceStub extends io.grpc.stub.AbstractAsyncStub { private AdGroupLabelServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AdGroupLabelServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AdGroupLabelServiceStub(channel, callOptions); } /** *
     * Creates and removes ad group labels.
     * Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [LabelError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void mutateAdGroupLabels(com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMutateAdGroupLabelsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service AdGroupLabelService. *
   * Service to manage labels on ad groups.
   * 
*/ public static final class AdGroupLabelServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AdGroupLabelServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AdGroupLabelServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AdGroupLabelServiceBlockingStub(channel, callOptions); } /** *
     * Creates and removes ad group labels.
     * Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [LabelError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.MutateAdGroupLabelsResponse mutateAdGroupLabels(com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMutateAdGroupLabelsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service AdGroupLabelService. *
   * Service to manage labels on ad groups.
   * 
*/ public static final class AdGroupLabelServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private AdGroupLabelServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AdGroupLabelServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AdGroupLabelServiceFutureStub(channel, callOptions); } /** *
     * Creates and removes ad group labels.
     * Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [LabelError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture mutateAdGroupLabels( com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMutateAdGroupLabelsMethod(), getCallOptions()), request); } } private static final int METHODID_MUTATE_AD_GROUP_LABELS = 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_MUTATE_AD_GROUP_LABELS: serviceImpl.mutateAdGroupLabels((com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest) 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( getMutateAdGroupLabelsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.MutateAdGroupLabelsRequest, com.google.ads.googleads.v17.services.MutateAdGroupLabelsResponse>( service, METHODID_MUTATE_AD_GROUP_LABELS))) .build(); } private static abstract class AdGroupLabelServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AdGroupLabelServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.AdGroupLabelServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("AdGroupLabelService"); } } private static final class AdGroupLabelServiceFileDescriptorSupplier extends AdGroupLabelServiceBaseDescriptorSupplier { AdGroupLabelServiceFileDescriptorSupplier() {} } private static final class AdGroupLabelServiceMethodDescriptorSupplier extends AdGroupLabelServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; AdGroupLabelServiceMethodDescriptorSupplier(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 (AdGroupLabelServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AdGroupLabelServiceFileDescriptorSupplier()) .addMethod(getMutateAdGroupLabelsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy