com.google.ads.googleads.v10.services.RemarketingActionServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
package com.google.ads.googleads.v10.services;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Service to manage remarketing actions.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v10/services/remarketing_action_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class RemarketingActionServiceGrpc {
private RemarketingActionServiceGrpc() {}
public static final String SERVICE_NAME = "google.ads.googleads.v10.services.RemarketingActionService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateRemarketingActionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateRemarketingActions",
requestType = com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest.class,
responseType = com.google.ads.googleads.v10.services.MutateRemarketingActionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateRemarketingActionsMethod() {
io.grpc.MethodDescriptor getMutateRemarketingActionsMethod;
if ((getMutateRemarketingActionsMethod = RemarketingActionServiceGrpc.getMutateRemarketingActionsMethod) == null) {
synchronized (RemarketingActionServiceGrpc.class) {
if ((getMutateRemarketingActionsMethod = RemarketingActionServiceGrpc.getMutateRemarketingActionsMethod) == null) {
RemarketingActionServiceGrpc.getMutateRemarketingActionsMethod = getMutateRemarketingActionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateRemarketingActions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateRemarketingActionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new RemarketingActionServiceMethodDescriptorSupplier("MutateRemarketingActions"))
.build();
}
}
}
return getMutateRemarketingActionsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static RemarketingActionServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RemarketingActionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RemarketingActionServiceStub(channel, callOptions);
}
};
return RemarketingActionServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static RemarketingActionServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RemarketingActionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RemarketingActionServiceBlockingStub(channel, callOptions);
}
};
return RemarketingActionServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static RemarketingActionServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RemarketingActionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RemarketingActionServiceFutureStub(channel, callOptions);
}
};
return RemarketingActionServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage remarketing actions.
*
*/
public static abstract class RemarketingActionServiceImplBase implements io.grpc.BindableService {
/**
*
* Creates or updates remarketing actions. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [ConversionActionError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void mutateRemarketingActions(com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateRemarketingActionsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getMutateRemarketingActionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest,
com.google.ads.googleads.v10.services.MutateRemarketingActionsResponse>(
this, METHODID_MUTATE_REMARKETING_ACTIONS)))
.build();
}
}
/**
*
* Service to manage remarketing actions.
*
*/
public static final class RemarketingActionServiceStub extends io.grpc.stub.AbstractAsyncStub {
private RemarketingActionServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RemarketingActionServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RemarketingActionServiceStub(channel, callOptions);
}
/**
*
* Creates or updates remarketing actions. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [ConversionActionError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void mutateRemarketingActions(com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateRemarketingActionsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Service to manage remarketing actions.
*
*/
public static final class RemarketingActionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private RemarketingActionServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RemarketingActionServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RemarketingActionServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates or updates remarketing actions. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [ConversionActionError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v10.services.MutateRemarketingActionsResponse mutateRemarketingActions(com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateRemarketingActionsMethod(), getCallOptions(), request);
}
}
/**
*
* Service to manage remarketing actions.
*
*/
public static final class RemarketingActionServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private RemarketingActionServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RemarketingActionServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RemarketingActionServiceFutureStub(channel, callOptions);
}
/**
*
* Creates or updates remarketing actions. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [ConversionActionError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateRemarketingActions(
com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateRemarketingActionsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_REMARKETING_ACTIONS = 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 RemarketingActionServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(RemarketingActionServiceImplBase 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_REMARKETING_ACTIONS:
serviceImpl.mutateRemarketingActions((com.google.ads.googleads.v10.services.MutateRemarketingActionsRequest) 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();
}
}
}
private static abstract class RemarketingActionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
RemarketingActionServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v10.services.RemarketingActionServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("RemarketingActionService");
}
}
private static final class RemarketingActionServiceFileDescriptorSupplier
extends RemarketingActionServiceBaseDescriptorSupplier {
RemarketingActionServiceFileDescriptorSupplier() {}
}
private static final class RemarketingActionServiceMethodDescriptorSupplier
extends RemarketingActionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
RemarketingActionServiceMethodDescriptorSupplier(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 (RemarketingActionServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new RemarketingActionServiceFileDescriptorSupplier())
.addMethod(getMutateRemarketingActionsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy