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

com.google.pubsub.v1.SchemaServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.117.0
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.pubsub.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Service for doing schema-related operations.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/pubsub/v1/schema.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SchemaServiceGrpc { private SchemaServiceGrpc() {} public static final String SERVICE_NAME = "google.pubsub.v1.SchemaService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> getCreateSchemaMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateSchema", requestType = com.google.pubsub.v1.CreateSchemaRequest.class, responseType = com.google.pubsub.v1.Schema.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema> getCreateSchemaMethod() { io.grpc.MethodDescriptor getCreateSchemaMethod; if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { synchronized (SchemaServiceGrpc.class) { if ((getCreateSchemaMethod = SchemaServiceGrpc.getCreateSchemaMethod) == null) { SchemaServiceGrpc.getCreateSchemaMethod = getCreateSchemaMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchema")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.CreateSchemaRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Schema.getDefaultInstance())) .setSchemaDescriptor( new SchemaServiceMethodDescriptorSupplier("CreateSchema")) .build(); } } } return getCreateSchemaMethod; } private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> getGetSchemaMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSchema", requestType = com.google.pubsub.v1.GetSchemaRequest.class, responseType = com.google.pubsub.v1.Schema.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema> getGetSchemaMethod() { io.grpc.MethodDescriptor getGetSchemaMethod; if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { synchronized (SchemaServiceGrpc.class) { if ((getGetSchemaMethod = SchemaServiceGrpc.getGetSchemaMethod) == null) { SchemaServiceGrpc.getGetSchemaMethod = getGetSchemaMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.GetSchemaRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.Schema.getDefaultInstance())) .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("GetSchema")) .build(); } } } return getGetSchemaMethod; } private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> getListSchemasMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSchemas", requestType = com.google.pubsub.v1.ListSchemasRequest.class, responseType = com.google.pubsub.v1.ListSchemasResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> getListSchemasMethod() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse> getListSchemasMethod; if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { synchronized (SchemaServiceGrpc.class) { if ((getListSchemasMethod = SchemaServiceGrpc.getListSchemasMethod) == null) { SchemaServiceGrpc.getListSchemasMethod = getListSchemasMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchemas")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.ListSchemasRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.ListSchemasResponse.getDefaultInstance())) .setSchemaDescriptor(new SchemaServiceMethodDescriptorSupplier("ListSchemas")) .build(); } } } return getListSchemasMethod; } private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> getDeleteSchemaMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteSchema", requestType = com.google.pubsub.v1.DeleteSchemaRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty> getDeleteSchemaMethod() { io.grpc.MethodDescriptor getDeleteSchemaMethod; if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { synchronized (SchemaServiceGrpc.class) { if ((getDeleteSchemaMethod = SchemaServiceGrpc.getDeleteSchemaMethod) == null) { SchemaServiceGrpc.getDeleteSchemaMethod = getDeleteSchemaMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchema")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.DeleteSchemaRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor( new SchemaServiceMethodDescriptorSupplier("DeleteSchema")) .build(); } } } return getDeleteSchemaMethod; } private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> getValidateSchemaMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ValidateSchema", requestType = com.google.pubsub.v1.ValidateSchemaRequest.class, responseType = com.google.pubsub.v1.ValidateSchemaResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> getValidateSchemaMethod() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse> getValidateSchemaMethod; if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { synchronized (SchemaServiceGrpc.class) { if ((getValidateSchemaMethod = SchemaServiceGrpc.getValidateSchemaMethod) == null) { SchemaServiceGrpc.getValidateSchemaMethod = getValidateSchemaMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateSchema")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.ValidateSchemaRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.ValidateSchemaResponse.getDefaultInstance())) .setSchemaDescriptor( new SchemaServiceMethodDescriptorSupplier("ValidateSchema")) .build(); } } } return getValidateSchemaMethod; } private static volatile io.grpc.MethodDescriptor< com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> getValidateMessageMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ValidateMessage", requestType = com.google.pubsub.v1.ValidateMessageRequest.class, responseType = com.google.pubsub.v1.ValidateMessageResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> getValidateMessageMethod() { io.grpc.MethodDescriptor< com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse> getValidateMessageMethod; if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { synchronized (SchemaServiceGrpc.class) { if ((getValidateMessageMethod = SchemaServiceGrpc.getValidateMessageMethod) == null) { SchemaServiceGrpc.getValidateMessageMethod = getValidateMessageMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateMessage")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.ValidateMessageRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.pubsub.v1.ValidateMessageResponse.getDefaultInstance())) .setSchemaDescriptor( new SchemaServiceMethodDescriptorSupplier("ValidateMessage")) .build(); } } } return getValidateMessageMethod; } /** Creates a new async stub that supports all call types for the service */ public static SchemaServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SchemaServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SchemaServiceStub(channel, callOptions); } }; return SchemaServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static SchemaServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SchemaServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SchemaServiceBlockingStub(channel, callOptions); } }; return SchemaServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static SchemaServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SchemaServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SchemaServiceFutureStub(channel, callOptions); } }; return SchemaServiceFutureStub.newStub(factory, channel); } /** * * *
   * Service for doing schema-related operations.
   * 
*/ public abstract static class SchemaServiceImplBase implements io.grpc.BindableService { /** * * *
     * Creates a schema.
     * 
*/ public void createSchema( com.google.pubsub.v1.CreateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateSchemaMethod(), responseObserver); } /** * * *
     * Gets a schema.
     * 
*/ public void getSchema( com.google.pubsub.v1.GetSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver); } /** * * *
     * Lists schemas in a project.
     * 
*/ public void listSchemas( com.google.pubsub.v1.ListSchemasRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListSchemasMethod(), responseObserver); } /** * * *
     * Deletes a schema.
     * 
*/ public void deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteSchemaMethod(), responseObserver); } /** * * *
     * Validates a schema.
     * 
*/ public void validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getValidateSchemaMethod(), responseObserver); } /** * * *
     * Validates a message against a schema.
     * 
*/ public void validateMessage( com.google.pubsub.v1.ValidateMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getValidateMessageMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateSchemaMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.CreateSchemaRequest, com.google.pubsub.v1.Schema>( this, METHODID_CREATE_SCHEMA))) .addMethod( getGetSchemaMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.GetSchemaRequest, com.google.pubsub.v1.Schema>( this, METHODID_GET_SCHEMA))) .addMethod( getListSchemasMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ListSchemasRequest, com.google.pubsub.v1.ListSchemasResponse>(this, METHODID_LIST_SCHEMAS))) .addMethod( getDeleteSchemaMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.DeleteSchemaRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_SCHEMA))) .addMethod( getValidateSchemaMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ValidateSchemaRequest, com.google.pubsub.v1.ValidateSchemaResponse>(this, METHODID_VALIDATE_SCHEMA))) .addMethod( getValidateMessageMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.pubsub.v1.ValidateMessageRequest, com.google.pubsub.v1.ValidateMessageResponse>( this, METHODID_VALIDATE_MESSAGE))) .build(); } } /** * * *
   * Service for doing schema-related operations.
   * 
*/ public static final class SchemaServiceStub extends io.grpc.stub.AbstractAsyncStub { private SchemaServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SchemaServiceStub(channel, callOptions); } /** * * *
     * Creates a schema.
     * 
*/ public void createSchema( com.google.pubsub.v1.CreateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets a schema.
     * 
*/ public void getSchema( com.google.pubsub.v1.GetSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Lists schemas in a project.
     * 
*/ public void listSchemas( com.google.pubsub.v1.ListSchemasRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSchemasMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a schema.
     * 
*/ public void deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Validates a schema.
     * 
*/ public void validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Validates a message against a schema.
     * 
*/ public void validateMessage( com.google.pubsub.v1.ValidateMessageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request, responseObserver); } } /** * * *
   * Service for doing schema-related operations.
   * 
*/ public static final class SchemaServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SchemaServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SchemaServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SchemaServiceBlockingStub(channel, callOptions); } /** * * *
     * Creates a schema.
     * 
*/ public com.google.pubsub.v1.Schema createSchema( com.google.pubsub.v1.CreateSchemaRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSchemaMethod(), getCallOptions(), request); } /** * * *
     * Gets a schema.
     * 
*/ public com.google.pubsub.v1.Schema getSchema(com.google.pubsub.v1.GetSchemaRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSchemaMethod(), getCallOptions(), request); } /** * * *
     * Lists schemas in a project.
     * 
*/ public com.google.pubsub.v1.ListSchemasResponse listSchemas( com.google.pubsub.v1.ListSchemasRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSchemasMethod(), getCallOptions(), request); } /** * * *
     * Deletes a schema.
     * 
*/ public com.google.protobuf.Empty deleteSchema( com.google.pubsub.v1.DeleteSchemaRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSchemaMethod(), getCallOptions(), request); } /** * * *
     * Validates a schema.
     * 
*/ public com.google.pubsub.v1.ValidateSchemaResponse validateSchema( com.google.pubsub.v1.ValidateSchemaRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getValidateSchemaMethod(), getCallOptions(), request); } /** * * *
     * Validates a message against a schema.
     * 
*/ public com.google.pubsub.v1.ValidateMessageResponse validateMessage( com.google.pubsub.v1.ValidateMessageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getValidateMessageMethod(), getCallOptions(), request); } } /** * * *
   * Service for doing schema-related operations.
   * 
*/ public static final class SchemaServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private SchemaServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SchemaServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SchemaServiceFutureStub(channel, callOptions); } /** * * *
     * Creates a schema.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createSchema(com.google.pubsub.v1.CreateSchemaRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSchemaMethod(), getCallOptions()), request); } /** * * *
     * Gets a schema.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getSchema(com.google.pubsub.v1.GetSchemaRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request); } /** * * *
     * Lists schemas in a project.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ListSchemasResponse> listSchemas(com.google.pubsub.v1.ListSchemasRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSchemasMethod(), getCallOptions()), request); } /** * * *
     * Deletes a schema.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteSchema(com.google.pubsub.v1.DeleteSchemaRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSchemaMethod(), getCallOptions()), request); } /** * * *
     * Validates a schema.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ValidateSchemaResponse> validateSchema(com.google.pubsub.v1.ValidateSchemaRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getValidateSchemaMethod(), getCallOptions()), request); } /** * * *
     * Validates a message against a schema.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.pubsub.v1.ValidateMessageResponse> validateMessage(com.google.pubsub.v1.ValidateMessageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getValidateMessageMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_SCHEMA = 0; private static final int METHODID_GET_SCHEMA = 1; private static final int METHODID_LIST_SCHEMAS = 2; private static final int METHODID_DELETE_SCHEMA = 3; private static final int METHODID_VALIDATE_SCHEMA = 4; private static final int METHODID_VALIDATE_MESSAGE = 5; 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 SchemaServiceImplBase serviceImpl; private final int methodId; MethodHandlers(SchemaServiceImplBase 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_CREATE_SCHEMA: serviceImpl.createSchema( (com.google.pubsub.v1.CreateSchemaRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SCHEMA: serviceImpl.getSchema( (com.google.pubsub.v1.GetSchemaRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SCHEMAS: serviceImpl.listSchemas( (com.google.pubsub.v1.ListSchemasRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_SCHEMA: serviceImpl.deleteSchema( (com.google.pubsub.v1.DeleteSchemaRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VALIDATE_SCHEMA: serviceImpl.validateSchema( (com.google.pubsub.v1.ValidateSchemaRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VALIDATE_MESSAGE: serviceImpl.validateMessage( (com.google.pubsub.v1.ValidateMessageRequest) 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 abstract static class SchemaServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SchemaServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.pubsub.v1.SchemaProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("SchemaService"); } } private static final class SchemaServiceFileDescriptorSupplier extends SchemaServiceBaseDescriptorSupplier { SchemaServiceFileDescriptorSupplier() {} } private static final class SchemaServiceMethodDescriptorSupplier extends SchemaServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; SchemaServiceMethodDescriptorSupplier(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 (SchemaServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SchemaServiceFileDescriptorSupplier()) .addMethod(getCreateSchemaMethod()) .addMethod(getGetSchemaMethod()) .addMethod(getListSchemasMethod()) .addMethod(getDeleteSchemaMethod()) .addMethod(getValidateSchemaMethod()) .addMethod(getValidateMessageMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy