Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* Service where the sink is the gRPC client. The sink is responsible for
* initiating connections and opening streams.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.26.0)",
comments = "Source: mcp/v1alpha1/mcp.proto")
public final class ResourceSourceGrpc {
private ResourceSourceGrpc() {}
public static final String SERVICE_NAME = "istio.mcp.v1alpha1.ResourceSource";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getEstablishResourceStreamMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "EstablishResourceStream",
requestType = istio.mcp.v1alpha1.Mcp.RequestResources.class,
responseType = istio.mcp.v1alpha1.Mcp.Resources.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getEstablishResourceStreamMethod() {
io.grpc.MethodDescriptor getEstablishResourceStreamMethod;
if ((getEstablishResourceStreamMethod = ResourceSourceGrpc.getEstablishResourceStreamMethod) == null) {
synchronized (ResourceSourceGrpc.class) {
if ((getEstablishResourceStreamMethod = ResourceSourceGrpc.getEstablishResourceStreamMethod) == null) {
ResourceSourceGrpc.getEstablishResourceStreamMethod = getEstablishResourceStreamMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "EstablishResourceStream"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
istio.mcp.v1alpha1.Mcp.RequestResources.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
istio.mcp.v1alpha1.Mcp.Resources.getDefaultInstance()))
.setSchemaDescriptor(new ResourceSourceMethodDescriptorSupplier("EstablishResourceStream"))
.build();
}
}
}
return getEstablishResourceStreamMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ResourceSourceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ResourceSourceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ResourceSourceStub(channel, callOptions);
}
};
return ResourceSourceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ResourceSourceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ResourceSourceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ResourceSourceBlockingStub(channel, callOptions);
}
};
return ResourceSourceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ResourceSourceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ResourceSourceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ResourceSourceFutureStub(channel, callOptions);
}
};
return ResourceSourceFutureStub.newStub(factory, channel);
}
/**
*
* Service where the sink is the gRPC client. The sink is responsible for
* initiating connections and opening streams.
*
*/
public static abstract class ResourceSourceImplBase implements io.grpc.BindableService {
/**
*
* The sink, acting as gRPC client, establishes a new resource stream
* with the source. The sink sends RequestResources message to
* and receives Resources messages from the source.
*
*/
public io.grpc.stub.StreamObserver establishResourceStream(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getEstablishResourceStreamMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getEstablishResourceStreamMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
istio.mcp.v1alpha1.Mcp.RequestResources,
istio.mcp.v1alpha1.Mcp.Resources>(
this, METHODID_ESTABLISH_RESOURCE_STREAM)))
.build();
}
}
/**
*
* Service where the sink is the gRPC client. The sink is responsible for
* initiating connections and opening streams.
*
*/
public static final class ResourceSourceStub extends io.grpc.stub.AbstractAsyncStub {
private ResourceSourceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ResourceSourceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ResourceSourceStub(channel, callOptions);
}
/**
*
* The sink, acting as gRPC client, establishes a new resource stream
* with the source. The sink sends RequestResources message to
* and receives Resources messages from the source.
*