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

com.google.ads.googleads.v9.services.OperatingSystemVersionConstantServiceGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to fetch Operating System Version constants.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v9/services/operating_system_version_constant_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class OperatingSystemVersionConstantServiceGrpc { private OperatingSystemVersionConstantServiceGrpc() {} public static final String SERVICE_NAME = "google.ads.googleads.v9.services.OperatingSystemVersionConstantService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetOperatingSystemVersionConstant", requestType = com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest.class, responseType = com.google.ads.googleads.v9.resources.OperatingSystemVersionConstant.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethod() { io.grpc.MethodDescriptor getGetOperatingSystemVersionConstantMethod; if ((getGetOperatingSystemVersionConstantMethod = OperatingSystemVersionConstantServiceGrpc.getGetOperatingSystemVersionConstantMethod) == null) { synchronized (OperatingSystemVersionConstantServiceGrpc.class) { if ((getGetOperatingSystemVersionConstantMethod = OperatingSystemVersionConstantServiceGrpc.getGetOperatingSystemVersionConstantMethod) == null) { OperatingSystemVersionConstantServiceGrpc.getGetOperatingSystemVersionConstantMethod = getGetOperatingSystemVersionConstantMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOperatingSystemVersionConstant")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v9.resources.OperatingSystemVersionConstant.getDefaultInstance())) .setSchemaDescriptor(new OperatingSystemVersionConstantServiceMethodDescriptorSupplier("GetOperatingSystemVersionConstant")) .build(); } } } return getGetOperatingSystemVersionConstantMethod; } /** * Creates a new async stub that supports all call types for the service */ public static OperatingSystemVersionConstantServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OperatingSystemVersionConstantServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperatingSystemVersionConstantServiceStub(channel, callOptions); } }; return OperatingSystemVersionConstantServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static OperatingSystemVersionConstantServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OperatingSystemVersionConstantServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperatingSystemVersionConstantServiceBlockingStub(channel, callOptions); } }; return OperatingSystemVersionConstantServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static OperatingSystemVersionConstantServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public OperatingSystemVersionConstantServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperatingSystemVersionConstantServiceFutureStub(channel, callOptions); } }; return OperatingSystemVersionConstantServiceFutureStub.newStub(factory, channel); } /** *
   * Service to fetch Operating System Version constants.
   * 
*/ public static abstract class OperatingSystemVersionConstantServiceImplBase implements io.grpc.BindableService { /** *
     * Returns the requested OS version constant in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void getOperatingSystemVersionConstant(com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOperatingSystemVersionConstantMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetOperatingSystemVersionConstantMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest, com.google.ads.googleads.v9.resources.OperatingSystemVersionConstant>( this, METHODID_GET_OPERATING_SYSTEM_VERSION_CONSTANT))) .build(); } } /** *
   * Service to fetch Operating System Version constants.
   * 
*/ public static final class OperatingSystemVersionConstantServiceStub extends io.grpc.stub.AbstractAsyncStub { private OperatingSystemVersionConstantServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OperatingSystemVersionConstantServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperatingSystemVersionConstantServiceStub(channel, callOptions); } /** *
     * Returns the requested OS version constant in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public void getOperatingSystemVersionConstant(com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOperatingSystemVersionConstantMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Service to fetch Operating System Version constants.
   * 
*/ public static final class OperatingSystemVersionConstantServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private OperatingSystemVersionConstantServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OperatingSystemVersionConstantServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperatingSystemVersionConstantServiceBlockingStub(channel, callOptions); } /** *
     * Returns the requested OS version constant in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.ads.googleads.v9.resources.OperatingSystemVersionConstant getOperatingSystemVersionConstant(com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOperatingSystemVersionConstantMethod(), getCallOptions(), request); } } /** *
   * Service to fetch Operating System Version constants.
   * 
*/ public static final class OperatingSystemVersionConstantServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private OperatingSystemVersionConstantServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected OperatingSystemVersionConstantServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new OperatingSystemVersionConstantServiceFutureStub(channel, callOptions); } /** *
     * Returns the requested OS version constant in full detail.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [HeaderError]()
     *   [InternalError]()
     *   [QuotaError]()
     *   [RequestError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getOperatingSystemVersionConstant( com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetOperatingSystemVersionConstantMethod(), getCallOptions()), request); } } private static final int METHODID_GET_OPERATING_SYSTEM_VERSION_CONSTANT = 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 OperatingSystemVersionConstantServiceImplBase serviceImpl; private final int methodId; MethodHandlers(OperatingSystemVersionConstantServiceImplBase 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_OPERATING_SYSTEM_VERSION_CONSTANT: serviceImpl.getOperatingSystemVersionConstant((com.google.ads.googleads.v9.services.GetOperatingSystemVersionConstantRequest) 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 OperatingSystemVersionConstantServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { OperatingSystemVersionConstantServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v9.services.OperatingSystemVersionConstantServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("OperatingSystemVersionConstantService"); } } private static final class OperatingSystemVersionConstantServiceFileDescriptorSupplier extends OperatingSystemVersionConstantServiceBaseDescriptorSupplier { OperatingSystemVersionConstantServiceFileDescriptorSupplier() {} } private static final class OperatingSystemVersionConstantServiceMethodDescriptorSupplier extends OperatingSystemVersionConstantServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; OperatingSystemVersionConstantServiceMethodDescriptorSupplier(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 (OperatingSystemVersionConstantServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new OperatingSystemVersionConstantServiceFileDescriptorSupplier()) .addMethod(getGetOperatingSystemVersionConstantMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy