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

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

The newest version!
package com.google.ads.googleads.v17.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/v17/services/smart_campaign_setting_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SmartCampaignSettingServiceGrpc { private SmartCampaignSettingServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.SmartCampaignSettingService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetSmartCampaignStatusMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSmartCampaignStatus", requestType = com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest.class, responseType = com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetSmartCampaignStatusMethod() { io.grpc.MethodDescriptor getGetSmartCampaignStatusMethod; if ((getGetSmartCampaignStatusMethod = SmartCampaignSettingServiceGrpc.getGetSmartCampaignStatusMethod) == null) { synchronized (SmartCampaignSettingServiceGrpc.class) { if ((getGetSmartCampaignStatusMethod = SmartCampaignSettingServiceGrpc.getGetSmartCampaignStatusMethod) == null) { SmartCampaignSettingServiceGrpc.getGetSmartCampaignStatusMethod = getGetSmartCampaignStatusMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSmartCampaignStatus")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse.getDefaultInstance())) .setSchemaDescriptor(new SmartCampaignSettingServiceMethodDescriptorSupplier("GetSmartCampaignStatus")) .build(); } } } return getGetSmartCampaignStatusMethod; } private static volatile io.grpc.MethodDescriptor getMutateSmartCampaignSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MutateSmartCampaignSettings", requestType = com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsRequest.class, responseType = com.google.ads.googleads.v17.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.v17.services.MutateSmartCampaignSettingsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.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 interface AsyncService { /** *
     * Returns the status of the requested Smart campaign.
     * 
*/ default void getSmartCampaignStatus(com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSmartCampaignStatusMethod(), responseObserver); } /** *
     * Updates Smart campaign settings for campaigns.
     * 
*/ default void mutateSmartCampaignSettings(com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateSmartCampaignSettingsMethod(), responseObserver); } } /** * Base class for the server implementation of the service SmartCampaignSettingService. *
   * Service to manage Smart campaign settings.
   * 
*/ public static abstract class SmartCampaignSettingServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SmartCampaignSettingServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SmartCampaignSettingService. *
   * 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); } /** *
     * Returns the status of the requested Smart campaign.
     * 
*/ public void getSmartCampaignStatus(com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSmartCampaignStatusMethod(), getCallOptions()), request, responseObserver); } /** *
     * Updates Smart campaign settings for campaigns.
     * 
*/ public void mutateSmartCampaignSettings(com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMutateSmartCampaignSettingsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service SmartCampaignSettingService. *
   * 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); } /** *
     * Returns the status of the requested Smart campaign.
     * 
*/ public com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse getSmartCampaignStatus(com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSmartCampaignStatusMethod(), getCallOptions(), request); } /** *
     * Updates Smart campaign settings for campaigns.
     * 
*/ public com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsResponse mutateSmartCampaignSettings(com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMutateSmartCampaignSettingsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service SmartCampaignSettingService. *
   * 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); } /** *
     * Returns the status of the requested Smart campaign.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSmartCampaignStatus( com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSmartCampaignStatusMethod(), getCallOptions()), request); } /** *
     * Updates Smart campaign settings for campaigns.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture mutateSmartCampaignSettings( com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMutateSmartCampaignSettingsMethod(), getCallOptions()), request); } } private static final int METHODID_GET_SMART_CAMPAIGN_STATUS = 0; private static final int METHODID_MUTATE_SMART_CAMPAIGN_SETTINGS = 1; 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_GET_SMART_CAMPAIGN_STATUS: serviceImpl.getSmartCampaignStatus((com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_MUTATE_SMART_CAMPAIGN_SETTINGS: serviceImpl.mutateSmartCampaignSettings((com.google.ads.googleads.v17.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(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetSmartCampaignStatusMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GetSmartCampaignStatusRequest, com.google.ads.googleads.v17.services.GetSmartCampaignStatusResponse>( service, METHODID_GET_SMART_CAMPAIGN_STATUS))) .addMethod( getMutateSmartCampaignSettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsRequest, com.google.ads.googleads.v17.services.MutateSmartCampaignSettingsResponse>( service, METHODID_MUTATE_SMART_CAMPAIGN_SETTINGS))) .build(); } 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.v17.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 java.lang.String methodName; SmartCampaignSettingServiceMethodDescriptorSupplier(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 (SmartCampaignSettingServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SmartCampaignSettingServiceFileDescriptorSupplier()) .addMethod(getGetSmartCampaignStatusMethod()) .addMethod(getMutateSmartCampaignSettingsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy