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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to manage bidding strategies.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/bidding_strategy_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class BiddingStrategyServiceGrpc { private BiddingStrategyServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.BiddingStrategyService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getMutateBiddingStrategiesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MutateBiddingStrategies", requestType = com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest.class, responseType = com.google.ads.googleads.v17.services.MutateBiddingStrategiesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMutateBiddingStrategiesMethod() { io.grpc.MethodDescriptor getMutateBiddingStrategiesMethod; if ((getMutateBiddingStrategiesMethod = BiddingStrategyServiceGrpc.getMutateBiddingStrategiesMethod) == null) { synchronized (BiddingStrategyServiceGrpc.class) { if ((getMutateBiddingStrategiesMethod = BiddingStrategyServiceGrpc.getMutateBiddingStrategiesMethod) == null) { BiddingStrategyServiceGrpc.getMutateBiddingStrategiesMethod = getMutateBiddingStrategiesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateBiddingStrategies")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.MutateBiddingStrategiesResponse.getDefaultInstance())) .setSchemaDescriptor(new BiddingStrategyServiceMethodDescriptorSupplier("MutateBiddingStrategies")) .build(); } } } return getMutateBiddingStrategiesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static BiddingStrategyServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public BiddingStrategyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BiddingStrategyServiceStub(channel, callOptions); } }; return BiddingStrategyServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static BiddingStrategyServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public BiddingStrategyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BiddingStrategyServiceBlockingStub(channel, callOptions); } }; return BiddingStrategyServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static BiddingStrategyServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public BiddingStrategyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BiddingStrategyServiceFutureStub(channel, callOptions); } }; return BiddingStrategyServiceFutureStub.newStub(factory, channel); } /** *
   * Service to manage bidding strategies.
   * 
*/ public interface AsyncService { /** *
     * Creates, updates, or removes bidding strategies. Operation statuses are
     * returned.
     * List of thrown errors:
     *   [AdxError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [BiddingError]()
     *   [BiddingStrategyError]()
     *   [ContextError]()
     *   [DatabaseError]()
     *   [DateError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperationAccessDeniedError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ default void mutateBiddingStrategies(com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateBiddingStrategiesMethod(), responseObserver); } } /** * Base class for the server implementation of the service BiddingStrategyService. *
   * Service to manage bidding strategies.
   * 
*/ public static abstract class BiddingStrategyServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return BiddingStrategyServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service BiddingStrategyService. *
   * Service to manage bidding strategies.
   * 
*/ public static final class BiddingStrategyServiceStub extends io.grpc.stub.AbstractAsyncStub { private BiddingStrategyServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected BiddingStrategyServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BiddingStrategyServiceStub(channel, callOptions); } /** *
     * Creates, updates, or removes bidding strategies. Operation statuses are
     * returned.
     * List of thrown errors:
     *   [AdxError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [BiddingError]()
     *   [BiddingStrategyError]()
     *   [ContextError]()
     *   [DatabaseError]()
     *   [DateError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperationAccessDeniedError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public void mutateBiddingStrategies(com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMutateBiddingStrategiesMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service BiddingStrategyService. *
   * Service to manage bidding strategies.
   * 
*/ public static final class BiddingStrategyServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private BiddingStrategyServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected BiddingStrategyServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BiddingStrategyServiceBlockingStub(channel, callOptions); } /** *
     * Creates, updates, or removes bidding strategies. Operation statuses are
     * returned.
     * List of thrown errors:
     *   [AdxError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [BiddingError]()
     *   [BiddingStrategyError]()
     *   [ContextError]()
     *   [DatabaseError]()
     *   [DateError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperationAccessDeniedError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public com.google.ads.googleads.v17.services.MutateBiddingStrategiesResponse mutateBiddingStrategies(com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMutateBiddingStrategiesMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service BiddingStrategyService. *
   * Service to manage bidding strategies.
   * 
*/ public static final class BiddingStrategyServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private BiddingStrategyServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected BiddingStrategyServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BiddingStrategyServiceFutureStub(channel, callOptions); } /** *
     * Creates, updates, or removes bidding strategies. Operation statuses are
     * returned.
     * List of thrown errors:
     *   [AdxError]()
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [BiddingError]()
     *   [BiddingStrategyError]()
     *   [ContextError]()
     *   [DatabaseError]()
     *   [DateError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperationAccessDeniedError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture mutateBiddingStrategies( com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMutateBiddingStrategiesMethod(), getCallOptions()), request); } } private static final int METHODID_MUTATE_BIDDING_STRATEGIES = 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_BIDDING_STRATEGIES: serviceImpl.mutateBiddingStrategies((com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest) 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( getMutateBiddingStrategiesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.MutateBiddingStrategiesRequest, com.google.ads.googleads.v17.services.MutateBiddingStrategiesResponse>( service, METHODID_MUTATE_BIDDING_STRATEGIES))) .build(); } private static abstract class BiddingStrategyServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BiddingStrategyServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.BiddingStrategyServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("BiddingStrategyService"); } } private static final class BiddingStrategyServiceFileDescriptorSupplier extends BiddingStrategyServiceBaseDescriptorSupplier { BiddingStrategyServiceFileDescriptorSupplier() {} } private static final class BiddingStrategyServiceMethodDescriptorSupplier extends BiddingStrategyServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; BiddingStrategyServiceMethodDescriptorSupplier(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 (BiddingStrategyServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new BiddingStrategyServiceFileDescriptorSupplier()) .addMethod(getMutateBiddingStrategiesMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy