com.google.ads.googleads.v10.services.KeywordPlanServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v10 Show documentation
Show all versions of google-ads-stubs-v10 Show documentation
Stubs for GAAPI version google-ads-stubs-v10
The newest version!
package com.google.ads.googleads.v10.services;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Service to manage keyword plans.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v10/services/keyword_plan_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class KeywordPlanServiceGrpc {
private KeywordPlanServiceGrpc() {}
public static final String SERVICE_NAME = "google.ads.googleads.v10.services.KeywordPlanService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateKeywordPlansMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateKeywordPlans",
requestType = com.google.ads.googleads.v10.services.MutateKeywordPlansRequest.class,
responseType = com.google.ads.googleads.v10.services.MutateKeywordPlansResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateKeywordPlansMethod() {
io.grpc.MethodDescriptor getMutateKeywordPlansMethod;
if ((getMutateKeywordPlansMethod = KeywordPlanServiceGrpc.getMutateKeywordPlansMethod) == null) {
synchronized (KeywordPlanServiceGrpc.class) {
if ((getMutateKeywordPlansMethod = KeywordPlanServiceGrpc.getMutateKeywordPlansMethod) == null) {
KeywordPlanServiceGrpc.getMutateKeywordPlansMethod = getMutateKeywordPlansMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateKeywordPlans"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateKeywordPlansRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateKeywordPlansResponse.getDefaultInstance()))
.setSchemaDescriptor(new KeywordPlanServiceMethodDescriptorSupplier("MutateKeywordPlans"))
.build();
}
}
}
return getMutateKeywordPlansMethod;
}
private static volatile io.grpc.MethodDescriptor getGenerateForecastCurveMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateForecastCurve",
requestType = com.google.ads.googleads.v10.services.GenerateForecastCurveRequest.class,
responseType = com.google.ads.googleads.v10.services.GenerateForecastCurveResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGenerateForecastCurveMethod() {
io.grpc.MethodDescriptor getGenerateForecastCurveMethod;
if ((getGenerateForecastCurveMethod = KeywordPlanServiceGrpc.getGenerateForecastCurveMethod) == null) {
synchronized (KeywordPlanServiceGrpc.class) {
if ((getGenerateForecastCurveMethod = KeywordPlanServiceGrpc.getGenerateForecastCurveMethod) == null) {
KeywordPlanServiceGrpc.getGenerateForecastCurveMethod = getGenerateForecastCurveMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateForecastCurve"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateForecastCurveRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateForecastCurveResponse.getDefaultInstance()))
.setSchemaDescriptor(new KeywordPlanServiceMethodDescriptorSupplier("GenerateForecastCurve"))
.build();
}
}
}
return getGenerateForecastCurveMethod;
}
private static volatile io.grpc.MethodDescriptor getGenerateForecastTimeSeriesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateForecastTimeSeries",
requestType = com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest.class,
responseType = com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGenerateForecastTimeSeriesMethod() {
io.grpc.MethodDescriptor getGenerateForecastTimeSeriesMethod;
if ((getGenerateForecastTimeSeriesMethod = KeywordPlanServiceGrpc.getGenerateForecastTimeSeriesMethod) == null) {
synchronized (KeywordPlanServiceGrpc.class) {
if ((getGenerateForecastTimeSeriesMethod = KeywordPlanServiceGrpc.getGenerateForecastTimeSeriesMethod) == null) {
KeywordPlanServiceGrpc.getGenerateForecastTimeSeriesMethod = getGenerateForecastTimeSeriesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateForecastTimeSeries"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesResponse.getDefaultInstance()))
.setSchemaDescriptor(new KeywordPlanServiceMethodDescriptorSupplier("GenerateForecastTimeSeries"))
.build();
}
}
}
return getGenerateForecastTimeSeriesMethod;
}
private static volatile io.grpc.MethodDescriptor getGenerateForecastMetricsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateForecastMetrics",
requestType = com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest.class,
responseType = com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGenerateForecastMetricsMethod() {
io.grpc.MethodDescriptor getGenerateForecastMetricsMethod;
if ((getGenerateForecastMetricsMethod = KeywordPlanServiceGrpc.getGenerateForecastMetricsMethod) == null) {
synchronized (KeywordPlanServiceGrpc.class) {
if ((getGenerateForecastMetricsMethod = KeywordPlanServiceGrpc.getGenerateForecastMetricsMethod) == null) {
KeywordPlanServiceGrpc.getGenerateForecastMetricsMethod = getGenerateForecastMetricsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateForecastMetrics"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse.getDefaultInstance()))
.setSchemaDescriptor(new KeywordPlanServiceMethodDescriptorSupplier("GenerateForecastMetrics"))
.build();
}
}
}
return getGenerateForecastMetricsMethod;
}
private static volatile io.grpc.MethodDescriptor getGenerateHistoricalMetricsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GenerateHistoricalMetrics",
requestType = com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest.class,
responseType = com.google.ads.googleads.v10.services.GenerateHistoricalMetricsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGenerateHistoricalMetricsMethod() {
io.grpc.MethodDescriptor getGenerateHistoricalMetricsMethod;
if ((getGenerateHistoricalMetricsMethod = KeywordPlanServiceGrpc.getGenerateHistoricalMetricsMethod) == null) {
synchronized (KeywordPlanServiceGrpc.class) {
if ((getGenerateHistoricalMetricsMethod = KeywordPlanServiceGrpc.getGenerateHistoricalMetricsMethod) == null) {
KeywordPlanServiceGrpc.getGenerateHistoricalMetricsMethod = getGenerateHistoricalMetricsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateHistoricalMetrics"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.GenerateHistoricalMetricsResponse.getDefaultInstance()))
.setSchemaDescriptor(new KeywordPlanServiceMethodDescriptorSupplier("GenerateHistoricalMetrics"))
.build();
}
}
}
return getGenerateHistoricalMetricsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static KeywordPlanServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public KeywordPlanServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new KeywordPlanServiceStub(channel, callOptions);
}
};
return KeywordPlanServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static KeywordPlanServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public KeywordPlanServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new KeywordPlanServiceBlockingStub(channel, callOptions);
}
};
return KeywordPlanServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static KeywordPlanServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public KeywordPlanServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new KeywordPlanServiceFutureStub(channel, callOptions);
}
};
return KeywordPlanServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage keyword plans.
*
*/
public static abstract class KeywordPlanServiceImplBase implements io.grpc.BindableService {
/**
*
* Creates, updates, or removes keyword plans. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [MutateError]()
* [NewResourceCreationError]()
* [QuotaError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [StringLengthError]()
*
*/
public void mutateKeywordPlans(com.google.ads.googleads.v10.services.MutateKeywordPlansRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateKeywordPlansMethod(), responseObserver);
}
/**
*
* Returns the requested Keyword Plan forecast curve.
* Only the bidding strategy is considered for generating forecast curve.
* The bidding strategy value specified in the plan is ignored.
* To generate a forecast at a value specified in the plan, use
* KeywordPlanService.GenerateForecastMetrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateForecastCurve(com.google.ads.googleads.v10.services.GenerateForecastCurveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateForecastCurveMethod(), responseObserver);
}
/**
*
* Returns a forecast in the form of a time series for the Keyword Plan over
* the next 52 weeks.
* (1) Forecasts closer to the current date are generally more accurate than
* further out.
* (2) The forecast reflects seasonal trends using current and
* prior traffic patterns. The forecast period of the plan is ignored.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateForecastTimeSeries(com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateForecastTimeSeriesMethod(), responseObserver);
}
/**
*
* Returns the requested Keyword Plan forecasts.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateForecastMetrics(com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateForecastMetricsMethod(), responseObserver);
}
/**
*
* Returns the requested Keyword Plan historical metrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateHistoricalMetrics(com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateHistoricalMetricsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getMutateKeywordPlansMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.MutateKeywordPlansRequest,
com.google.ads.googleads.v10.services.MutateKeywordPlansResponse>(
this, METHODID_MUTATE_KEYWORD_PLANS)))
.addMethod(
getGenerateForecastCurveMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.GenerateForecastCurveRequest,
com.google.ads.googleads.v10.services.GenerateForecastCurveResponse>(
this, METHODID_GENERATE_FORECAST_CURVE)))
.addMethod(
getGenerateForecastTimeSeriesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest,
com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesResponse>(
this, METHODID_GENERATE_FORECAST_TIME_SERIES)))
.addMethod(
getGenerateForecastMetricsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest,
com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse>(
this, METHODID_GENERATE_FORECAST_METRICS)))
.addMethod(
getGenerateHistoricalMetricsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest,
com.google.ads.googleads.v10.services.GenerateHistoricalMetricsResponse>(
this, METHODID_GENERATE_HISTORICAL_METRICS)))
.build();
}
}
/**
*
* Service to manage keyword plans.
*
*/
public static final class KeywordPlanServiceStub extends io.grpc.stub.AbstractAsyncStub {
private KeywordPlanServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected KeywordPlanServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new KeywordPlanServiceStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes keyword plans. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [MutateError]()
* [NewResourceCreationError]()
* [QuotaError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [StringLengthError]()
*
*/
public void mutateKeywordPlans(com.google.ads.googleads.v10.services.MutateKeywordPlansRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateKeywordPlansMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the requested Keyword Plan forecast curve.
* Only the bidding strategy is considered for generating forecast curve.
* The bidding strategy value specified in the plan is ignored.
* To generate a forecast at a value specified in the plan, use
* KeywordPlanService.GenerateForecastMetrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateForecastCurve(com.google.ads.googleads.v10.services.GenerateForecastCurveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateForecastCurveMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns a forecast in the form of a time series for the Keyword Plan over
* the next 52 weeks.
* (1) Forecasts closer to the current date are generally more accurate than
* further out.
* (2) The forecast reflects seasonal trends using current and
* prior traffic patterns. The forecast period of the plan is ignored.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateForecastTimeSeries(com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateForecastTimeSeriesMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the requested Keyword Plan forecasts.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateForecastMetrics(com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateForecastMetricsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns the requested Keyword Plan historical metrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void generateHistoricalMetrics(com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGenerateHistoricalMetricsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Service to manage keyword plans.
*
*/
public static final class KeywordPlanServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private KeywordPlanServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected KeywordPlanServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new KeywordPlanServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes keyword plans. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [MutateError]()
* [NewResourceCreationError]()
* [QuotaError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [StringLengthError]()
*
*/
public com.google.ads.googleads.v10.services.MutateKeywordPlansResponse mutateKeywordPlans(com.google.ads.googleads.v10.services.MutateKeywordPlansRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateKeywordPlansMethod(), getCallOptions(), request);
}
/**
*
* Returns the requested Keyword Plan forecast curve.
* Only the bidding strategy is considered for generating forecast curve.
* The bidding strategy value specified in the plan is ignored.
* To generate a forecast at a value specified in the plan, use
* KeywordPlanService.GenerateForecastMetrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v10.services.GenerateForecastCurveResponse generateForecastCurve(com.google.ads.googleads.v10.services.GenerateForecastCurveRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateForecastCurveMethod(), getCallOptions(), request);
}
/**
*
* Returns a forecast in the form of a time series for the Keyword Plan over
* the next 52 weeks.
* (1) Forecasts closer to the current date are generally more accurate than
* further out.
* (2) The forecast reflects seasonal trends using current and
* prior traffic patterns. The forecast period of the plan is ignored.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesResponse generateForecastTimeSeries(com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateForecastTimeSeriesMethod(), getCallOptions(), request);
}
/**
*
* Returns the requested Keyword Plan forecasts.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v10.services.GenerateForecastMetricsResponse generateForecastMetrics(com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateForecastMetricsMethod(), getCallOptions(), request);
}
/**
*
* Returns the requested Keyword Plan historical metrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v10.services.GenerateHistoricalMetricsResponse generateHistoricalMetrics(com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGenerateHistoricalMetricsMethod(), getCallOptions(), request);
}
}
/**
*
* Service to manage keyword plans.
*
*/
public static final class KeywordPlanServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private KeywordPlanServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected KeywordPlanServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new KeywordPlanServiceFutureStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes keyword plans. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [MutateError]()
* [NewResourceCreationError]()
* [QuotaError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [StringLengthError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateKeywordPlans(
com.google.ads.googleads.v10.services.MutateKeywordPlansRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateKeywordPlansMethod(), getCallOptions()), request);
}
/**
*
* Returns the requested Keyword Plan forecast curve.
* Only the bidding strategy is considered for generating forecast curve.
* The bidding strategy value specified in the plan is ignored.
* To generate a forecast at a value specified in the plan, use
* KeywordPlanService.GenerateForecastMetrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture generateForecastCurve(
com.google.ads.googleads.v10.services.GenerateForecastCurveRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateForecastCurveMethod(), getCallOptions()), request);
}
/**
*
* Returns a forecast in the form of a time series for the Keyword Plan over
* the next 52 weeks.
* (1) Forecasts closer to the current date are generally more accurate than
* further out.
* (2) The forecast reflects seasonal trends using current and
* prior traffic patterns. The forecast period of the plan is ignored.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture generateForecastTimeSeries(
com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateForecastTimeSeriesMethod(), getCallOptions()), request);
}
/**
*
* Returns the requested Keyword Plan forecasts.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture generateForecastMetrics(
com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateForecastMetricsMethod(), getCallOptions()), request);
}
/**
*
* Returns the requested Keyword Plan historical metrics.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [KeywordPlanError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture generateHistoricalMetrics(
com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGenerateHistoricalMetricsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_KEYWORD_PLANS = 0;
private static final int METHODID_GENERATE_FORECAST_CURVE = 1;
private static final int METHODID_GENERATE_FORECAST_TIME_SERIES = 2;
private static final int METHODID_GENERATE_FORECAST_METRICS = 3;
private static final int METHODID_GENERATE_HISTORICAL_METRICS = 4;
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 KeywordPlanServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(KeywordPlanServiceImplBase 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_MUTATE_KEYWORD_PLANS:
serviceImpl.mutateKeywordPlans((com.google.ads.googleads.v10.services.MutateKeywordPlansRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GENERATE_FORECAST_CURVE:
serviceImpl.generateForecastCurve((com.google.ads.googleads.v10.services.GenerateForecastCurveRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GENERATE_FORECAST_TIME_SERIES:
serviceImpl.generateForecastTimeSeries((com.google.ads.googleads.v10.services.GenerateForecastTimeSeriesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GENERATE_FORECAST_METRICS:
serviceImpl.generateForecastMetrics((com.google.ads.googleads.v10.services.GenerateForecastMetricsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GENERATE_HISTORICAL_METRICS:
serviceImpl.generateHistoricalMetrics((com.google.ads.googleads.v10.services.GenerateHistoricalMetricsRequest) 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 KeywordPlanServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
KeywordPlanServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v10.services.KeywordPlanServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("KeywordPlanService");
}
}
private static final class KeywordPlanServiceFileDescriptorSupplier
extends KeywordPlanServiceBaseDescriptorSupplier {
KeywordPlanServiceFileDescriptorSupplier() {}
}
private static final class KeywordPlanServiceMethodDescriptorSupplier
extends KeywordPlanServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
KeywordPlanServiceMethodDescriptorSupplier(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 (KeywordPlanServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new KeywordPlanServiceFileDescriptorSupplier())
.addMethod(getMutateKeywordPlansMethod())
.addMethod(getGenerateForecastCurveMethod())
.addMethod(getGenerateForecastTimeSeriesMethod())
.addMethod(getGenerateForecastMetricsMethod())
.addMethod(getGenerateHistoricalMetricsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy