Class GrpcGoogleAdsCallableFactory

java.lang.Object
com.google.ads.googleads.lib.GrpcGoogleAdsCallableFactory
All Implemented Interfaces:
com.google.api.gax.grpc.GrpcStubCallableFactory

public class GrpcGoogleAdsCallableFactory extends Object implements com.google.api.gax.grpc.GrpcStubCallableFactory
Defines the factory used to create instances for all Google Ads services.

Used in place of the default generated code to override the exceptions generated to throw GoogleAdsException instead of ApiException.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <RequestT, ResponseT>
    com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>
    createBaseUnaryCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.UnaryCallSettings<?,?> callSettings, com.google.api.gax.rpc.ClientContext clientContext)
     
    <RequestT, ResponseT>
    com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>
    createBatchingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
     
    <RequestT, ResponseT>
    com.google.api.gax.rpc.BidiStreamingCallable<RequestT,ResponseT>
    createBidiStreamingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
     
    <RequestT, ResponseT>
    com.google.api.gax.rpc.ClientStreamingCallable<RequestT,ResponseT>
    createClientStreamingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
     
    <RequestT, ResponseT, MetadataT>
    com.google.api.gax.rpc.OperationCallable<RequestT,ResponseT,MetadataT>
    createOperationCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,com.google.longrunning.Operation> grpcCallSettings, com.google.api.gax.rpc.OperationCallSettings<RequestT,ResponseT,MetadataT> operationCallSettings, com.google.api.gax.rpc.ClientContext clientContext, com.google.longrunning.stub.OperationsStub operationsStub)
     
    <RequestT, ResponseT, PagedListResponseT>
    com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT>
    createPagedCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
     
    <RequestT, ResponseT>
    com.google.api.gax.rpc.ServerStreamingCallable<RequestT,ResponseT>
    createServerStreamingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.ServerStreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
     
    <RequestT, ResponseT>
    com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT>
    createUnaryCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.UnaryCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.ClientContext clientContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GrpcGoogleAdsCallableFactory

      public GrpcGoogleAdsCallableFactory()
  • Method Details

    • createBaseUnaryCallable

      public static <RequestT, ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createBaseUnaryCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.UnaryCallSettings<?,?> callSettings, com.google.api.gax.rpc.ClientContext clientContext)
    • createUnaryCallable

      public <RequestT, ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createUnaryCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.UnaryCallSettings<RequestT,ResponseT> callSettings, com.google.api.gax.rpc.ClientContext clientContext)
      Specified by:
      createUnaryCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory
    • createPagedCallable

      public <RequestT, ResponseT, PagedListResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,PagedListResponseT> createPagedCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.PagedCallSettings<RequestT,ResponseT,PagedListResponseT> pagedCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
      Specified by:
      createPagedCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory
    • createBatchingCallable

      public <RequestT, ResponseT> com.google.api.gax.rpc.UnaryCallable<RequestT,ResponseT> createBatchingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.BatchingCallSettings<RequestT,ResponseT> batchingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
      Specified by:
      createBatchingCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory
    • createOperationCallable

      public <RequestT, ResponseT, MetadataT> com.google.api.gax.rpc.OperationCallable<RequestT,ResponseT,MetadataT> createOperationCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,com.google.longrunning.Operation> grpcCallSettings, com.google.api.gax.rpc.OperationCallSettings<RequestT,ResponseT,MetadataT> operationCallSettings, com.google.api.gax.rpc.ClientContext clientContext, com.google.longrunning.stub.OperationsStub operationsStub)
      Specified by:
      createOperationCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory
    • createBidiStreamingCallable

      public <RequestT, ResponseT> com.google.api.gax.rpc.BidiStreamingCallable<RequestT,ResponseT> createBidiStreamingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
      Specified by:
      createBidiStreamingCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory
    • createServerStreamingCallable

      public <RequestT, ResponseT> com.google.api.gax.rpc.ServerStreamingCallable<RequestT,ResponseT> createServerStreamingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.ServerStreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
      Specified by:
      createServerStreamingCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory
    • createClientStreamingCallable

      public <RequestT, ResponseT> com.google.api.gax.rpc.ClientStreamingCallable<RequestT,ResponseT> createClientStreamingCallable(com.google.api.gax.grpc.GrpcCallSettings<RequestT,ResponseT> grpcCallSettings, com.google.api.gax.rpc.StreamingCallSettings<RequestT,ResponseT> streamingCallSettings, com.google.api.gax.rpc.ClientContext clientContext)
      Specified by:
      createClientStreamingCallable in interface com.google.api.gax.grpc.GrpcStubCallableFactory