com.google.ads.googleads.v17.services.BillingSetupServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
package com.google.ads.googleads.v17.services;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A service for designating the business entity responsible for accrued costs.
* A billing setup is associated with a payments account. Billing-related
* activity for all billing setups associated with a particular payments account
* will appear on a single invoice generated monthly.
* Mutates:
* The REMOVE operation cancels a pending billing setup.
* The CREATE operation creates a new billing setup.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v17/services/billing_setup_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class BillingSetupServiceGrpc {
private BillingSetupServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.BillingSetupService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateBillingSetupMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateBillingSetup",
requestType = com.google.ads.googleads.v17.services.MutateBillingSetupRequest.class,
responseType = com.google.ads.googleads.v17.services.MutateBillingSetupResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateBillingSetupMethod() {
io.grpc.MethodDescriptor getMutateBillingSetupMethod;
if ((getMutateBillingSetupMethod = BillingSetupServiceGrpc.getMutateBillingSetupMethod) == null) {
synchronized (BillingSetupServiceGrpc.class) {
if ((getMutateBillingSetupMethod = BillingSetupServiceGrpc.getMutateBillingSetupMethod) == null) {
BillingSetupServiceGrpc.getMutateBillingSetupMethod = getMutateBillingSetupMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateBillingSetup"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateBillingSetupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateBillingSetupResponse.getDefaultInstance()))
.setSchemaDescriptor(new BillingSetupServiceMethodDescriptorSupplier("MutateBillingSetup"))
.build();
}
}
}
return getMutateBillingSetupMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static BillingSetupServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BillingSetupServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingSetupServiceStub(channel, callOptions);
}
};
return BillingSetupServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static BillingSetupServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BillingSetupServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingSetupServiceBlockingStub(channel, callOptions);
}
};
return BillingSetupServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static BillingSetupServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public BillingSetupServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingSetupServiceFutureStub(channel, callOptions);
}
};
return BillingSetupServiceFutureStub.newStub(factory, channel);
}
/**
*
* A service for designating the business entity responsible for accrued costs.
* A billing setup is associated with a payments account. Billing-related
* activity for all billing setups associated with a particular payments account
* will appear on a single invoice generated monthly.
* Mutates:
* The REMOVE operation cancels a pending billing setup.
* The CREATE operation creates a new billing setup.
*
*/
public interface AsyncService {
/**
*
* Creates a billing setup, or cancels an existing billing setup.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [BillingSetupError]()
* [DateError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
default void mutateBillingSetup(com.google.ads.googleads.v17.services.MutateBillingSetupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateBillingSetupMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service BillingSetupService.
*
* A service for designating the business entity responsible for accrued costs.
* A billing setup is associated with a payments account. Billing-related
* activity for all billing setups associated with a particular payments account
* will appear on a single invoice generated monthly.
* Mutates:
* The REMOVE operation cancels a pending billing setup.
* The CREATE operation creates a new billing setup.
*
*/
public static abstract class BillingSetupServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return BillingSetupServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service BillingSetupService.
*
* A service for designating the business entity responsible for accrued costs.
* A billing setup is associated with a payments account. Billing-related
* activity for all billing setups associated with a particular payments account
* will appear on a single invoice generated monthly.
* Mutates:
* The REMOVE operation cancels a pending billing setup.
* The CREATE operation creates a new billing setup.
*
*/
public static final class BillingSetupServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private BillingSetupServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BillingSetupServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingSetupServiceStub(channel, callOptions);
}
/**
*
* Creates a billing setup, or cancels an existing billing setup.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [BillingSetupError]()
* [DateError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void mutateBillingSetup(com.google.ads.googleads.v17.services.MutateBillingSetupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateBillingSetupMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service BillingSetupService.
*
* A service for designating the business entity responsible for accrued costs.
* A billing setup is associated with a payments account. Billing-related
* activity for all billing setups associated with a particular payments account
* will appear on a single invoice generated monthly.
* Mutates:
* The REMOVE operation cancels a pending billing setup.
* The CREATE operation creates a new billing setup.
*
*/
public static final class BillingSetupServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private BillingSetupServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BillingSetupServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingSetupServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates a billing setup, or cancels an existing billing setup.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [BillingSetupError]()
* [DateError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v17.services.MutateBillingSetupResponse mutateBillingSetup(com.google.ads.googleads.v17.services.MutateBillingSetupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateBillingSetupMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service BillingSetupService.
*
* A service for designating the business entity responsible for accrued costs.
* A billing setup is associated with a payments account. Billing-related
* activity for all billing setups associated with a particular payments account
* will appear on a single invoice generated monthly.
* Mutates:
* The REMOVE operation cancels a pending billing setup.
* The CREATE operation creates a new billing setup.
*
*/
public static final class BillingSetupServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private BillingSetupServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected BillingSetupServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new BillingSetupServiceFutureStub(channel, callOptions);
}
/**
*
* Creates a billing setup, or cancels an existing billing setup.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [BillingSetupError]()
* [DateError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateBillingSetup(
com.google.ads.googleads.v17.services.MutateBillingSetupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateBillingSetupMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_BILLING_SETUP = 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_BILLING_SETUP:
serviceImpl.mutateBillingSetup((com.google.ads.googleads.v17.services.MutateBillingSetupRequest) 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(
getMutateBillingSetupMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.MutateBillingSetupRequest,
com.google.ads.googleads.v17.services.MutateBillingSetupResponse>(
service, METHODID_MUTATE_BILLING_SETUP)))
.build();
}
private static abstract class BillingSetupServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BillingSetupServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v17.services.BillingSetupServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("BillingSetupService");
}
}
private static final class BillingSetupServiceFileDescriptorSupplier
extends BillingSetupServiceBaseDescriptorSupplier {
BillingSetupServiceFileDescriptorSupplier() {}
}
private static final class BillingSetupServiceMethodDescriptorSupplier
extends BillingSetupServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
BillingSetupServiceMethodDescriptorSupplier(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 (BillingSetupServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new BillingSetupServiceFileDescriptorSupplier())
.addMethod(getMutateBillingSetupMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy