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

com.google.ads.googleads.v10.services.MediaFileServiceGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Service to manage media files.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/ads/googleads/v10/services/media_file_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MediaFileServiceGrpc { private MediaFileServiceGrpc() {} public static final String SERVICE_NAME = "google.ads.googleads.v10.services.MediaFileService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getMutateMediaFilesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "MutateMediaFiles", requestType = com.google.ads.googleads.v10.services.MutateMediaFilesRequest.class, responseType = com.google.ads.googleads.v10.services.MutateMediaFilesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getMutateMediaFilesMethod() { io.grpc.MethodDescriptor getMutateMediaFilesMethod; if ((getMutateMediaFilesMethod = MediaFileServiceGrpc.getMutateMediaFilesMethod) == null) { synchronized (MediaFileServiceGrpc.class) { if ((getMutateMediaFilesMethod = MediaFileServiceGrpc.getMutateMediaFilesMethod) == null) { MediaFileServiceGrpc.getMutateMediaFilesMethod = getMutateMediaFilesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MutateMediaFiles")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v10.services.MutateMediaFilesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.ads.googleads.v10.services.MutateMediaFilesResponse.getDefaultInstance())) .setSchemaDescriptor(new MediaFileServiceMethodDescriptorSupplier("MutateMediaFiles")) .build(); } } } return getMutateMediaFilesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static MediaFileServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MediaFileServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MediaFileServiceStub(channel, callOptions); } }; return MediaFileServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MediaFileServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MediaFileServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MediaFileServiceBlockingStub(channel, callOptions); } }; return MediaFileServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MediaFileServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MediaFileServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MediaFileServiceFutureStub(channel, callOptions); } }; return MediaFileServiceFutureStub.newStub(factory, channel); } /** *
   * Service to manage media files.
   * 
*/ public static abstract class MediaFileServiceImplBase implements io.grpc.BindableService { /** *
     * Creates media files. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [ImageError]()
     *   [InternalError]()
     *   [MediaBundleError]()
     *   [MediaFileError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public void mutateMediaFiles(com.google.ads.googleads.v10.services.MutateMediaFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMutateMediaFilesMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getMutateMediaFilesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.ads.googleads.v10.services.MutateMediaFilesRequest, com.google.ads.googleads.v10.services.MutateMediaFilesResponse>( this, METHODID_MUTATE_MEDIA_FILES))) .build(); } } /** *
   * Service to manage media files.
   * 
*/ public static final class MediaFileServiceStub extends io.grpc.stub.AbstractAsyncStub { private MediaFileServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MediaFileServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MediaFileServiceStub(channel, callOptions); } /** *
     * Creates media files. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [ImageError]()
     *   [InternalError]()
     *   [MediaBundleError]()
     *   [MediaFileError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public void mutateMediaFiles(com.google.ads.googleads.v10.services.MutateMediaFilesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMutateMediaFilesMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Service to manage media files.
   * 
*/ public static final class MediaFileServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MediaFileServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MediaFileServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MediaFileServiceBlockingStub(channel, callOptions); } /** *
     * Creates media files. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [ImageError]()
     *   [InternalError]()
     *   [MediaBundleError]()
     *   [MediaFileError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public com.google.ads.googleads.v10.services.MutateMediaFilesResponse mutateMediaFiles(com.google.ads.googleads.v10.services.MutateMediaFilesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMutateMediaFilesMethod(), getCallOptions(), request); } } /** *
   * Service to manage media files.
   * 
*/ public static final class MediaFileServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private MediaFileServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MediaFileServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MediaFileServiceFutureStub(channel, callOptions); } /** *
     * Creates media files. Operation statuses are returned.
     * List of thrown errors:
     *   [AuthenticationError]()
     *   [AuthorizationError]()
     *   [DatabaseError]()
     *   [DistinctError]()
     *   [FieldError]()
     *   [HeaderError]()
     *   [IdError]()
     *   [ImageError]()
     *   [InternalError]()
     *   [MediaBundleError]()
     *   [MediaFileError]()
     *   [NewResourceCreationError]()
     *   [NotEmptyError]()
     *   [NullError]()
     *   [OperatorError]()
     *   [QuotaError]()
     *   [RangeError]()
     *   [RequestError]()
     *   [SizeLimitError]()
     *   [StringFormatError]()
     *   [StringLengthError]()
     * 
*/ public com.google.common.util.concurrent.ListenableFuture mutateMediaFiles( com.google.ads.googleads.v10.services.MutateMediaFilesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getMutateMediaFilesMethod(), getCallOptions()), request); } } private static final int METHODID_MUTATE_MEDIA_FILES = 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 MediaFileServiceImplBase serviceImpl; private final int methodId; MethodHandlers(MediaFileServiceImplBase 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_MEDIA_FILES: serviceImpl.mutateMediaFiles((com.google.ads.googleads.v10.services.MutateMediaFilesRequest) 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 MediaFileServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MediaFileServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.ads.googleads.v10.services.MediaFileServiceProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MediaFileService"); } } private static final class MediaFileServiceFileDescriptorSupplier extends MediaFileServiceBaseDescriptorSupplier { MediaFileServiceFileDescriptorSupplier() {} } private static final class MediaFileServiceMethodDescriptorSupplier extends MediaFileServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MediaFileServiceMethodDescriptorSupplier(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 (MediaFileServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MediaFileServiceFileDescriptorSupplier()) .addMethod(getMutateMediaFilesMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy