com.google.ads.googleads.v17.services.CustomerFeedServiceGrpc 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;
/**
*
* Service to manage customer feeds.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v17/services/customer_feed_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class CustomerFeedServiceGrpc {
private CustomerFeedServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.CustomerFeedService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateCustomerFeedsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateCustomerFeeds",
requestType = com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest.class,
responseType = com.google.ads.googleads.v17.services.MutateCustomerFeedsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateCustomerFeedsMethod() {
io.grpc.MethodDescriptor getMutateCustomerFeedsMethod;
if ((getMutateCustomerFeedsMethod = CustomerFeedServiceGrpc.getMutateCustomerFeedsMethod) == null) {
synchronized (CustomerFeedServiceGrpc.class) {
if ((getMutateCustomerFeedsMethod = CustomerFeedServiceGrpc.getMutateCustomerFeedsMethod) == null) {
CustomerFeedServiceGrpc.getMutateCustomerFeedsMethod = getMutateCustomerFeedsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateCustomerFeeds"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateCustomerFeedsResponse.getDefaultInstance()))
.setSchemaDescriptor(new CustomerFeedServiceMethodDescriptorSupplier("MutateCustomerFeeds"))
.build();
}
}
}
return getMutateCustomerFeedsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static CustomerFeedServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CustomerFeedServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerFeedServiceStub(channel, callOptions);
}
};
return CustomerFeedServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static CustomerFeedServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CustomerFeedServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerFeedServiceBlockingStub(channel, callOptions);
}
};
return CustomerFeedServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static CustomerFeedServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CustomerFeedServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerFeedServiceFutureStub(channel, callOptions);
}
};
return CustomerFeedServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage customer feeds.
*
*/
public interface AsyncService {
/**
*
* Creates, updates, or removes customer feeds. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CustomerFeedError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [FunctionError]()
* [FunctionParsingError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
default void mutateCustomerFeeds(com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateCustomerFeedsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service CustomerFeedService.
*
* Service to manage customer feeds.
*
*/
public static abstract class CustomerFeedServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return CustomerFeedServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service CustomerFeedService.
*
* Service to manage customer feeds.
*
*/
public static final class CustomerFeedServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private CustomerFeedServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CustomerFeedServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerFeedServiceStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes customer feeds. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CustomerFeedError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [FunctionError]()
* [FunctionParsingError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public void mutateCustomerFeeds(com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateCustomerFeedsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service CustomerFeedService.
*
* Service to manage customer feeds.
*
*/
public static final class CustomerFeedServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private CustomerFeedServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CustomerFeedServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerFeedServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes customer feeds. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CustomerFeedError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [FunctionError]()
* [FunctionParsingError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public com.google.ads.googleads.v17.services.MutateCustomerFeedsResponse mutateCustomerFeeds(com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateCustomerFeedsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service CustomerFeedService.
*
* Service to manage customer feeds.
*
*/
public static final class CustomerFeedServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private CustomerFeedServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CustomerFeedServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CustomerFeedServiceFutureStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes customer feeds. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CollectionSizeError]()
* [CustomerFeedError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [FieldMaskError]()
* [FunctionError]()
* [FunctionParsingError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateCustomerFeeds(
com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateCustomerFeedsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_CUSTOMER_FEEDS = 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_CUSTOMER_FEEDS:
serviceImpl.mutateCustomerFeeds((com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest) 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(
getMutateCustomerFeedsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.MutateCustomerFeedsRequest,
com.google.ads.googleads.v17.services.MutateCustomerFeedsResponse>(
service, METHODID_MUTATE_CUSTOMER_FEEDS)))
.build();
}
private static abstract class CustomerFeedServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
CustomerFeedServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v17.services.CustomerFeedServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("CustomerFeedService");
}
}
private static final class CustomerFeedServiceFileDescriptorSupplier
extends CustomerFeedServiceBaseDescriptorSupplier {
CustomerFeedServiceFileDescriptorSupplier() {}
}
private static final class CustomerFeedServiceMethodDescriptorSupplier
extends CustomerFeedServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
CustomerFeedServiceMethodDescriptorSupplier(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 (CustomerFeedServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new CustomerFeedServiceFileDescriptorSupplier())
.addMethod(getMutateCustomerFeedsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy