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.
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.48.1)",
comments = "Source: xds/service/orca/v3/orca.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class OpenRcaServiceGrpc {
private OpenRcaServiceGrpc() {}
public static final String SERVICE_NAME = "xds.service.orca.v3.OpenRcaService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getStreamCoreMetricsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamCoreMetrics",
requestType = com.github.xds.service.orca.v3.OrcaLoadReportRequest.class,
responseType = com.github.xds.data.orca.v3.OrcaLoadReport.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getStreamCoreMetricsMethod() {
io.grpc.MethodDescriptor getStreamCoreMetricsMethod;
if ((getStreamCoreMetricsMethod = OpenRcaServiceGrpc.getStreamCoreMetricsMethod) == null) {
synchronized (OpenRcaServiceGrpc.class) {
if ((getStreamCoreMetricsMethod = OpenRcaServiceGrpc.getStreamCoreMetricsMethod) == null) {
OpenRcaServiceGrpc.getStreamCoreMetricsMethod = getStreamCoreMetricsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamCoreMetrics"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.github.xds.service.orca.v3.OrcaLoadReportRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.github.xds.data.orca.v3.OrcaLoadReport.getDefaultInstance()))
.setSchemaDescriptor(new OpenRcaServiceMethodDescriptorSupplier("StreamCoreMetrics"))
.build();
}
}
}
return getStreamCoreMetricsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static OpenRcaServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OpenRcaServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceStub(channel, callOptions);
}
};
return OpenRcaServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static OpenRcaServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OpenRcaServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceBlockingStub(channel, callOptions);
}
};
return OpenRcaServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static OpenRcaServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public OpenRcaServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceFutureStub(channel, callOptions);
}
};
return OpenRcaServiceFutureStub.newStub(factory, channel);
}
/**
*
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*
*/
public static abstract class OpenRcaServiceImplBase implements io.grpc.BindableService {
/**
*/
public void streamCoreMetrics(com.github.xds.service.orca.v3.OrcaLoadReportRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStreamCoreMetricsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamCoreMetricsMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.github.xds.service.orca.v3.OrcaLoadReportRequest,
com.github.xds.data.orca.v3.OrcaLoadReport>(
this, METHODID_STREAM_CORE_METRICS)))
.build();
}
}
/**
*
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*
* Out-of-band (OOB) load reporting service for the additional load reporting
* agent that does not sit in the request path. Reports are periodically sampled
* with sufficient frequency to provide temporal association with requests.
* OOB reporting compensates the limitation of in-band reporting in revealing
* costs for backends that do not provide a steady stream of telemetry such as
* long running stream operations and zero QPS services. This is a server
* streaming service, client needs to terminate current RPC and initiate
* a new call to change backend reporting frequency.
*
*/
public static final class OpenRcaServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private OpenRcaServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected OpenRcaServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new OpenRcaServiceFutureStub(channel, callOptions);
}
}
private static final int METHODID_STREAM_CORE_METRICS = 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 OpenRcaServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(OpenRcaServiceImplBase 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_STREAM_CORE_METRICS:
serviceImpl.streamCoreMetrics((com.github.xds.service.orca.v3.OrcaLoadReportRequest) 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 OpenRcaServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
OpenRcaServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.github.xds.service.orca.v3.OrcaProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("OpenRcaService");
}
}
private static final class OpenRcaServiceFileDescriptorSupplier
extends OpenRcaServiceBaseDescriptorSupplier {
OpenRcaServiceFileDescriptorSupplier() {}
}
private static final class OpenRcaServiceMethodDescriptorSupplier
extends OpenRcaServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
OpenRcaServiceMethodDescriptorSupplier(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 (OpenRcaServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new OpenRcaServiceFileDescriptorSupplier())
.addMethod(getStreamCoreMetricsMethod())
.build();
}
}
}
return result;
}
}