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

com.google.ads.googleads.v9.services.ClickViewServiceGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to fetch click views.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v9/services/click_view_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClickViewServiceGrpc { private ClickViewServiceGrpc() {} public static final String SERVICE_NAME = "google.ads.googleads.v9.services.ClickViewService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetClickViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetClickView", requestType = com.google.ads.googleads.v9.services.GetClickViewRequest.class, responseType = com.google.ads.googleads.v9.resources.ClickView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetClickViewMethod() { io.grpc.MethodDescriptor getGetClickViewMethod; if ((getGetClickViewMethod = ClickViewServiceGrpc.getGetClickViewMethod) == null) { synchronized (ClickViewServiceGrpc.class) { if ((getGetClickViewMethod = ClickViewServiceGrpc.getGetClickViewMethod) == null) { ClickViewServiceGrpc.getGetClickViewMethod = getGetClickViewMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClickView")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v9.services.GetClickViewRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v9.resources.ClickView.getDefaultInstance())) .setSchemaDescriptor(new ClickViewServiceMethodDescriptorSupplier("GetClickView")) .build(); } } } return getGetClickViewMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ClickViewServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClickViewServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClickViewServiceStub(channel, callOptions); } }; return ClickViewServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ClickViewServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClickViewServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClickViewServiceBlockingStub(channel, callOptions); } }; return ClickViewServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ClickViewServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClickViewServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClickViewServiceFutureStub(channel, callOptions); } }; return ClickViewServiceFutureStub.newStub(factory, channel); } /** *
   * Service to fetch click views.
   * 
*/ public static abstract class ClickViewServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the requested click view in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void getClickView(com.google.ads.googleads.v9.services.GetClickViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClickViewMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetClickViewMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v9.services.GetClickViewRequest, com.google.ads.googleads.v9.resources.ClickView>( this, METHODID_GET_CLICK_VIEW))) .build(); } } /** *
   * Service to fetch click views.
   * 
*/ public static final class ClickViewServiceStub extends io.grpc.stub.AbstractAsyncStub { private ClickViewServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClickViewServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClickViewServiceStub(channel, callOptions); } /** *
     * Returns the requested click view in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void getClickView(com.google.ads.googleads.v9.services.GetClickViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClickViewMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Service to fetch click views.
   * 
*/ public static final class ClickViewServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ClickViewServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClickViewServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClickViewServiceBlockingStub(channel, callOptions); } /** *
     * Returns the requested click view in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v9.resources.ClickView getClickView(com.google.ads.googleads.v9.services.GetClickViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClickViewMethod(), getCallOptions(), request); } } /** *
   * Service to fetch click views.
   * 
*/ public static final class ClickViewServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ClickViewServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClickViewServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClickViewServiceFutureStub(channel, callOptions); } /** *
     * Returns the requested click view in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getClickView( com.google.ads.googleads.v9.services.GetClickViewRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClickViewMethod(), getCallOptions()), request); } } private static final int METHODID_GET_CLICK_VIEW = 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 ClickViewServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ClickViewServiceImplBase 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_GET_CLICK_VIEW: serviceImpl.getClickView((com.google.ads.googleads.v9.services.GetClickViewRequest) 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 ClickViewServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ClickViewServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v9.services.ClickViewServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ClickViewService"); } } private static final class ClickViewServiceFileDescriptorSupplier extends ClickViewServiceBaseDescriptorSupplier { ClickViewServiceFileDescriptorSupplier() {} } private static final class ClickViewServiceMethodDescriptorSupplier extends ClickViewServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ClickViewServiceMethodDescriptorSupplier(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 (ClickViewServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ClickViewServiceFileDescriptorSupplier()) .addMethod(getGetClickViewMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy