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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to generate keyword ideas.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/keyword_plan_idea_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class KeywordPlanIdeaServiceGrpc { private KeywordPlanIdeaServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.KeywordPlanIdeaService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGenerateKeywordIdeasMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateKeywordIdeas", requestType = com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateKeywordIdeaResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateKeywordIdeasMethod() { io.grpc.MethodDescriptor getGenerateKeywordIdeasMethod; if ((getGenerateKeywordIdeasMethod = KeywordPlanIdeaServiceGrpc.getGenerateKeywordIdeasMethod) == null) { synchronized (KeywordPlanIdeaServiceGrpc.class) { if ((getGenerateKeywordIdeasMethod = KeywordPlanIdeaServiceGrpc.getGenerateKeywordIdeasMethod) == null) { KeywordPlanIdeaServiceGrpc.getGenerateKeywordIdeasMethod = getGenerateKeywordIdeasMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateKeywordIdeas")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateKeywordIdeaResponse.getDefaultInstance())) .setSchemaDescriptor(new KeywordPlanIdeaServiceMethodDescriptorSupplier("GenerateKeywordIdeas")) .build(); } } } return getGenerateKeywordIdeasMethod; } private static volatile io.grpc.MethodDescriptor getGenerateKeywordHistoricalMetricsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateKeywordHistoricalMetrics", requestType = com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateKeywordHistoricalMetricsMethod() { io.grpc.MethodDescriptor getGenerateKeywordHistoricalMetricsMethod; if ((getGenerateKeywordHistoricalMetricsMethod = KeywordPlanIdeaServiceGrpc.getGenerateKeywordHistoricalMetricsMethod) == null) { synchronized (KeywordPlanIdeaServiceGrpc.class) { if ((getGenerateKeywordHistoricalMetricsMethod = KeywordPlanIdeaServiceGrpc.getGenerateKeywordHistoricalMetricsMethod) == null) { KeywordPlanIdeaServiceGrpc.getGenerateKeywordHistoricalMetricsMethod = getGenerateKeywordHistoricalMetricsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateKeywordHistoricalMetrics")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsResponse.getDefaultInstance())) .setSchemaDescriptor(new KeywordPlanIdeaServiceMethodDescriptorSupplier("GenerateKeywordHistoricalMetrics")) .build(); } } } return getGenerateKeywordHistoricalMetricsMethod; } private static volatile io.grpc.MethodDescriptor getGenerateAdGroupThemesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateAdGroupThemes", requestType = com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateAdGroupThemesMethod() { io.grpc.MethodDescriptor getGenerateAdGroupThemesMethod; if ((getGenerateAdGroupThemesMethod = KeywordPlanIdeaServiceGrpc.getGenerateAdGroupThemesMethod) == null) { synchronized (KeywordPlanIdeaServiceGrpc.class) { if ((getGenerateAdGroupThemesMethod = KeywordPlanIdeaServiceGrpc.getGenerateAdGroupThemesMethod) == null) { KeywordPlanIdeaServiceGrpc.getGenerateAdGroupThemesMethod = getGenerateAdGroupThemesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAdGroupThemes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse.getDefaultInstance())) .setSchemaDescriptor(new KeywordPlanIdeaServiceMethodDescriptorSupplier("GenerateAdGroupThemes")) .build(); } } } return getGenerateAdGroupThemesMethod; } private static volatile io.grpc.MethodDescriptor getGenerateKeywordForecastMetricsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GenerateKeywordForecastMetrics", requestType = com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.class, responseType = com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGenerateKeywordForecastMetricsMethod() { io.grpc.MethodDescriptor getGenerateKeywordForecastMetricsMethod; if ((getGenerateKeywordForecastMetricsMethod = KeywordPlanIdeaServiceGrpc.getGenerateKeywordForecastMetricsMethod) == null) { synchronized (KeywordPlanIdeaServiceGrpc.class) { if ((getGenerateKeywordForecastMetricsMethod = KeywordPlanIdeaServiceGrpc.getGenerateKeywordForecastMetricsMethod) == null) { KeywordPlanIdeaServiceGrpc.getGenerateKeywordForecastMetricsMethod = getGenerateKeywordForecastMetricsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateKeywordForecastMetrics")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsResponse.getDefaultInstance())) .setSchemaDescriptor(new KeywordPlanIdeaServiceMethodDescriptorSupplier("GenerateKeywordForecastMetrics")) .build(); } } } return getGenerateKeywordForecastMetricsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static KeywordPlanIdeaServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public KeywordPlanIdeaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeywordPlanIdeaServiceStub(channel, callOptions); } }; return KeywordPlanIdeaServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static KeywordPlanIdeaServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public KeywordPlanIdeaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeywordPlanIdeaServiceBlockingStub(channel, callOptions); } }; return KeywordPlanIdeaServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static KeywordPlanIdeaServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public KeywordPlanIdeaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeywordPlanIdeaServiceFutureStub(channel, callOptions); } }; return KeywordPlanIdeaServiceFutureStub.newStub(factory, channel); } /** *
   * Service to generate keyword ideas.
   * 
*/ public interface AsyncService { /** *
     * Returns a list of keyword ideas.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [KeywordPlanIdeaError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void generateKeywordIdeas(com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateKeywordIdeasMethod(), responseObserver); } /** *
     * Returns a list of keyword historical metrics.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void generateKeywordHistoricalMetrics(com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateKeywordHistoricalMetricsMethod(), responseObserver); } /** *
     * Returns a list of suggested AdGroups and suggested modifications
     * (text, match type) for the given keywords.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void generateAdGroupThemes(com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAdGroupThemesMethod(), responseObserver); } /** *
     * Returns metrics (such as impressions, clicks, total cost) of a keyword
     * forecast for the given campaign.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void generateKeywordForecastMetrics(com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateKeywordForecastMetricsMethod(), responseObserver); } } /** * Base class for the server implementation of the service KeywordPlanIdeaService. *
   * Service to generate keyword ideas.
   * 
*/ public static abstract class KeywordPlanIdeaServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return KeywordPlanIdeaServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service KeywordPlanIdeaService. *
   * Service to generate keyword ideas.
   * 
*/ public static final class KeywordPlanIdeaServiceStub extends io.grpc.stub.AbstractAsyncStub { private KeywordPlanIdeaServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KeywordPlanIdeaServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeywordPlanIdeaServiceStub(channel, callOptions); } /** *
     * Returns a list of keyword ideas.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [KeywordPlanIdeaError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void generateKeywordIdeas(com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateKeywordIdeasMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a list of keyword historical metrics.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void generateKeywordHistoricalMetrics(com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateKeywordHistoricalMetricsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns a list of suggested AdGroups and suggested modifications
     * (text, match type) for the given keywords.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void generateAdGroupThemes(com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateAdGroupThemesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns metrics (such as impressions, clicks, total cost) of a keyword
     * forecast for the given campaign.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void generateKeywordForecastMetrics(com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGenerateKeywordForecastMetricsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service KeywordPlanIdeaService. *
   * Service to generate keyword ideas.
   * 
*/ public static final class KeywordPlanIdeaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private KeywordPlanIdeaServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KeywordPlanIdeaServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeywordPlanIdeaServiceBlockingStub(channel, callOptions); } /** *
     * Returns a list of keyword ideas.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [KeywordPlanIdeaError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateKeywordIdeaResponse generateKeywordIdeas(com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateKeywordIdeasMethod(), getCallOptions(), request); } /** *
     * Returns a list of keyword historical metrics.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsResponse generateKeywordHistoricalMetrics(com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateKeywordHistoricalMetricsMethod(), getCallOptions(), request); } /** *
     * Returns a list of suggested AdGroups and suggested modifications
     * (text, match type) for the given keywords.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse generateAdGroupThemes(com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateAdGroupThemesMethod(), getCallOptions(), request); } /** *
     * Returns metrics (such as impressions, clicks, total cost) of a keyword
     * forecast for the given campaign.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsResponse generateKeywordForecastMetrics(com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGenerateKeywordForecastMetricsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service KeywordPlanIdeaService. *
   * Service to generate keyword ideas.
   * 
*/ public static final class KeywordPlanIdeaServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private KeywordPlanIdeaServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KeywordPlanIdeaServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KeywordPlanIdeaServiceFutureStub(channel, callOptions); } /** *
     * Returns a list of keyword ideas.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [KeywordPlanIdeaError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateKeywordIdeas( com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateKeywordIdeasMethod(), getCallOptions()), request); } /** *
     * Returns a list of keyword historical metrics.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateKeywordHistoricalMetrics( com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateKeywordHistoricalMetricsMethod(), getCallOptions()), request); } /** *
     * Returns a list of suggested AdGroups and suggested modifications
     * (text, match type) for the given keywords.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateAdGroupThemes( com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateAdGroupThemesMethod(), getCallOptions()), request); } /** *
     * Returns metrics (such as impressions, clicks, total cost) of a keyword
     * forecast for the given campaign.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [CollectionSizeError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture generateKeywordForecastMetrics( com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGenerateKeywordForecastMetricsMethod(), getCallOptions()), request); } } private static final int METHODID_GENERATE_KEYWORD_IDEAS = 0; private static final int METHODID_GENERATE_KEYWORD_HISTORICAL_METRICS = 1; private static final int METHODID_GENERATE_AD_GROUP_THEMES = 2; private static final int METHODID_GENERATE_KEYWORD_FORECAST_METRICS = 3; 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_GENERATE_KEYWORD_IDEAS: serviceImpl.generateKeywordIdeas((com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_KEYWORD_HISTORICAL_METRICS: serviceImpl.generateKeywordHistoricalMetrics((com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_AD_GROUP_THEMES: serviceImpl.generateAdGroupThemes((com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GENERATE_KEYWORD_FORECAST_METRICS: serviceImpl.generateKeywordForecastMetrics((com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest) 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( getGenerateKeywordIdeasMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateKeywordIdeasRequest, com.google.ads.googleads.v17.services.GenerateKeywordIdeaResponse>( service, METHODID_GENERATE_KEYWORD_IDEAS))) .addMethod( getGenerateKeywordHistoricalMetricsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsRequest, com.google.ads.googleads.v17.services.GenerateKeywordHistoricalMetricsResponse>( service, METHODID_GENERATE_KEYWORD_HISTORICAL_METRICS))) .addMethod( getGenerateAdGroupThemesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateAdGroupThemesRequest, com.google.ads.googleads.v17.services.GenerateAdGroupThemesResponse>( service, METHODID_GENERATE_AD_GROUP_THEMES))) .addMethod( getGenerateKeywordForecastMetricsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsRequest, com.google.ads.googleads.v17.services.GenerateKeywordForecastMetricsResponse>( service, METHODID_GENERATE_KEYWORD_FORECAST_METRICS))) .build(); } private static abstract class KeywordPlanIdeaServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { KeywordPlanIdeaServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.KeywordPlanIdeaServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("KeywordPlanIdeaService"); } } private static final class KeywordPlanIdeaServiceFileDescriptorSupplier extends KeywordPlanIdeaServiceBaseDescriptorSupplier { KeywordPlanIdeaServiceFileDescriptorSupplier() {} } private static final class KeywordPlanIdeaServiceMethodDescriptorSupplier extends KeywordPlanIdeaServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; KeywordPlanIdeaServiceMethodDescriptorSupplier(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 (KeywordPlanIdeaServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new KeywordPlanIdeaServiceFileDescriptorSupplier()) .addMethod(getGenerateKeywordIdeasMethod()) .addMethod(getGenerateKeywordHistoricalMetricsMethod()) .addMethod(getGenerateAdGroupThemesMethod()) .addMethod(getGenerateKeywordForecastMetricsMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy