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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to manage user lists.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/user_list_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class UserListServiceGrpc { private UserListServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.UserListService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getMutateUserListsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MutateUserLists", requestType = com.google.ads.googleads.v17.services.MutateUserListsRequest.class, responseType = com.google.ads.googleads.v17.services.MutateUserListsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMutateUserListsMethod() { io.grpc.MethodDescriptor getMutateUserListsMethod; if ((getMutateUserListsMethod = UserListServiceGrpc.getMutateUserListsMethod) == null) { synchronized (UserListServiceGrpc.class) { if ((getMutateUserListsMethod = UserListServiceGrpc.getMutateUserListsMethod) == null) { UserListServiceGrpc.getMutateUserListsMethod = getMutateUserListsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateUserLists")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.MutateUserListsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.MutateUserListsResponse.getDefaultInstance())) .setSchemaDescriptor(new UserListServiceMethodDescriptorSupplier("MutateUserLists")) .build(); } } } return getMutateUserListsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static UserListServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public UserListServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new UserListServiceStub(channel, callOptions); } }; return UserListServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static UserListServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public UserListServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new UserListServiceBlockingStub(channel, callOptions); } }; return UserListServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static UserListServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public UserListServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new UserListServiceFutureStub(channel, callOptions); } }; return UserListServiceFutureStub.newStub(factory, channel); } /** *
   * Service to manage user lists.
   * 
*/ public interface AsyncService { /** *
     * Creates or updates user lists. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotAllowlistedError]()
     *   [NotEmptyError]()
     *   [OperationAccessDeniedError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     *   [UserListError]()
     * 
*/ default void mutateUserLists(com.google.ads.googleads.v17.services.MutateUserListsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateUserListsMethod(), responseObserver); } } /** * Base class for the server implementation of the service UserListService. *
   * Service to manage user lists.
   * 
*/ public static abstract class UserListServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return UserListServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service UserListService. *
   * Service to manage user lists.
   * 
*/ public static final class UserListServiceStub extends io.grpc.stub.AbstractAsyncStub { private UserListServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected UserListServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new UserListServiceStub(channel, callOptions); } /** *
     * Creates or updates user lists. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotAllowlistedError]()
     *   [NotEmptyError]()
     *   [OperationAccessDeniedError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     *   [UserListError]()
     * 
*/ public void mutateUserLists(com.google.ads.googleads.v17.services.MutateUserListsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMutateUserListsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service UserListService. *
   * Service to manage user lists.
   * 
*/ public static final class UserListServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private UserListServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected UserListServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new UserListServiceBlockingStub(channel, callOptions); } /** *
     * Creates or updates user lists. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotAllowlistedError]()
     *   [NotEmptyError]()
     *   [OperationAccessDeniedError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     *   [UserListError]()
     * 
*/ public com.google.ads.googleads.v17.services.MutateUserListsResponse mutateUserLists(com.google.ads.googleads.v17.services.MutateUserListsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMutateUserListsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service UserListService. *
   * Service to manage user lists.
   * 
*/ public static final class UserListServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private UserListServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected UserListServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new UserListServiceFutureStub(channel, callOptions); } /** *
     * Creates or updates user lists. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [FieldMaskError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [MutateError]()
     *   [NewResourceCreationError]()
     *   [NotAllowlistedError]()
     *   [NotEmptyError]()
     *   [OperationAccessDeniedError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     *   [UserListError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture mutateUserLists( com.google.ads.googleads.v17.services.MutateUserListsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMutateUserListsMethod(), getCallOptions()), request); } } private static final int METHODID_MUTATE_USER_LISTS = 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_USER_LISTS: serviceImpl.mutateUserLists((com.google.ads.googleads.v17.services.MutateUserListsRequest) 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( getMutateUserListsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.MutateUserListsRequest, com.google.ads.googleads.v17.services.MutateUserListsResponse>( service, METHODID_MUTATE_USER_LISTS))) .build(); } private static abstract class UserListServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { UserListServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.UserListServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("UserListService"); } } private static final class UserListServiceFileDescriptorSupplier extends UserListServiceBaseDescriptorSupplier { UserListServiceFileDescriptorSupplier() {} } private static final class UserListServiceMethodDescriptorSupplier extends UserListServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; UserListServiceMethodDescriptorSupplier(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 (UserListServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new UserListServiceFileDescriptorSupplier()) .addMethod(getMutateUserListsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy