com.google.ads.googleads.v17.services.SmartCampaignSuggestServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-ads-stubs-v17 Show documentation
Show all versions of google-ads-stubs-v17 Show documentation
Stubs for GAAPI version google-ads-stubs-v17
The newest version!
package com.google.ads.googleads.v17.services;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Service to get suggestions for Smart Campaigns.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v17/services/smart_campaign_suggest_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SmartCampaignSuggestServiceGrpc {
private SmartCampaignSuggestServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.SmartCampaignSuggestService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getSuggestSmartCampaignBudgetOptionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SuggestSmartCampaignBudgetOptions",
requestType = com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest.class,
responseType = com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSuggestSmartCampaignBudgetOptionsMethod() {
io.grpc.MethodDescriptor getSuggestSmartCampaignBudgetOptionsMethod;
if ((getSuggestSmartCampaignBudgetOptionsMethod = SmartCampaignSuggestServiceGrpc.getSuggestSmartCampaignBudgetOptionsMethod) == null) {
synchronized (SmartCampaignSuggestServiceGrpc.class) {
if ((getSuggestSmartCampaignBudgetOptionsMethod = SmartCampaignSuggestServiceGrpc.getSuggestSmartCampaignBudgetOptionsMethod) == null) {
SmartCampaignSuggestServiceGrpc.getSuggestSmartCampaignBudgetOptionsMethod = getSuggestSmartCampaignBudgetOptionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestSmartCampaignBudgetOptions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new SmartCampaignSuggestServiceMethodDescriptorSupplier("SuggestSmartCampaignBudgetOptions"))
.build();
}
}
}
return getSuggestSmartCampaignBudgetOptionsMethod;
}
private static volatile io.grpc.MethodDescriptor getSuggestSmartCampaignAdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SuggestSmartCampaignAd",
requestType = com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest.class,
responseType = com.google.ads.googleads.v17.services.SuggestSmartCampaignAdResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSuggestSmartCampaignAdMethod() {
io.grpc.MethodDescriptor getSuggestSmartCampaignAdMethod;
if ((getSuggestSmartCampaignAdMethod = SmartCampaignSuggestServiceGrpc.getSuggestSmartCampaignAdMethod) == null) {
synchronized (SmartCampaignSuggestServiceGrpc.class) {
if ((getSuggestSmartCampaignAdMethod = SmartCampaignSuggestServiceGrpc.getSuggestSmartCampaignAdMethod) == null) {
SmartCampaignSuggestServiceGrpc.getSuggestSmartCampaignAdMethod = getSuggestSmartCampaignAdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestSmartCampaignAd"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.SuggestSmartCampaignAdResponse.getDefaultInstance()))
.setSchemaDescriptor(new SmartCampaignSuggestServiceMethodDescriptorSupplier("SuggestSmartCampaignAd"))
.build();
}
}
}
return getSuggestSmartCampaignAdMethod;
}
private static volatile io.grpc.MethodDescriptor getSuggestKeywordThemesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SuggestKeywordThemes",
requestType = com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest.class,
responseType = com.google.ads.googleads.v17.services.SuggestKeywordThemesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSuggestKeywordThemesMethod() {
io.grpc.MethodDescriptor getSuggestKeywordThemesMethod;
if ((getSuggestKeywordThemesMethod = SmartCampaignSuggestServiceGrpc.getSuggestKeywordThemesMethod) == null) {
synchronized (SmartCampaignSuggestServiceGrpc.class) {
if ((getSuggestKeywordThemesMethod = SmartCampaignSuggestServiceGrpc.getSuggestKeywordThemesMethod) == null) {
SmartCampaignSuggestServiceGrpc.getSuggestKeywordThemesMethod = getSuggestKeywordThemesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SuggestKeywordThemes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.SuggestKeywordThemesResponse.getDefaultInstance()))
.setSchemaDescriptor(new SmartCampaignSuggestServiceMethodDescriptorSupplier("SuggestKeywordThemes"))
.build();
}
}
}
return getSuggestKeywordThemesMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SmartCampaignSuggestServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartCampaignSuggestServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSuggestServiceStub(channel, callOptions);
}
};
return SmartCampaignSuggestServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SmartCampaignSuggestServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartCampaignSuggestServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSuggestServiceBlockingStub(channel, callOptions);
}
};
return SmartCampaignSuggestServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SmartCampaignSuggestServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartCampaignSuggestServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSuggestServiceFutureStub(channel, callOptions);
}
};
return SmartCampaignSuggestServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to get suggestions for Smart Campaigns.
*
*/
public interface AsyncService {
/**
*
* Returns BudgetOption suggestions.
*
*/
default void suggestSmartCampaignBudgetOptions(com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSuggestSmartCampaignBudgetOptionsMethod(), responseObserver);
}
/**
*
* Suggests a Smart campaign ad compatible with the Ad family of resources,
* based on data points such as targeting and the business to advertise.
*
*/
default void suggestSmartCampaignAd(com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSuggestSmartCampaignAdMethod(), responseObserver);
}
/**
*
* Suggests keyword themes to advertise on.
*
*/
default void suggestKeywordThemes(com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSuggestKeywordThemesMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service SmartCampaignSuggestService.
*
* Service to get suggestions for Smart Campaigns.
*
*/
public static abstract class SmartCampaignSuggestServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return SmartCampaignSuggestServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service SmartCampaignSuggestService.
*
* Service to get suggestions for Smart Campaigns.
*
*/
public static final class SmartCampaignSuggestServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private SmartCampaignSuggestServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartCampaignSuggestServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSuggestServiceStub(channel, callOptions);
}
/**
*
* Returns BudgetOption suggestions.
*
*/
public void suggestSmartCampaignBudgetOptions(com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSuggestSmartCampaignBudgetOptionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Suggests a Smart campaign ad compatible with the Ad family of resources,
* based on data points such as targeting and the business to advertise.
*
*/
public void suggestSmartCampaignAd(com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSuggestSmartCampaignAdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Suggests keyword themes to advertise on.
*
*/
public void suggestKeywordThemes(com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSuggestKeywordThemesMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service SmartCampaignSuggestService.
*
* Service to get suggestions for Smart Campaigns.
*
*/
public static final class SmartCampaignSuggestServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private SmartCampaignSuggestServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartCampaignSuggestServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSuggestServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns BudgetOption suggestions.
*
*/
public com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsResponse suggestSmartCampaignBudgetOptions(com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSuggestSmartCampaignBudgetOptionsMethod(), getCallOptions(), request);
}
/**
*
* Suggests a Smart campaign ad compatible with the Ad family of resources,
* based on data points such as targeting and the business to advertise.
*
*/
public com.google.ads.googleads.v17.services.SuggestSmartCampaignAdResponse suggestSmartCampaignAd(com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSuggestSmartCampaignAdMethod(), getCallOptions(), request);
}
/**
*
* Suggests keyword themes to advertise on.
*
*/
public com.google.ads.googleads.v17.services.SuggestKeywordThemesResponse suggestKeywordThemes(com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSuggestKeywordThemesMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service SmartCampaignSuggestService.
*
* Service to get suggestions for Smart Campaigns.
*
*/
public static final class SmartCampaignSuggestServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private SmartCampaignSuggestServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartCampaignSuggestServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSuggestServiceFutureStub(channel, callOptions);
}
/**
*
* Returns BudgetOption suggestions.
*
*/
public com.google.common.util.concurrent.ListenableFuture suggestSmartCampaignBudgetOptions(
com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSuggestSmartCampaignBudgetOptionsMethod(), getCallOptions()), request);
}
/**
*
* Suggests a Smart campaign ad compatible with the Ad family of resources,
* based on data points such as targeting and the business to advertise.
*
*/
public com.google.common.util.concurrent.ListenableFuture suggestSmartCampaignAd(
com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSuggestSmartCampaignAdMethod(), getCallOptions()), request);
}
/**
*
* Suggests keyword themes to advertise on.
*
*/
public com.google.common.util.concurrent.ListenableFuture suggestKeywordThemes(
com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSuggestKeywordThemesMethod(), getCallOptions()), request);
}
}
private static final int METHODID_SUGGEST_SMART_CAMPAIGN_BUDGET_OPTIONS = 0;
private static final int METHODID_SUGGEST_SMART_CAMPAIGN_AD = 1;
private static final int METHODID_SUGGEST_KEYWORD_THEMES = 2;
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_SUGGEST_SMART_CAMPAIGN_BUDGET_OPTIONS:
serviceImpl.suggestSmartCampaignBudgetOptions((com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SUGGEST_SMART_CAMPAIGN_AD:
serviceImpl.suggestSmartCampaignAd((com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SUGGEST_KEYWORD_THEMES:
serviceImpl.suggestKeywordThemes((com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest) 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(
getSuggestSmartCampaignBudgetOptionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsRequest,
com.google.ads.googleads.v17.services.SuggestSmartCampaignBudgetOptionsResponse>(
service, METHODID_SUGGEST_SMART_CAMPAIGN_BUDGET_OPTIONS)))
.addMethod(
getSuggestSmartCampaignAdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.SuggestSmartCampaignAdRequest,
com.google.ads.googleads.v17.services.SuggestSmartCampaignAdResponse>(
service, METHODID_SUGGEST_SMART_CAMPAIGN_AD)))
.addMethod(
getSuggestKeywordThemesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.SuggestKeywordThemesRequest,
com.google.ads.googleads.v17.services.SuggestKeywordThemesResponse>(
service, METHODID_SUGGEST_KEYWORD_THEMES)))
.build();
}
private static abstract class SmartCampaignSuggestServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SmartCampaignSuggestServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v17.services.SmartCampaignSuggestServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SmartCampaignSuggestService");
}
}
private static final class SmartCampaignSuggestServiceFileDescriptorSupplier
extends SmartCampaignSuggestServiceBaseDescriptorSupplier {
SmartCampaignSuggestServiceFileDescriptorSupplier() {}
}
private static final class SmartCampaignSuggestServiceMethodDescriptorSupplier
extends SmartCampaignSuggestServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
SmartCampaignSuggestServiceMethodDescriptorSupplier(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 (SmartCampaignSuggestServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SmartCampaignSuggestServiceFileDescriptorSupplier())
.addMethod(getSuggestSmartCampaignBudgetOptionsMethod())
.addMethod(getSuggestSmartCampaignAdMethod())
.addMethod(getSuggestKeywordThemesMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy