com.google.ads.googleads.v10.services.SmartCampaignSettingServiceGrpc Maven / Gradle / Ivy
package com.google.ads.googleads.v10.services;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Service to manage Smart campaign settings.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v10/services/smart_campaign_setting_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SmartCampaignSettingServiceGrpc {
private SmartCampaignSettingServiceGrpc() {}
public static final String SERVICE_NAME = "google.ads.googleads.v10.services.SmartCampaignSettingService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateSmartCampaignSettingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateSmartCampaignSettings",
requestType = com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest.class,
responseType = com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateSmartCampaignSettingsMethod() {
io.grpc.MethodDescriptor getMutateSmartCampaignSettingsMethod;
if ((getMutateSmartCampaignSettingsMethod = SmartCampaignSettingServiceGrpc.getMutateSmartCampaignSettingsMethod) == null) {
synchronized (SmartCampaignSettingServiceGrpc.class) {
if ((getMutateSmartCampaignSettingsMethod = SmartCampaignSettingServiceGrpc.getMutateSmartCampaignSettingsMethod) == null) {
SmartCampaignSettingServiceGrpc.getMutateSmartCampaignSettingsMethod = getMutateSmartCampaignSettingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateSmartCampaignSettings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsResponse.getDefaultInstance()))
.setSchemaDescriptor(new SmartCampaignSettingServiceMethodDescriptorSupplier("MutateSmartCampaignSettings"))
.build();
}
}
}
return getMutateSmartCampaignSettingsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SmartCampaignSettingServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartCampaignSettingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSettingServiceStub(channel, callOptions);
}
};
return SmartCampaignSettingServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SmartCampaignSettingServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartCampaignSettingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSettingServiceBlockingStub(channel, callOptions);
}
};
return SmartCampaignSettingServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SmartCampaignSettingServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SmartCampaignSettingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSettingServiceFutureStub(channel, callOptions);
}
};
return SmartCampaignSettingServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage Smart campaign settings.
*
*/
public static abstract class SmartCampaignSettingServiceImplBase implements io.grpc.BindableService {
/**
*
* Updates Smart campaign settings for campaigns.
*
*/
public void mutateSmartCampaignSettings(com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateSmartCampaignSettingsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getMutateSmartCampaignSettingsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest,
com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsResponse>(
this, METHODID_MUTATE_SMART_CAMPAIGN_SETTINGS)))
.build();
}
}
/**
*
* Service to manage Smart campaign settings.
*
*/
public static final class SmartCampaignSettingServiceStub extends io.grpc.stub.AbstractAsyncStub {
private SmartCampaignSettingServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartCampaignSettingServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSettingServiceStub(channel, callOptions);
}
/**
*
* Updates Smart campaign settings for campaigns.
*
*/
public void mutateSmartCampaignSettings(com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateSmartCampaignSettingsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Service to manage Smart campaign settings.
*
*/
public static final class SmartCampaignSettingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SmartCampaignSettingServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartCampaignSettingServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSettingServiceBlockingStub(channel, callOptions);
}
/**
*
* Updates Smart campaign settings for campaigns.
*
*/
public com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsResponse mutateSmartCampaignSettings(com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateSmartCampaignSettingsMethod(), getCallOptions(), request);
}
}
/**
*
* Service to manage Smart campaign settings.
*
*/
public static final class SmartCampaignSettingServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private SmartCampaignSettingServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SmartCampaignSettingServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SmartCampaignSettingServiceFutureStub(channel, callOptions);
}
/**
*
* Updates Smart campaign settings for campaigns.
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateSmartCampaignSettings(
com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateSmartCampaignSettingsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_SMART_CAMPAIGN_SETTINGS = 0;
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 SmartCampaignSettingServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(SmartCampaignSettingServiceImplBase 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_SMART_CAMPAIGN_SETTINGS:
serviceImpl.mutateSmartCampaignSettings((com.google.ads.googleads.v10.services.MutateSmartCampaignSettingsRequest) 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 SmartCampaignSettingServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SmartCampaignSettingServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v10.services.SmartCampaignSettingServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SmartCampaignSettingService");
}
}
private static final class SmartCampaignSettingServiceFileDescriptorSupplier
extends SmartCampaignSettingServiceBaseDescriptorSupplier {
SmartCampaignSettingServiceFileDescriptorSupplier() {}
}
private static final class SmartCampaignSettingServiceMethodDescriptorSupplier
extends SmartCampaignSettingServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
SmartCampaignSettingServiceMethodDescriptorSupplier(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 (SmartCampaignSettingServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SmartCampaignSettingServiceFileDescriptorSupplier())
.addMethod(getMutateSmartCampaignSettingsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy