com.google.ads.googleads.v17.services.CampaignDraftServiceGrpc 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 manage campaign drafts.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v17/services/campaign_draft_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class CampaignDraftServiceGrpc {
private CampaignDraftServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.CampaignDraftService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateCampaignDraftsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateCampaignDrafts",
requestType = com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest.class,
responseType = com.google.ads.googleads.v17.services.MutateCampaignDraftsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateCampaignDraftsMethod() {
io.grpc.MethodDescriptor getMutateCampaignDraftsMethod;
if ((getMutateCampaignDraftsMethod = CampaignDraftServiceGrpc.getMutateCampaignDraftsMethod) == null) {
synchronized (CampaignDraftServiceGrpc.class) {
if ((getMutateCampaignDraftsMethod = CampaignDraftServiceGrpc.getMutateCampaignDraftsMethod) == null) {
CampaignDraftServiceGrpc.getMutateCampaignDraftsMethod = getMutateCampaignDraftsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateCampaignDrafts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.MutateCampaignDraftsResponse.getDefaultInstance()))
.setSchemaDescriptor(new CampaignDraftServiceMethodDescriptorSupplier("MutateCampaignDrafts"))
.build();
}
}
}
return getMutateCampaignDraftsMethod;
}
private static volatile io.grpc.MethodDescriptor getPromoteCampaignDraftMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PromoteCampaignDraft",
requestType = com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPromoteCampaignDraftMethod() {
io.grpc.MethodDescriptor getPromoteCampaignDraftMethod;
if ((getPromoteCampaignDraftMethod = CampaignDraftServiceGrpc.getPromoteCampaignDraftMethod) == null) {
synchronized (CampaignDraftServiceGrpc.class) {
if ((getPromoteCampaignDraftMethod = CampaignDraftServiceGrpc.getPromoteCampaignDraftMethod) == null) {
CampaignDraftServiceGrpc.getPromoteCampaignDraftMethod = getPromoteCampaignDraftMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PromoteCampaignDraft"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(new CampaignDraftServiceMethodDescriptorSupplier("PromoteCampaignDraft"))
.build();
}
}
}
return getPromoteCampaignDraftMethod;
}
private static volatile io.grpc.MethodDescriptor getListCampaignDraftAsyncErrorsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListCampaignDraftAsyncErrors",
requestType = com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest.class,
responseType = com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListCampaignDraftAsyncErrorsMethod() {
io.grpc.MethodDescriptor getListCampaignDraftAsyncErrorsMethod;
if ((getListCampaignDraftAsyncErrorsMethod = CampaignDraftServiceGrpc.getListCampaignDraftAsyncErrorsMethod) == null) {
synchronized (CampaignDraftServiceGrpc.class) {
if ((getListCampaignDraftAsyncErrorsMethod = CampaignDraftServiceGrpc.getListCampaignDraftAsyncErrorsMethod) == null) {
CampaignDraftServiceGrpc.getListCampaignDraftAsyncErrorsMethod = getListCampaignDraftAsyncErrorsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCampaignDraftAsyncErrors"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsResponse.getDefaultInstance()))
.setSchemaDescriptor(new CampaignDraftServiceMethodDescriptorSupplier("ListCampaignDraftAsyncErrors"))
.build();
}
}
}
return getListCampaignDraftAsyncErrorsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static CampaignDraftServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CampaignDraftServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CampaignDraftServiceStub(channel, callOptions);
}
};
return CampaignDraftServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static CampaignDraftServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CampaignDraftServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CampaignDraftServiceBlockingStub(channel, callOptions);
}
};
return CampaignDraftServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static CampaignDraftServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public CampaignDraftServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CampaignDraftServiceFutureStub(channel, callOptions);
}
};
return CampaignDraftServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage campaign drafts.
*
*/
public interface AsyncService {
/**
*
* Creates, updates, or removes campaign drafts. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
default void mutateCampaignDrafts(com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateCampaignDraftsMethod(), responseObserver);
}
/**
*
* Promotes the changes in a draft back to the base campaign.
* This method returns a Long Running Operation (LRO) indicating if the
* Promote is done. Use [Operations.GetOperation] to poll the LRO until it
* is done. Only a done status is returned in the response. See the status
* in the Campaign Draft resource to determine if the promotion was
* successful. If the LRO failed, use
* [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v17.services.CampaignDraftService.ListCampaignDraftAsyncErrors]
* to view the list of error reasons.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
default void promoteCampaignDraft(com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPromoteCampaignDraftMethod(), responseObserver);
}
/**
*
* Returns all errors that occurred during CampaignDraft promote. Throws an
* error if called before campaign draft is promoted.
* Supports standard list paging.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
default void listCampaignDraftAsyncErrors(com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCampaignDraftAsyncErrorsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service CampaignDraftService.
*
* Service to manage campaign drafts.
*
*/
public static abstract class CampaignDraftServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return CampaignDraftServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service CampaignDraftService.
*
* Service to manage campaign drafts.
*
*/
public static final class CampaignDraftServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private CampaignDraftServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CampaignDraftServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CampaignDraftServiceStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes campaign drafts. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void mutateCampaignDrafts(com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateCampaignDraftsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Promotes the changes in a draft back to the base campaign.
* This method returns a Long Running Operation (LRO) indicating if the
* Promote is done. Use [Operations.GetOperation] to poll the LRO until it
* is done. Only a done status is returned in the response. See the status
* in the Campaign Draft resource to determine if the promotion was
* successful. If the LRO failed, use
* [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v17.services.CampaignDraftService.ListCampaignDraftAsyncErrors]
* to view the list of error reasons.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void promoteCampaignDraft(com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPromoteCampaignDraftMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Returns all errors that occurred during CampaignDraft promote. Throws an
* error if called before campaign draft is promoted.
* Supports standard list paging.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public void listCampaignDraftAsyncErrors(com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListCampaignDraftAsyncErrorsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service CampaignDraftService.
*
* Service to manage campaign drafts.
*
*/
public static final class CampaignDraftServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private CampaignDraftServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CampaignDraftServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CampaignDraftServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes campaign drafts. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v17.services.MutateCampaignDraftsResponse mutateCampaignDrafts(com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateCampaignDraftsMethod(), getCallOptions(), request);
}
/**
*
* Promotes the changes in a draft back to the base campaign.
* This method returns a Long Running Operation (LRO) indicating if the
* Promote is done. Use [Operations.GetOperation] to poll the LRO until it
* is done. Only a done status is returned in the response. See the status
* in the Campaign Draft resource to determine if the promotion was
* successful. If the LRO failed, use
* [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v17.services.CampaignDraftService.ListCampaignDraftAsyncErrors]
* to view the list of error reasons.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.longrunning.Operation promoteCampaignDraft(com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPromoteCampaignDraftMethod(), getCallOptions(), request);
}
/**
*
* Returns all errors that occurred during CampaignDraft promote. Throws an
* error if called before campaign draft is promoted.
* Supports standard list paging.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsResponse listCampaignDraftAsyncErrors(com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListCampaignDraftAsyncErrorsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service CampaignDraftService.
*
* Service to manage campaign drafts.
*
*/
public static final class CampaignDraftServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private CampaignDraftServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected CampaignDraftServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new CampaignDraftServiceFutureStub(channel, callOptions);
}
/**
*
* Creates, updates, or removes campaign drafts. Operation statuses are
* returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [DatabaseError]()
* [FieldError]()
* [HeaderError]()
* [InternalError]()
* [MutateError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateCampaignDrafts(
com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateCampaignDraftsMethod(), getCallOptions()), request);
}
/**
*
* Promotes the changes in a draft back to the base campaign.
* This method returns a Long Running Operation (LRO) indicating if the
* Promote is done. Use [Operations.GetOperation] to poll the LRO until it
* is done. Only a done status is returned in the response. See the status
* in the Campaign Draft resource to determine if the promotion was
* successful. If the LRO failed, use
* [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v17.services.CampaignDraftService.ListCampaignDraftAsyncErrors]
* to view the list of error reasons.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CampaignDraftError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture promoteCampaignDraft(
com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPromoteCampaignDraftMethod(), getCallOptions()), request);
}
/**
*
* Returns all errors that occurred during CampaignDraft promote. Throws an
* error if called before campaign draft is promoted.
* Supports standard list paging.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [HeaderError]()
* [InternalError]()
* [QuotaError]()
* [RequestError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture listCampaignDraftAsyncErrors(
com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListCampaignDraftAsyncErrorsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_CAMPAIGN_DRAFTS = 0;
private static final int METHODID_PROMOTE_CAMPAIGN_DRAFT = 1;
private static final int METHODID_LIST_CAMPAIGN_DRAFT_ASYNC_ERRORS = 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_MUTATE_CAMPAIGN_DRAFTS:
serviceImpl.mutateCampaignDrafts((com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PROMOTE_CAMPAIGN_DRAFT:
serviceImpl.promoteCampaignDraft((com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_CAMPAIGN_DRAFT_ASYNC_ERRORS:
serviceImpl.listCampaignDraftAsyncErrors((com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest) 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(
getMutateCampaignDraftsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.MutateCampaignDraftsRequest,
com.google.ads.googleads.v17.services.MutateCampaignDraftsResponse>(
service, METHODID_MUTATE_CAMPAIGN_DRAFTS)))
.addMethod(
getPromoteCampaignDraftMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.PromoteCampaignDraftRequest,
com.google.longrunning.Operation>(
service, METHODID_PROMOTE_CAMPAIGN_DRAFT)))
.addMethod(
getListCampaignDraftAsyncErrorsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsRequest,
com.google.ads.googleads.v17.services.ListCampaignDraftAsyncErrorsResponse>(
service, METHODID_LIST_CAMPAIGN_DRAFT_ASYNC_ERRORS)))
.build();
}
private static abstract class CampaignDraftServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
CampaignDraftServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v17.services.CampaignDraftServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("CampaignDraftService");
}
}
private static final class CampaignDraftServiceFileDescriptorSupplier
extends CampaignDraftServiceBaseDescriptorSupplier {
CampaignDraftServiceFileDescriptorSupplier() {}
}
private static final class CampaignDraftServiceMethodDescriptorSupplier
extends CampaignDraftServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
CampaignDraftServiceMethodDescriptorSupplier(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 (CampaignDraftServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new CampaignDraftServiceFileDescriptorSupplier())
.addMethod(getMutateCampaignDraftsMethod())
.addMethod(getPromoteCampaignDraftMethod())
.addMethod(getListCampaignDraftAsyncErrorsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy