Class AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub>
com.google.ads.googleads.v22.services.AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub
Enclosing class:
AssetGenerationServiceGrpc

public static final class AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub extends io.grpc.stub.AbstractFutureStub<AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service AssetGenerationService.
 Service for generating new assets with generative AI.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    com.google.common.util.concurrent.ListenableFuture<GenerateImagesResponse>
    Uses generative AI to generate images that can be used as assets in a campaign.
    com.google.common.util.concurrent.ListenableFuture<GenerateTextResponse>
    Uses generative AI to generate text that can be used as assets in a campaign.

    Methods inherited from class io.grpc.stub.AbstractFutureStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

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

    • build

      protected AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<AssetGenerationServiceGrpc.AssetGenerationServiceFutureStub>
    • generateText

      public com.google.common.util.concurrent.ListenableFuture<GenerateTextResponse> generateText(GenerateTextRequest request)
       Uses generative AI to generate text that can be used as assets in a
       campaign.
       List of thrown errors:
         [AuthenticationError]()
         [AuthorizationError]()
         [AssetGenerationError]()
         [HeaderError]()
         [InternalError]()
         [QuotaError]()
         [RequestError]()
       
    • generateImages

      public com.google.common.util.concurrent.ListenableFuture<GenerateImagesResponse> generateImages(GenerateImagesRequest request)
       Uses generative AI to generate images that can be used as assets in a
       campaign.
       List of thrown errors:
         [AuthenticationError]()
         [AuthorizationError]()
         [AssetGenerationError]()
         [HeaderError]()
         [InternalError]()
         [QuotaError]()
         [RequestError]()