com.google.ads.googleads.v17.services.AccountLinkServiceGrpc 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;
/**
*
* This service allows management of links between Google Ads accounts and other
* accounts.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v17/services/account_link_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AccountLinkServiceGrpc {
private AccountLinkServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.AccountLinkService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateAccountLinkMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateAccountLink",
requestType = com.google.ads.googleads.v17.services.CreateAccountLinkRequest.class,
responseType = com.google.ads.googleads.v17.services.CreateAccountLinkResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateAccountLinkMethod() {
io.grpc.MethodDescriptor getCreateAccountLinkMethod;
if ((getCreateAccountLinkMethod = AccountLinkServiceGrpc.getCreateAccountLinkMethod) == null) {
synchronized (AccountLinkServiceGrpc.class) {
if ((getCreateAccountLinkMethod = AccountLinkServiceGrpc.getCreateAccountLinkMethod) == null) {
AccountLinkServiceGrpc.getCreateAccountLinkMethod = getCreateAccountLinkMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccountLink"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.CreateAccountLinkRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.CreateAccountLinkResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccountLinkServiceMethodDescriptorSupplier("CreateAccountLink"))
.build();
}
}
}
return getCreateAccountLinkMethod;
}
private static volatile io.grpc.MethodDescriptor getMutateAccountLinkMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateAccountLink",
requestType = com.google.ads.googleads.v17.services.MutateAccountLinkRequest.class,
responseType = com.google.ads.googleads.v17.services.MutateAccountLinkResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateAccountLinkMethod() {
io.grpc.MethodDescriptor getMutateAccountLinkMethod;
if ((getMutateAccountLinkMethod = AccountLinkServiceGrpc.getMutateAccountLinkMethod) == null) {
synchronized (AccountLinkServiceGrpc.class) {
if ((getMutateAccountLinkMethod = AccountLinkServiceGrpc.getMutateAccountLinkMethod) == null) {
AccountLinkServiceGrpc.getMutateAccountLinkMethod = getMutateAccountLinkMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateAccountLink"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateAccountLinkRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateAccountLinkResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccountLinkServiceMethodDescriptorSupplier("MutateAccountLink"))
.build();
}
}
}
return getMutateAccountLinkMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AccountLinkServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccountLinkServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccountLinkServiceStub(channel, callOptions);
}
};
return AccountLinkServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AccountLinkServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccountLinkServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccountLinkServiceBlockingStub(channel, callOptions);
}
};
return AccountLinkServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AccountLinkServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccountLinkServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccountLinkServiceFutureStub(channel, callOptions);
}
};
return AccountLinkServiceFutureStub.newStub(factory, channel);
}
/**
*
* This service allows management of links between Google Ads accounts and other
* accounts.
*
*/
public interface AsyncService {
/**
*
* Creates an account link.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
* [ThirdPartyAppAnalyticsLinkError]()
*
*/
default void createAccountLink(com.google.ads.googleads.v17.services.CreateAccountLinkRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAccountLinkMethod(), responseObserver);
}
/**
*
* Creates or removes an account link.
* From V5, create is not supported through
* AccountLinkService.MutateAccountLink. Use
* AccountLinkService.CreateAccountLink instead.
* List of thrown errors:
* [AccountLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [FieldMaskError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
default void mutateAccountLink(com.google.ads.googleads.v17.services.MutateAccountLinkRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateAccountLinkMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AccountLinkService.
*
* This service allows management of links between Google Ads accounts and other
* accounts.
*
*/
public static abstract class AccountLinkServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AccountLinkServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AccountLinkService.
*
* This service allows management of links between Google Ads accounts and other
* accounts.
*
*/
public static final class AccountLinkServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private AccountLinkServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccountLinkServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccountLinkServiceStub(channel, callOptions);
}
/**
*
* Creates an account link.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
* [ThirdPartyAppAnalyticsLinkError]()
*
*/
public void createAccountLink(com.google.ads.googleads.v17.services.CreateAccountLinkRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateAccountLinkMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates or removes an account link.
* From V5, create is not supported through
* AccountLinkService.MutateAccountLink. Use
* AccountLinkService.CreateAccountLink instead.
* List of thrown errors:
* [AccountLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [FieldMaskError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void mutateAccountLink(com.google.ads.googleads.v17.services.MutateAccountLinkRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateAccountLinkMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AccountLinkService.
*
* This service allows management of links between Google Ads accounts and other
* accounts.
*
*/
public static final class AccountLinkServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private AccountLinkServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccountLinkServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccountLinkServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates an account link.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
* [ThirdPartyAppAnalyticsLinkError]()
*
*/
public com.google.ads.googleads.v17.services.CreateAccountLinkResponse createAccountLink(com.google.ads.googleads.v17.services.CreateAccountLinkRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateAccountLinkMethod(), getCallOptions(), request);
}
/**
*
* Creates or removes an account link.
* From V5, create is not supported through
* AccountLinkService.MutateAccountLink. Use
* AccountLinkService.CreateAccountLink instead.
* List of thrown errors:
* [AccountLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [FieldMaskError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v17.services.MutateAccountLinkResponse mutateAccountLink(com.google.ads.googleads.v17.services.MutateAccountLinkRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateAccountLinkMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AccountLinkService.
*
* This service allows management of links between Google Ads accounts and other
* accounts.
*
*/
public static final class AccountLinkServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private AccountLinkServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccountLinkServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccountLinkServiceFutureStub(channel, callOptions);
}
/**
*
* Creates an account link.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
* [ThirdPartyAppAnalyticsLinkError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture createAccountLink(
com.google.ads.googleads.v17.services.CreateAccountLinkRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateAccountLinkMethod(), getCallOptions()), request);
}
/**
*
* Creates or removes an account link.
* From V5, create is not supported through
* AccountLinkService.MutateAccountLink. Use
* AccountLinkService.CreateAccountLink instead.
* List of thrown errors:
* [AccountLinkError]()
* [AuthenticationError]()
* [AuthorizationError]()
* [FieldMaskError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateAccountLink(
com.google.ads.googleads.v17.services.MutateAccountLinkRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateAccountLinkMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_ACCOUNT_LINK = 0;
private static final int METHODID_MUTATE_ACCOUNT_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_ACCOUNT_LINK:
serviceImpl.createAccountLink((com.google.ads.googleads.v17.services.CreateAccountLinkRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_MUTATE_ACCOUNT_LINK:
serviceImpl.mutateAccountLink((com.google.ads.googleads.v17.services.MutateAccountLinkRequest) 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(
getCreateAccountLinkMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.CreateAccountLinkRequest,
com.google.ads.googleads.v17.services.CreateAccountLinkResponse>(
service, METHODID_CREATE_ACCOUNT_LINK)))
.addMethod(
getMutateAccountLinkMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.MutateAccountLinkRequest,
com.google.ads.googleads.v17.services.MutateAccountLinkResponse>(
service, METHODID_MUTATE_ACCOUNT_LINK)))
.build();
}
private static abstract class AccountLinkServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AccountLinkServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v17.services.AccountLinkServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AccountLinkService");
}
}
private static final class AccountLinkServiceFileDescriptorSupplier
extends AccountLinkServiceBaseDescriptorSupplier {
AccountLinkServiceFileDescriptorSupplier() {}
}
private static final class AccountLinkServiceMethodDescriptorSupplier
extends AccountLinkServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
AccountLinkServiceMethodDescriptorSupplier(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 (AccountLinkServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AccountLinkServiceFileDescriptorSupplier())
.addMethod(getCreateAccountLinkMethod())
.addMethod(getMutateAccountLinkMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy