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

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

The newest version!
package com.google.ads.googleads.v17.services;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to fetch Google Ads API fields.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v17/services/google_ads_field_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class GoogleAdsFieldServiceGrpc { private GoogleAdsFieldServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.ads.googleads.v17.services.GoogleAdsFieldService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetGoogleAdsFieldMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetGoogleAdsField", requestType = com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest.class, responseType = com.google.ads.googleads.v17.resources.GoogleAdsField.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetGoogleAdsFieldMethod() { io.grpc.MethodDescriptor getGetGoogleAdsFieldMethod; if ((getGetGoogleAdsFieldMethod = GoogleAdsFieldServiceGrpc.getGetGoogleAdsFieldMethod) == null) { synchronized (GoogleAdsFieldServiceGrpc.class) { if ((getGetGoogleAdsFieldMethod = GoogleAdsFieldServiceGrpc.getGetGoogleAdsFieldMethod) == null) { GoogleAdsFieldServiceGrpc.getGetGoogleAdsFieldMethod = getGetGoogleAdsFieldMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGoogleAdsField")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.resources.GoogleAdsField.getDefaultInstance())) .setSchemaDescriptor(new GoogleAdsFieldServiceMethodDescriptorSupplier("GetGoogleAdsField")) .build(); } } } return getGetGoogleAdsFieldMethod; } private static volatile io.grpc.MethodDescriptor getSearchGoogleAdsFieldsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SearchGoogleAdsFields", requestType = com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest.class, responseType = com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSearchGoogleAdsFieldsMethod() { io.grpc.MethodDescriptor getSearchGoogleAdsFieldsMethod; if ((getSearchGoogleAdsFieldsMethod = GoogleAdsFieldServiceGrpc.getSearchGoogleAdsFieldsMethod) == null) { synchronized (GoogleAdsFieldServiceGrpc.class) { if ((getSearchGoogleAdsFieldsMethod = GoogleAdsFieldServiceGrpc.getSearchGoogleAdsFieldsMethod) == null) { GoogleAdsFieldServiceGrpc.getSearchGoogleAdsFieldsMethod = getSearchGoogleAdsFieldsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchGoogleAdsFields")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsResponse.getDefaultInstance())) .setSchemaDescriptor(new GoogleAdsFieldServiceMethodDescriptorSupplier("SearchGoogleAdsFields")) .build(); } } } return getSearchGoogleAdsFieldsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static GoogleAdsFieldServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public GoogleAdsFieldServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GoogleAdsFieldServiceStub(channel, callOptions); } }; return GoogleAdsFieldServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static GoogleAdsFieldServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public GoogleAdsFieldServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GoogleAdsFieldServiceBlockingStub(channel, callOptions); } }; return GoogleAdsFieldServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static GoogleAdsFieldServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public GoogleAdsFieldServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GoogleAdsFieldServiceFutureStub(channel, callOptions); } }; return GoogleAdsFieldServiceFutureStub.newStub(factory, channel); } /** *
   * Service to fetch Google Ads API fields.
   * 
*/ public interface AsyncService { /** *
     * Returns just the requested field.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void getGoogleAdsField(com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGoogleAdsFieldMethod(), responseObserver); } /** *
     * Returns all fields that match the search query.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QueryError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ default void searchGoogleAdsFields(com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchGoogleAdsFieldsMethod(), responseObserver); } } /** * Base class for the server implementation of the service GoogleAdsFieldService. *
   * Service to fetch Google Ads API fields.
   * 
*/ public static abstract class GoogleAdsFieldServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return GoogleAdsFieldServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service GoogleAdsFieldService. *
   * Service to fetch Google Ads API fields.
   * 
*/ public static final class GoogleAdsFieldServiceStub extends io.grpc.stub.AbstractAsyncStub { private GoogleAdsFieldServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected GoogleAdsFieldServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GoogleAdsFieldServiceStub(channel, callOptions); } /** *
     * Returns just the requested field.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void getGoogleAdsField(com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetGoogleAdsFieldMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns all fields that match the search query.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QueryError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void searchGoogleAdsFields(com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSearchGoogleAdsFieldsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service GoogleAdsFieldService. *
   * Service to fetch Google Ads API fields.
   * 
*/ public static final class GoogleAdsFieldServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private GoogleAdsFieldServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected GoogleAdsFieldServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GoogleAdsFieldServiceBlockingStub(channel, callOptions); } /** *
     * Returns just the requested field.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.resources.GoogleAdsField getGoogleAdsField(com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetGoogleAdsFieldMethod(), getCallOptions(), request); } /** *
     * Returns all fields that match the search query.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QueryError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsResponse searchGoogleAdsFields(com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSearchGoogleAdsFieldsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service GoogleAdsFieldService. *
   * Service to fetch Google Ads API fields.
   * 
*/ public static final class GoogleAdsFieldServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private GoogleAdsFieldServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected GoogleAdsFieldServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new GoogleAdsFieldServiceFutureStub(channel, callOptions); } /** *
     * Returns just the requested field.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getGoogleAdsField( com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetGoogleAdsFieldMethod(), getCallOptions()), request); } /** *
     * Returns all fields that match the search query.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QueryError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture searchGoogleAdsFields( com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSearchGoogleAdsFieldsMethod(), getCallOptions()), request); } } private static final int METHODID_GET_GOOGLE_ADS_FIELD = 0; private static final int METHODID_SEARCH_GOOGLE_ADS_FIELDS = 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_GOOGLE_ADS_FIELD: serviceImpl.getGoogleAdsField((com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEARCH_GOOGLE_ADS_FIELDS: serviceImpl.searchGoogleAdsFields((com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest) 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( getGetGoogleAdsFieldMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.GetGoogleAdsFieldRequest, com.google.ads.googleads.v17.resources.GoogleAdsField>( service, METHODID_GET_GOOGLE_ADS_FIELD))) .addMethod( getSearchGoogleAdsFieldsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsRequest, com.google.ads.googleads.v17.services.SearchGoogleAdsFieldsResponse>( service, METHODID_SEARCH_GOOGLE_ADS_FIELDS))) .build(); } private static abstract class GoogleAdsFieldServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { GoogleAdsFieldServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v17.services.GoogleAdsFieldServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("GoogleAdsFieldService"); } } private static final class GoogleAdsFieldServiceFileDescriptorSupplier extends GoogleAdsFieldServiceBaseDescriptorSupplier { GoogleAdsFieldServiceFileDescriptorSupplier() {} } private static final class GoogleAdsFieldServiceMethodDescriptorSupplier extends GoogleAdsFieldServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; GoogleAdsFieldServiceMethodDescriptorSupplier(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 (GoogleAdsFieldServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new GoogleAdsFieldServiceFileDescriptorSupplier()) .addMethod(getGetGoogleAdsFieldMethod()) .addMethod(getSearchGoogleAdsFieldsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy