com.google.ads.googleads.v10.services.SharedCriterionServiceGrpc 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 shared criteria.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/ads/googleads/v10/services/shared_criterion_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SharedCriterionServiceGrpc {
private SharedCriterionServiceGrpc() {}
public static final String SERVICE_NAME = "google.ads.googleads.v10.services.SharedCriterionService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getMutateSharedCriteriaMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "MutateSharedCriteria",
requestType = com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest.class,
responseType = com.google.ads.googleads.v10.services.MutateSharedCriteriaResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getMutateSharedCriteriaMethod() {
io.grpc.MethodDescriptor getMutateSharedCriteriaMethod;
if ((getMutateSharedCriteriaMethod = SharedCriterionServiceGrpc.getMutateSharedCriteriaMethod) == null) {
synchronized (SharedCriterionServiceGrpc.class) {
if ((getMutateSharedCriteriaMethod = SharedCriterionServiceGrpc.getMutateSharedCriteriaMethod) == null) {
SharedCriterionServiceGrpc.getMutateSharedCriteriaMethod = getMutateSharedCriteriaMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateSharedCriteria"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.ads.googleads.v10.services.MutateSharedCriteriaResponse.getDefaultInstance()))
.setSchemaDescriptor(new SharedCriterionServiceMethodDescriptorSupplier("MutateSharedCriteria"))
.build();
}
}
}
return getMutateSharedCriteriaMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SharedCriterionServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SharedCriterionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SharedCriterionServiceStub(channel, callOptions);
}
};
return SharedCriterionServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SharedCriterionServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SharedCriterionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SharedCriterionServiceBlockingStub(channel, callOptions);
}
};
return SharedCriterionServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SharedCriterionServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SharedCriterionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SharedCriterionServiceFutureStub(channel, callOptions);
}
};
return SharedCriterionServiceFutureStub.newStub(factory, channel);
}
/**
*
* Service to manage shared criteria.
*
*/
public static abstract class SharedCriterionServiceImplBase implements io.grpc.BindableService {
/**
*
* Creates or removes shared criteria. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CriterionError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [NullError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public void mutateSharedCriteria(com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateSharedCriteriaMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getMutateSharedCriteriaMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest,
com.google.ads.googleads.v10.services.MutateSharedCriteriaResponse>(
this, METHODID_MUTATE_SHARED_CRITERIA)))
.build();
}
}
/**
*
* Service to manage shared criteria.
*
*/
public static final class SharedCriterionServiceStub extends io.grpc.stub.AbstractAsyncStub {
private SharedCriterionServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SharedCriterionServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SharedCriterionServiceStub(channel, callOptions);
}
/**
*
* Creates or removes shared criteria. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CriterionError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [NullError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public void mutateSharedCriteria(com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getMutateSharedCriteriaMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Service to manage shared criteria.
*
*/
public static final class SharedCriterionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SharedCriterionServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SharedCriterionServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SharedCriterionServiceBlockingStub(channel, callOptions);
}
/**
*
* Creates or removes shared criteria. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CriterionError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [NullError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public com.google.ads.googleads.v10.services.MutateSharedCriteriaResponse mutateSharedCriteria(com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getMutateSharedCriteriaMethod(), getCallOptions(), request);
}
}
/**
*
* Service to manage shared criteria.
*
*/
public static final class SharedCriterionServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private SharedCriterionServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SharedCriterionServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SharedCriterionServiceFutureStub(channel, callOptions);
}
/**
*
* Creates or removes shared criteria. Operation statuses are returned.
* List of thrown errors:
* [AuthenticationError]()
* [AuthorizationError]()
* [CriterionError]()
* [DatabaseError]()
* [DistinctError]()
* [FieldError]()
* [HeaderError]()
* [IdError]()
* [InternalError]()
* [MutateError]()
* [NotEmptyError]()
* [NullError]()
* [OperatorError]()
* [QuotaError]()
* [RangeError]()
* [RequestError]()
* [ResourceCountLimitExceededError]()
* [SizeLimitError]()
* [StringFormatError]()
* [StringLengthError]()
*
*/
public com.google.common.util.concurrent.ListenableFuture mutateSharedCriteria(
com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getMutateSharedCriteriaMethod(), getCallOptions()), request);
}
}
private static final int METHODID_MUTATE_SHARED_CRITERIA = 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 SharedCriterionServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(SharedCriterionServiceImplBase 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_SHARED_CRITERIA:
serviceImpl.mutateSharedCriteria((com.google.ads.googleads.v10.services.MutateSharedCriteriaRequest) 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 SharedCriterionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SharedCriterionServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.ads.googleads.v10.services.SharedCriterionServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SharedCriterionService");
}
}
private static final class SharedCriterionServiceFileDescriptorSupplier
extends SharedCriterionServiceBaseDescriptorSupplier {
SharedCriterionServiceFileDescriptorSupplier() {}
}
private static final class SharedCriterionServiceMethodDescriptorSupplier
extends SharedCriterionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
SharedCriterionServiceMethodDescriptorSupplier(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 (SharedCriterionServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SharedCriterionServiceFileDescriptorSupplier())
.addMethod(getMutateSharedCriteriaMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy