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

com.alibaba.nacos.istio.model.mcp.AggregatedMeshConfigServiceGrpc Maven / Gradle / Ivy

There is a newer version: 2.3.2
Show newest version
package com.alibaba.nacos.istio.model.mcp;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * 
 * The aggregated mesh configuration services allow a single
 * management server, via a single gRPC stream, to deliver all API
 * updates.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.17.1)", comments = "Source: mcp.proto") public final class AggregatedMeshConfigServiceGrpc { private AggregatedMeshConfigServiceGrpc() {} public static final String SERVICE_NAME = "istio.mcp.v1alpha1.AggregatedMeshConfigService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getStreamAggregatedResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StreamAggregatedResources", requestType = com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.class, responseType = com.alibaba.nacos.istio.model.mcp.MeshConfigResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getStreamAggregatedResourcesMethod() { io.grpc.MethodDescriptor getStreamAggregatedResourcesMethod; if ((getStreamAggregatedResourcesMethod = AggregatedMeshConfigServiceGrpc.getStreamAggregatedResourcesMethod) == null) { synchronized (AggregatedMeshConfigServiceGrpc.class) { if ((getStreamAggregatedResourcesMethod = AggregatedMeshConfigServiceGrpc.getStreamAggregatedResourcesMethod) == null) { AggregatedMeshConfigServiceGrpc.getStreamAggregatedResourcesMethod = getStreamAggregatedResourcesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName( "istio.mcp.v1alpha1.AggregatedMeshConfigService", "StreamAggregatedResources")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.alibaba.nacos.istio.model.mcp.MeshConfigRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.alibaba.nacos.istio.model.mcp.MeshConfigResponse.getDefaultInstance())) .setSchemaDescriptor(new AggregatedMeshConfigServiceMethodDescriptorSupplier("StreamAggregatedResources")) .build(); } } } return getStreamAggregatedResourcesMethod; } private static volatile io.grpc.MethodDescriptor getIncrementalAggregatedResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "IncrementalAggregatedResources", requestType = com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.class, responseType = com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getIncrementalAggregatedResourcesMethod() { io.grpc.MethodDescriptor getIncrementalAggregatedResourcesMethod; if ((getIncrementalAggregatedResourcesMethod = AggregatedMeshConfigServiceGrpc.getIncrementalAggregatedResourcesMethod) == null) { synchronized (AggregatedMeshConfigServiceGrpc.class) { if ((getIncrementalAggregatedResourcesMethod = AggregatedMeshConfigServiceGrpc.getIncrementalAggregatedResourcesMethod) == null) { AggregatedMeshConfigServiceGrpc.getIncrementalAggregatedResourcesMethod = getIncrementalAggregatedResourcesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName( "istio.mcp.v1alpha1.AggregatedMeshConfigService", "IncrementalAggregatedResources")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigResponse.getDefaultInstance())) .setSchemaDescriptor(new AggregatedMeshConfigServiceMethodDescriptorSupplier("IncrementalAggregatedResources")) .build(); } } } return getIncrementalAggregatedResourcesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static AggregatedMeshConfigServiceStub newStub(io.grpc.Channel channel) { return new AggregatedMeshConfigServiceStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static AggregatedMeshConfigServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { return new AggregatedMeshConfigServiceBlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static AggregatedMeshConfigServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new AggregatedMeshConfigServiceFutureStub(channel); } /** *
   * The aggregated mesh configuration services allow a single
   * management server, via a single gRPC stream, to deliver all API
   * updates.
   * 
*/ public static abstract class AggregatedMeshConfigServiceImplBase implements io.grpc.BindableService { /** *
     * StreamAggregatedResources provides the ability to carefully
     * sequence updates across multiple resource types. A single stream
     * is used with multiple independent MeshConfigRequest /
     * MeshConfigResponses sequences multiplexed via the type URL.
     * 
*/ public io.grpc.stub.StreamObserver streamAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getStreamAggregatedResourcesMethod(), responseObserver); } /** *
     * IncrementalAggregatedResources provides the ability to incrementally
     * update the resources on the client. This supports the goal of
     * scalability of MCP resources.
     * 
*/ public io.grpc.stub.StreamObserver incrementalAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getIncrementalAggregatedResourcesMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStreamAggregatedResourcesMethod(), asyncBidiStreamingCall( new MethodHandlers< com.alibaba.nacos.istio.model.mcp.MeshConfigRequest, com.alibaba.nacos.istio.model.mcp.MeshConfigResponse>( this, METHODID_STREAM_AGGREGATED_RESOURCES))) .addMethod( getIncrementalAggregatedResourcesMethod(), asyncBidiStreamingCall( new MethodHandlers< com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigRequest, com.alibaba.nacos.istio.model.mcp.IncrementalMeshConfigResponse>( this, METHODID_INCREMENTAL_AGGREGATED_RESOURCES))) .build(); } } /** *
   * The aggregated mesh configuration services allow a single
   * management server, via a single gRPC stream, to deliver all API
   * updates.
   * 
*/ public static final class AggregatedMeshConfigServiceStub extends io.grpc.stub.AbstractStub { private AggregatedMeshConfigServiceStub(io.grpc.Channel channel) { super(channel); } private AggregatedMeshConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AggregatedMeshConfigServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AggregatedMeshConfigServiceStub(channel, callOptions); } /** *
     * StreamAggregatedResources provides the ability to carefully
     * sequence updates across multiple resource types. A single stream
     * is used with multiple independent MeshConfigRequest /
     * MeshConfigResponses sequences multiplexed via the type URL.
     * 
*/ public io.grpc.stub.StreamObserver streamAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getStreamAggregatedResourcesMethod(), getCallOptions()), responseObserver); } /** *
     * IncrementalAggregatedResources provides the ability to incrementally
     * update the resources on the client. This supports the goal of
     * scalability of MCP resources.
     * 
*/ public io.grpc.stub.StreamObserver incrementalAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getIncrementalAggregatedResourcesMethod(), getCallOptions()), responseObserver); } } /** *
   * The aggregated mesh configuration services allow a single
   * management server, via a single gRPC stream, to deliver all API
   * updates.
   * 
*/ public static final class AggregatedMeshConfigServiceBlockingStub extends io.grpc.stub.AbstractStub { private AggregatedMeshConfigServiceBlockingStub(io.grpc.Channel channel) { super(channel); } private AggregatedMeshConfigServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AggregatedMeshConfigServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AggregatedMeshConfigServiceBlockingStub(channel, callOptions); } } /** *
   * The aggregated mesh configuration services allow a single
   * management server, via a single gRPC stream, to deliver all API
   * updates.
   * 
*/ public static final class AggregatedMeshConfigServiceFutureStub extends io.grpc.stub.AbstractStub { private AggregatedMeshConfigServiceFutureStub(io.grpc.Channel channel) { super(channel); } private AggregatedMeshConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AggregatedMeshConfigServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AggregatedMeshConfigServiceFutureStub(channel, callOptions); } } private static final int METHODID_STREAM_AGGREGATED_RESOURCES = 0; private static final int METHODID_INCREMENTAL_AGGREGATED_RESOURCES = 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 AggregatedMeshConfigServiceImplBase serviceImpl; private final int methodId; MethodHandlers(AggregatedMeshConfigServiceImplBase 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) { default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_STREAM_AGGREGATED_RESOURCES: return (io.grpc.stub.StreamObserver) serviceImpl.streamAggregatedResources( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_INCREMENTAL_AGGREGATED_RESOURCES: return (io.grpc.stub.StreamObserver) serviceImpl.incrementalAggregatedResources( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class AggregatedMeshConfigServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AggregatedMeshConfigServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.alibaba.nacos.istio.model.mcp.Mcp.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("AggregatedMeshConfigService"); } } private static final class AggregatedMeshConfigServiceFileDescriptorSupplier extends AggregatedMeshConfigServiceBaseDescriptorSupplier { AggregatedMeshConfigServiceFileDescriptorSupplier() {} } private static final class AggregatedMeshConfigServiceMethodDescriptorSupplier extends AggregatedMeshConfigServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; AggregatedMeshConfigServiceMethodDescriptorSupplier(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 (AggregatedMeshConfigServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AggregatedMeshConfigServiceFileDescriptorSupplier()) .addMethod(getStreamAggregatedResourcesMethod()) .addMethod(getIncrementalAggregatedResourcesMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy