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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * This service allows management of LocalServicesLead resources.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/local_services_lead_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LocalServicesLeadServiceGrpc { private LocalServicesLeadServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.LocalServicesLeadService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getAppendLeadConversationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "AppendLeadConversation", requestType = com.google.ads.googleads.v17.services.AppendLeadConversationRequest.class, responseType = com.google.ads.googleads.v17.services.AppendLeadConversationResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getAppendLeadConversationMethod() { io.grpc.MethodDescriptor getAppendLeadConversationMethod; if ((getAppendLeadConversationMethod = LocalServicesLeadServiceGrpc.getAppendLeadConversationMethod) == null) { synchronized (LocalServicesLeadServiceGrpc.class) { if ((getAppendLeadConversationMethod = LocalServicesLeadServiceGrpc.getAppendLeadConversationMethod) == null) { LocalServicesLeadServiceGrpc.getAppendLeadConversationMethod = getAppendLeadConversationMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendLeadConversation")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.AppendLeadConversationRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.AppendLeadConversationResponse.getDefaultInstance())) .setSchemaDescriptor(new LocalServicesLeadServiceMethodDescriptorSupplier("AppendLeadConversation")) .build(); } } } return getAppendLeadConversationMethod; } /** * Creates a new async stub that supports all call types for the service */ public static LocalServicesLeadServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LocalServicesLeadServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocalServicesLeadServiceStub(channel, callOptions); } }; return LocalServicesLeadServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static LocalServicesLeadServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LocalServicesLeadServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocalServicesLeadServiceBlockingStub(channel, callOptions); } }; return LocalServicesLeadServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static LocalServicesLeadServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LocalServicesLeadServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocalServicesLeadServiceFutureStub(channel, callOptions); } }; return LocalServicesLeadServiceFutureStub.newStub(factory, channel); } /** *
   * This service allows management of LocalServicesLead resources.
   * 
*/ public interface AsyncService { /** *
     * RPC to append Local Services Lead Conversation resources to Local Services
     * Lead resources.
     * 
*/ default void appendLeadConversation(com.google.ads.googleads.v17.services.AppendLeadConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAppendLeadConversationMethod(), responseObserver); } } /** * Base class for the server implementation of the service LocalServicesLeadService. *
   * This service allows management of LocalServicesLead resources.
   * 
*/ public static abstract class LocalServicesLeadServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return LocalServicesLeadServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service LocalServicesLeadService. *
   * This service allows management of LocalServicesLead resources.
   * 
*/ public static final class LocalServicesLeadServiceStub extends io.grpc.stub.AbstractAsyncStub { private LocalServicesLeadServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LocalServicesLeadServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocalServicesLeadServiceStub(channel, callOptions); } /** *
     * RPC to append Local Services Lead Conversation resources to Local Services
     * Lead resources.
     * 
*/ public void appendLeadConversation(com.google.ads.googleads.v17.services.AppendLeadConversationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAppendLeadConversationMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service LocalServicesLeadService. *
   * This service allows management of LocalServicesLead resources.
   * 
*/ public static final class LocalServicesLeadServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private LocalServicesLeadServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LocalServicesLeadServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocalServicesLeadServiceBlockingStub(channel, callOptions); } /** *
     * RPC to append Local Services Lead Conversation resources to Local Services
     * Lead resources.
     * 
*/ public com.google.ads.googleads.v17.services.AppendLeadConversationResponse appendLeadConversation(com.google.ads.googleads.v17.services.AppendLeadConversationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAppendLeadConversationMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service LocalServicesLeadService. *
   * This service allows management of LocalServicesLead resources.
   * 
*/ public static final class LocalServicesLeadServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private LocalServicesLeadServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LocalServicesLeadServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LocalServicesLeadServiceFutureStub(channel, callOptions); } /** *
     * RPC to append Local Services Lead Conversation resources to Local Services
     * Lead resources.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture appendLeadConversation( com.google.ads.googleads.v17.services.AppendLeadConversationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAppendLeadConversationMethod(), getCallOptions()), request); } } private static final int METHODID_APPEND_LEAD_CONVERSATION = 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_APPEND_LEAD_CONVERSATION: serviceImpl.appendLeadConversation((com.google.ads.googleads.v17.services.AppendLeadConversationRequest) 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( getAppendLeadConversationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.AppendLeadConversationRequest, com.google.ads.googleads.v17.services.AppendLeadConversationResponse>( service, METHODID_APPEND_LEAD_CONVERSATION))) .build(); } private static abstract class LocalServicesLeadServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LocalServicesLeadServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.LocalServicesLeadServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("LocalServicesLeadService"); } } private static final class LocalServicesLeadServiceFileDescriptorSupplier extends LocalServicesLeadServiceBaseDescriptorSupplier { LocalServicesLeadServiceFileDescriptorSupplier() {} } private static final class LocalServicesLeadServiceMethodDescriptorSupplier extends LocalServicesLeadServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; LocalServicesLeadServiceMethodDescriptorSupplier(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 (LocalServicesLeadServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new LocalServicesLeadServiceFileDescriptorSupplier()) .addMethod(getAppendLeadConversationMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy