Class AssetGenerationServiceGrpc.AssetGenerationServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<AssetGenerationServiceGrpc.AssetGenerationServiceStub>
com.google.ads.googleads.v22.services.AssetGenerationServiceGrpc.AssetGenerationServiceStub
- Enclosing class:
- AssetGenerationServiceGrpc
public static final class AssetGenerationServiceGrpc.AssetGenerationServiceStub
extends io.grpc.stub.AbstractAsyncStub<AssetGenerationServiceGrpc.AssetGenerationServiceStub>
A stub to allow clients to do asynchronous 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 TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidgenerateImages(GenerateImagesRequest request, io.grpc.stub.StreamObserver<GenerateImagesResponse> responseObserver) Uses generative AI to generate images that can be used as assets in a campaign.voidgenerateText(GenerateTextRequest request, io.grpc.stub.StreamObserver<GenerateTextResponse> responseObserver) Uses generative AI to generate text that can be used as assets in a campaign.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected AssetGenerationServiceGrpc.AssetGenerationServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<AssetGenerationServiceGrpc.AssetGenerationServiceStub>
-
generateText
public void generateText(GenerateTextRequest request, io.grpc.stub.StreamObserver<GenerateTextResponse> responseObserver) 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 void generateImages(GenerateImagesRequest request, io.grpc.stub.StreamObserver<GenerateImagesResponse> responseObserver) 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]()
-