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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy