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

apache.rocketmq.v2.MessagingServiceGrpc Maven / Gradle / Ivy

There is a newer version: 5.0.7
Show newest version
package apache.rocketmq.v2;

import static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * For all the RPCs in MessagingService, the following error handling policies
 * apply:
 * If the request doesn't bear a valid authentication credential, return a
 * response with common.status.code == `UNAUTHENTICATED`. If the authenticated
 * user is not granted with sufficient permission to execute the requested
 * operation, return a response with common.status.code == `PERMISSION_DENIED`.
 * If the per-user-resource-based quota is exhausted, return a response with
 * common.status.code == `RESOURCE_EXHAUSTED`. If any unexpected server-side
 * errors raise, return a response with common.status.code == `INTERNAL`.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.47.0)", comments = "Source: apache/rocketmq/v2/service.proto") @org.apache.rocketmq.shaded.io.grpc.stub.annotations.GrpcGenerated public final class MessagingServiceGrpc { private MessagingServiceGrpc() {} public static final String SERVICE_NAME = "apache.rocketmq.v2.MessagingService"; // Static method descriptors that strictly reflect the proto. private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getQueryRouteMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "QueryRoute", requestType = apache.rocketmq.v2.QueryRouteRequest.class, responseType = apache.rocketmq.v2.QueryRouteResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getQueryRouteMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getQueryRouteMethod; if ((getQueryRouteMethod = MessagingServiceGrpc.getQueryRouteMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getQueryRouteMethod = MessagingServiceGrpc.getQueryRouteMethod) == null) { MessagingServiceGrpc.getQueryRouteMethod = getQueryRouteMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryRoute")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.QueryRouteRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.QueryRouteResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("QueryRoute")) .build(); } } } return getQueryRouteMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getHeartbeatMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Heartbeat", requestType = apache.rocketmq.v2.HeartbeatRequest.class, responseType = apache.rocketmq.v2.HeartbeatResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getHeartbeatMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getHeartbeatMethod; if ((getHeartbeatMethod = MessagingServiceGrpc.getHeartbeatMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getHeartbeatMethod = MessagingServiceGrpc.getHeartbeatMethod) == null) { MessagingServiceGrpc.getHeartbeatMethod = getHeartbeatMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Heartbeat")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.HeartbeatRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.HeartbeatResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("Heartbeat")) .build(); } } } return getHeartbeatMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getSendMessageMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SendMessage", requestType = apache.rocketmq.v2.SendMessageRequest.class, responseType = apache.rocketmq.v2.SendMessageResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getSendMessageMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getSendMessageMethod; if ((getSendMessageMethod = MessagingServiceGrpc.getSendMessageMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getSendMessageMethod = MessagingServiceGrpc.getSendMessageMethod) == null) { MessagingServiceGrpc.getSendMessageMethod = getSendMessageMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendMessage")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.SendMessageRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.SendMessageResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("SendMessage")) .build(); } } } return getSendMessageMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getQueryAssignmentMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "QueryAssignment", requestType = apache.rocketmq.v2.QueryAssignmentRequest.class, responseType = apache.rocketmq.v2.QueryAssignmentResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getQueryAssignmentMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getQueryAssignmentMethod; if ((getQueryAssignmentMethod = MessagingServiceGrpc.getQueryAssignmentMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getQueryAssignmentMethod = MessagingServiceGrpc.getQueryAssignmentMethod) == null) { MessagingServiceGrpc.getQueryAssignmentMethod = getQueryAssignmentMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAssignment")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.QueryAssignmentRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.QueryAssignmentResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("QueryAssignment")) .build(); } } } return getQueryAssignmentMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getReceiveMessageMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ReceiveMessage", requestType = apache.rocketmq.v2.ReceiveMessageRequest.class, responseType = apache.rocketmq.v2.ReceiveMessageResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getReceiveMessageMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getReceiveMessageMethod; if ((getReceiveMessageMethod = MessagingServiceGrpc.getReceiveMessageMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getReceiveMessageMethod = MessagingServiceGrpc.getReceiveMessageMethod) == null) { MessagingServiceGrpc.getReceiveMessageMethod = getReceiveMessageMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReceiveMessage")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.ReceiveMessageRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.ReceiveMessageResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("ReceiveMessage")) .build(); } } } return getReceiveMessageMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getAckMessageMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "AckMessage", requestType = apache.rocketmq.v2.AckMessageRequest.class, responseType = apache.rocketmq.v2.AckMessageResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getAckMessageMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getAckMessageMethod; if ((getAckMessageMethod = MessagingServiceGrpc.getAckMessageMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getAckMessageMethod = MessagingServiceGrpc.getAckMessageMethod) == null) { MessagingServiceGrpc.getAckMessageMethod = getAckMessageMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AckMessage")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.AckMessageRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.AckMessageResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("AckMessage")) .build(); } } } return getAckMessageMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getForwardMessageToDeadLetterQueueMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ForwardMessageToDeadLetterQueue", requestType = apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.class, responseType = apache.rocketmq.v2.ForwardMessageToDeadLetterQueueResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getForwardMessageToDeadLetterQueueMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getForwardMessageToDeadLetterQueueMethod; if ((getForwardMessageToDeadLetterQueueMethod = MessagingServiceGrpc.getForwardMessageToDeadLetterQueueMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getForwardMessageToDeadLetterQueueMethod = MessagingServiceGrpc.getForwardMessageToDeadLetterQueueMethod) == null) { MessagingServiceGrpc.getForwardMessageToDeadLetterQueueMethod = getForwardMessageToDeadLetterQueueMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ForwardMessageToDeadLetterQueue")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.ForwardMessageToDeadLetterQueueResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("ForwardMessageToDeadLetterQueue")) .build(); } } } return getForwardMessageToDeadLetterQueueMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getEndTransactionMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "EndTransaction", requestType = apache.rocketmq.v2.EndTransactionRequest.class, responseType = apache.rocketmq.v2.EndTransactionResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getEndTransactionMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getEndTransactionMethod; if ((getEndTransactionMethod = MessagingServiceGrpc.getEndTransactionMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getEndTransactionMethod = MessagingServiceGrpc.getEndTransactionMethod) == null) { MessagingServiceGrpc.getEndTransactionMethod = getEndTransactionMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EndTransaction")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.EndTransactionRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.EndTransactionResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("EndTransaction")) .build(); } } } return getEndTransactionMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getTelemetryMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Telemetry", requestType = apache.rocketmq.v2.TelemetryCommand.class, responseType = apache.rocketmq.v2.TelemetryCommand.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getTelemetryMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getTelemetryMethod; if ((getTelemetryMethod = MessagingServiceGrpc.getTelemetryMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getTelemetryMethod = MessagingServiceGrpc.getTelemetryMethod) == null) { MessagingServiceGrpc.getTelemetryMethod = getTelemetryMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Telemetry")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.TelemetryCommand.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.TelemetryCommand.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("Telemetry")) .build(); } } } return getTelemetryMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getNotifyClientTerminationMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "NotifyClientTermination", requestType = apache.rocketmq.v2.NotifyClientTerminationRequest.class, responseType = apache.rocketmq.v2.NotifyClientTerminationResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getNotifyClientTerminationMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getNotifyClientTerminationMethod; if ((getNotifyClientTerminationMethod = MessagingServiceGrpc.getNotifyClientTerminationMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getNotifyClientTerminationMethod = MessagingServiceGrpc.getNotifyClientTerminationMethod) == null) { MessagingServiceGrpc.getNotifyClientTerminationMethod = getNotifyClientTerminationMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "NotifyClientTermination")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.NotifyClientTerminationRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.NotifyClientTerminationResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("NotifyClientTermination")) .build(); } } } return getNotifyClientTerminationMethod; } private static volatile org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getChangeInvisibleDurationMethod; @org.apache.rocketmq.shaded.io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ChangeInvisibleDuration", requestType = apache.rocketmq.v2.ChangeInvisibleDurationRequest.class, responseType = apache.rocketmq.v2.ChangeInvisibleDurationResponse.class, methodType = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) public static org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getChangeInvisibleDurationMethod() { org.apache.rocketmq.shaded.io.grpc.MethodDescriptor getChangeInvisibleDurationMethod; if ((getChangeInvisibleDurationMethod = MessagingServiceGrpc.getChangeInvisibleDurationMethod) == null) { synchronized (MessagingServiceGrpc.class) { if ((getChangeInvisibleDurationMethod = MessagingServiceGrpc.getChangeInvisibleDurationMethod) == null) { MessagingServiceGrpc.getChangeInvisibleDurationMethod = getChangeInvisibleDurationMethod = org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.newBuilder() .setType(org.apache.rocketmq.shaded.io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChangeInvisibleDuration")) .setSampledToLocalTracing(true) .setRequestMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.ChangeInvisibleDurationRequest.getDefaultInstance())) .setResponseMarshaller(org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoUtils.marshaller( apache.rocketmq.v2.ChangeInvisibleDurationResponse.getDefaultInstance())) .setSchemaDescriptor(new MessagingServiceMethodDescriptorSupplier("ChangeInvisibleDuration")) .build(); } } } return getChangeInvisibleDurationMethod; } /** * Creates a new async stub that supports all call types for the service */ public static MessagingServiceStub newStub(org.apache.rocketmq.shaded.io.grpc.Channel channel) { org.apache.rocketmq.shaded.io.grpc.stub.AbstractStub.StubFactory factory = new org.apache.rocketmq.shaded.io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MessagingServiceStub newStub(org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { return new MessagingServiceStub(channel, callOptions); } }; return MessagingServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MessagingServiceBlockingStub newBlockingStub( org.apache.rocketmq.shaded.io.grpc.Channel channel) { org.apache.rocketmq.shaded.io.grpc.stub.AbstractStub.StubFactory factory = new org.apache.rocketmq.shaded.io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MessagingServiceBlockingStub newStub(org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { return new MessagingServiceBlockingStub(channel, callOptions); } }; return MessagingServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MessagingServiceFutureStub newFutureStub( org.apache.rocketmq.shaded.io.grpc.Channel channel) { org.apache.rocketmq.shaded.io.grpc.stub.AbstractStub.StubFactory factory = new org.apache.rocketmq.shaded.io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MessagingServiceFutureStub newStub(org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { return new MessagingServiceFutureStub(channel, callOptions); } }; return MessagingServiceFutureStub.newStub(factory, channel); } /** *
   * For all the RPCs in MessagingService, the following error handling policies
   * apply:
   * If the request doesn't bear a valid authentication credential, return a
   * response with common.status.code == `UNAUTHENTICATED`. If the authenticated
   * user is not granted with sufficient permission to execute the requested
   * operation, return a response with common.status.code == `PERMISSION_DENIED`.
   * If the per-user-resource-based quota is exhausted, return a response with
   * common.status.code == `RESOURCE_EXHAUSTED`. If any unexpected server-side
   * errors raise, return a response with common.status.code == `INTERNAL`.
   * 
*/ public static abstract class MessagingServiceImplBase implements org.apache.rocketmq.shaded.io.grpc.BindableService { /** *
     * Queries the route entries of the requested topic in the perspective of the
     * given endpoints. On success, servers should return a collection of
     * addressable message-queues. Note servers may return customized route
     * entries based on endpoints provided.
     * If the requested topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public void queryRoute(apache.rocketmq.v2.QueryRouteRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryRouteMethod(), responseObserver); } /** *
     * Producer or consumer sends HeartbeatRequest to servers periodically to
     * keep-alive. Additionally, it also reports client-side configuration,
     * including topic subscription, load-balancing group name, etc.
     * Returns `OK` if success.
     * If a client specifies a language that is not yet supported by servers,
     * returns `INVALID_ARGUMENT`
     * 
*/ public void heartbeat(apache.rocketmq.v2.HeartbeatRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHeartbeatMethod(), responseObserver); } /** *
     * Delivers messages to brokers.
     * Clients may further:
     * 1. Refine a message destination to message-queues which fulfills parts of
     * FIFO semantic;
     * 2. Flag a message as transactional, which keeps it invisible to consumers
     * until it commits;
     * 3. Time a message, making it invisible to consumers till specified
     * time-point;
     * 4. And more...
     * Returns message-id or transaction-id with status `OK` on success.
     * If the destination topic doesn't exist, returns `NOT_FOUND`.
     * 
*/ public void sendMessage(apache.rocketmq.v2.SendMessageRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendMessageMethod(), responseObserver); } /** *
     * Queries the assigned route info of a topic for current consumer,
     * the returned assignment result is decided by server-side load balancer.
     * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public void queryAssignment(apache.rocketmq.v2.QueryAssignmentRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryAssignmentMethod(), responseObserver); } /** *
     * Receives messages from the server in batch manner, returns a set of
     * messages if success. The received messages should be acked or redelivered
     * after processed.
     * If the pending concurrent receive requests exceed the quota of the given
     * consumer group, returns `UNAVAILABLE`. If the upstream store server hangs,
     * return `DEADLINE_EXCEEDED` in a timely manner. If the corresponding topic
     * or consumer group doesn't exist, returns `NOT_FOUND`. If there is no new
     * message in the specific topic, returns `OK` with an empty message set.
     * Please note that client may suffer from false empty responses.
     * If failed to receive message from remote, server must return only one
     * `ReceiveMessageResponse` as the reply to the request, whose `Status` indicates
     * the specific reason of failure, otherwise, the reply is considered successful.
     * 
*/ public void receiveMessage(apache.rocketmq.v2.ReceiveMessageRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReceiveMessageMethod(), responseObserver); } /** *
     * Acknowledges the message associated with the `receipt_handle` or `offset`
     * in the `AckMessageRequest`, it means the message has been successfully
     * processed. Returns `OK` if the message server remove the relevant message
     * successfully.
     * If the given receipt_handle is illegal or out of date, returns
     * `INVALID_ARGUMENT`.
     * 
*/ public void ackMessage(apache.rocketmq.v2.AckMessageRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAckMessageMethod(), responseObserver); } /** *
     * Forwards one message to dead letter queue if the max delivery attempts is
     * exceeded by this message at client-side, return `OK` if success.
     * 
*/ public void forwardMessageToDeadLetterQueue(apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getForwardMessageToDeadLetterQueueMethod(), responseObserver); } /** *
     * Commits or rollback one transactional message.
     * 
*/ public void endTransaction(apache.rocketmq.v2.EndTransactionRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEndTransactionMethod(), responseObserver); } /** *
     * Once a client starts, it would immediately establishes bi-lateral stream
     * RPCs with brokers, reporting its settings as the initiative command.
     * When servers have need of inspecting client status, they would issue
     * telemetry commands to clients. After executing received instructions,
     * clients shall report command execution results through client-side streams.
     * 
*/ public org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver telemetry( org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { return org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTelemetryMethod(), responseObserver); } /** *
     * Notify the server that the client is terminated.
     * 
*/ public void notifyClientTermination(apache.rocketmq.v2.NotifyClientTerminationRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getNotifyClientTerminationMethod(), responseObserver); } /** *
     * Once a message is retrieved from consume queue on behalf of the group, it
     * will be kept invisible to other clients of the same group for a period of
     * time. The message is supposed to be processed within the invisible
     * duration. If the client, which is in charge of the invisible message, is
     * not capable of processing the message timely, it may use
     * ChangeInvisibleDuration to lengthen invisible duration.
     * 
*/ public void changeInvisibleDuration(apache.rocketmq.v2.ChangeInvisibleDurationRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getChangeInvisibleDurationMethod(), responseObserver); } @java.lang.Override public final org.apache.rocketmq.shaded.io.grpc.ServerServiceDefinition bindService() { return org.apache.rocketmq.shaded.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getQueryRouteMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.QueryRouteRequest, apache.rocketmq.v2.QueryRouteResponse>( this, METHODID_QUERY_ROUTE))) .addMethod( getHeartbeatMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.HeartbeatRequest, apache.rocketmq.v2.HeartbeatResponse>( this, METHODID_HEARTBEAT))) .addMethod( getSendMessageMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.SendMessageRequest, apache.rocketmq.v2.SendMessageResponse>( this, METHODID_SEND_MESSAGE))) .addMethod( getQueryAssignmentMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.QueryAssignmentRequest, apache.rocketmq.v2.QueryAssignmentResponse>( this, METHODID_QUERY_ASSIGNMENT))) .addMethod( getReceiveMessageMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< apache.rocketmq.v2.ReceiveMessageRequest, apache.rocketmq.v2.ReceiveMessageResponse>( this, METHODID_RECEIVE_MESSAGE))) .addMethod( getAckMessageMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.AckMessageRequest, apache.rocketmq.v2.AckMessageResponse>( this, METHODID_ACK_MESSAGE))) .addMethod( getForwardMessageToDeadLetterQueueMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest, apache.rocketmq.v2.ForwardMessageToDeadLetterQueueResponse>( this, METHODID_FORWARD_MESSAGE_TO_DEAD_LETTER_QUEUE))) .addMethod( getEndTransactionMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.EndTransactionRequest, apache.rocketmq.v2.EndTransactionResponse>( this, METHODID_END_TRANSACTION))) .addMethod( getTelemetryMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< apache.rocketmq.v2.TelemetryCommand, apache.rocketmq.v2.TelemetryCommand>( this, METHODID_TELEMETRY))) .addMethod( getNotifyClientTerminationMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.NotifyClientTerminationRequest, apache.rocketmq.v2.NotifyClientTerminationResponse>( this, METHODID_NOTIFY_CLIENT_TERMINATION))) .addMethod( getChangeInvisibleDurationMethod(), org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< apache.rocketmq.v2.ChangeInvisibleDurationRequest, apache.rocketmq.v2.ChangeInvisibleDurationResponse>( this, METHODID_CHANGE_INVISIBLE_DURATION))) .build(); } } /** *
   * For all the RPCs in MessagingService, the following error handling policies
   * apply:
   * If the request doesn't bear a valid authentication credential, return a
   * response with common.status.code == `UNAUTHENTICATED`. If the authenticated
   * user is not granted with sufficient permission to execute the requested
   * operation, return a response with common.status.code == `PERMISSION_DENIED`.
   * If the per-user-resource-based quota is exhausted, return a response with
   * common.status.code == `RESOURCE_EXHAUSTED`. If any unexpected server-side
   * errors raise, return a response with common.status.code == `INTERNAL`.
   * 
*/ public static final class MessagingServiceStub extends org.apache.rocketmq.shaded.io.grpc.stub.AbstractAsyncStub { private MessagingServiceStub( org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MessagingServiceStub build( org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { return new MessagingServiceStub(channel, callOptions); } /** *
     * Queries the route entries of the requested topic in the perspective of the
     * given endpoints. On success, servers should return a collection of
     * addressable message-queues. Note servers may return customized route
     * entries based on endpoints provided.
     * If the requested topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public void queryRoute(apache.rocketmq.v2.QueryRouteRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryRouteMethod(), getCallOptions()), request, responseObserver); } /** *
     * Producer or consumer sends HeartbeatRequest to servers periodically to
     * keep-alive. Additionally, it also reports client-side configuration,
     * including topic subscription, load-balancing group name, etc.
     * Returns `OK` if success.
     * If a client specifies a language that is not yet supported by servers,
     * returns `INVALID_ARGUMENT`
     * 
*/ public void heartbeat(apache.rocketmq.v2.HeartbeatRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getHeartbeatMethod(), getCallOptions()), request, responseObserver); } /** *
     * Delivers messages to brokers.
     * Clients may further:
     * 1. Refine a message destination to message-queues which fulfills parts of
     * FIFO semantic;
     * 2. Flag a message as transactional, which keeps it invisible to consumers
     * until it commits;
     * 3. Time a message, making it invisible to consumers till specified
     * time-point;
     * 4. And more...
     * Returns message-id or transaction-id with status `OK` on success.
     * If the destination topic doesn't exist, returns `NOT_FOUND`.
     * 
*/ public void sendMessage(apache.rocketmq.v2.SendMessageRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSendMessageMethod(), getCallOptions()), request, responseObserver); } /** *
     * Queries the assigned route info of a topic for current consumer,
     * the returned assignment result is decided by server-side load balancer.
     * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public void queryAssignment(apache.rocketmq.v2.QueryAssignmentRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryAssignmentMethod(), getCallOptions()), request, responseObserver); } /** *
     * Receives messages from the server in batch manner, returns a set of
     * messages if success. The received messages should be acked or redelivered
     * after processed.
     * If the pending concurrent receive requests exceed the quota of the given
     * consumer group, returns `UNAVAILABLE`. If the upstream store server hangs,
     * return `DEADLINE_EXCEEDED` in a timely manner. If the corresponding topic
     * or consumer group doesn't exist, returns `NOT_FOUND`. If there is no new
     * message in the specific topic, returns `OK` with an empty message set.
     * Please note that client may suffer from false empty responses.
     * If failed to receive message from remote, server must return only one
     * `ReceiveMessageResponse` as the reply to the request, whose `Status` indicates
     * the specific reason of failure, otherwise, the reply is considered successful.
     * 
*/ public void receiveMessage(apache.rocketmq.v2.ReceiveMessageRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReceiveMessageMethod(), getCallOptions()), request, responseObserver); } /** *
     * Acknowledges the message associated with the `receipt_handle` or `offset`
     * in the `AckMessageRequest`, it means the message has been successfully
     * processed. Returns `OK` if the message server remove the relevant message
     * successfully.
     * If the given receipt_handle is illegal or out of date, returns
     * `INVALID_ARGUMENT`.
     * 
*/ public void ackMessage(apache.rocketmq.v2.AckMessageRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAckMessageMethod(), getCallOptions()), request, responseObserver); } /** *
     * Forwards one message to dead letter queue if the max delivery attempts is
     * exceeded by this message at client-side, return `OK` if success.
     * 
*/ public void forwardMessageToDeadLetterQueue(apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getForwardMessageToDeadLetterQueueMethod(), getCallOptions()), request, responseObserver); } /** *
     * Commits or rollback one transactional message.
     * 
*/ public void endTransaction(apache.rocketmq.v2.EndTransactionRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getEndTransactionMethod(), getCallOptions()), request, responseObserver); } /** *
     * Once a client starts, it would immediately establishes bi-lateral stream
     * RPCs with brokers, reporting its settings as the initiative command.
     * When servers have need of inspecting client status, they would issue
     * telemetry commands to clients. After executing received instructions,
     * clients shall report command execution results through client-side streams.
     * 
*/ public org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver telemetry( org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getTelemetryMethod(), getCallOptions()), responseObserver); } /** *
     * Notify the server that the client is terminated.
     * 
*/ public void notifyClientTermination(apache.rocketmq.v2.NotifyClientTerminationRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getNotifyClientTerminationMethod(), getCallOptions()), request, responseObserver); } /** *
     * Once a message is retrieved from consume queue on behalf of the group, it
     * will be kept invisible to other clients of the same group for a period of
     * time. The message is supposed to be processed within the invisible
     * duration. If the client, which is in charge of the invisible message, is
     * not capable of processing the message timely, it may use
     * ChangeInvisibleDuration to lengthen invisible duration.
     * 
*/ public void changeInvisibleDuration(apache.rocketmq.v2.ChangeInvisibleDurationRequest request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getChangeInvisibleDurationMethod(), getCallOptions()), request, responseObserver); } } /** *
   * For all the RPCs in MessagingService, the following error handling policies
   * apply:
   * If the request doesn't bear a valid authentication credential, return a
   * response with common.status.code == `UNAUTHENTICATED`. If the authenticated
   * user is not granted with sufficient permission to execute the requested
   * operation, return a response with common.status.code == `PERMISSION_DENIED`.
   * If the per-user-resource-based quota is exhausted, return a response with
   * common.status.code == `RESOURCE_EXHAUSTED`. If any unexpected server-side
   * errors raise, return a response with common.status.code == `INTERNAL`.
   * 
*/ public static final class MessagingServiceBlockingStub extends org.apache.rocketmq.shaded.io.grpc.stub.AbstractBlockingStub { private MessagingServiceBlockingStub( org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MessagingServiceBlockingStub build( org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { return new MessagingServiceBlockingStub(channel, callOptions); } /** *
     * Queries the route entries of the requested topic in the perspective of the
     * given endpoints. On success, servers should return a collection of
     * addressable message-queues. Note servers may return customized route
     * entries based on endpoints provided.
     * If the requested topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public apache.rocketmq.v2.QueryRouteResponse queryRoute(apache.rocketmq.v2.QueryRouteRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryRouteMethod(), getCallOptions(), request); } /** *
     * Producer or consumer sends HeartbeatRequest to servers periodically to
     * keep-alive. Additionally, it also reports client-side configuration,
     * including topic subscription, load-balancing group name, etc.
     * Returns `OK` if success.
     * If a client specifies a language that is not yet supported by servers,
     * returns `INVALID_ARGUMENT`
     * 
*/ public apache.rocketmq.v2.HeartbeatResponse heartbeat(apache.rocketmq.v2.HeartbeatRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getHeartbeatMethod(), getCallOptions(), request); } /** *
     * Delivers messages to brokers.
     * Clients may further:
     * 1. Refine a message destination to message-queues which fulfills parts of
     * FIFO semantic;
     * 2. Flag a message as transactional, which keeps it invisible to consumers
     * until it commits;
     * 3. Time a message, making it invisible to consumers till specified
     * time-point;
     * 4. And more...
     * Returns message-id or transaction-id with status `OK` on success.
     * If the destination topic doesn't exist, returns `NOT_FOUND`.
     * 
*/ public apache.rocketmq.v2.SendMessageResponse sendMessage(apache.rocketmq.v2.SendMessageRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSendMessageMethod(), getCallOptions(), request); } /** *
     * Queries the assigned route info of a topic for current consumer,
     * the returned assignment result is decided by server-side load balancer.
     * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public apache.rocketmq.v2.QueryAssignmentResponse queryAssignment(apache.rocketmq.v2.QueryAssignmentRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryAssignmentMethod(), getCallOptions(), request); } /** *
     * Receives messages from the server in batch manner, returns a set of
     * messages if success. The received messages should be acked or redelivered
     * after processed.
     * If the pending concurrent receive requests exceed the quota of the given
     * consumer group, returns `UNAVAILABLE`. If the upstream store server hangs,
     * return `DEADLINE_EXCEEDED` in a timely manner. If the corresponding topic
     * or consumer group doesn't exist, returns `NOT_FOUND`. If there is no new
     * message in the specific topic, returns `OK` with an empty message set.
     * Please note that client may suffer from false empty responses.
     * If failed to receive message from remote, server must return only one
     * `ReceiveMessageResponse` as the reply to the request, whose `Status` indicates
     * the specific reason of failure, otherwise, the reply is considered successful.
     * 
*/ public java.util.Iterator receiveMessage( apache.rocketmq.v2.ReceiveMessageRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getReceiveMessageMethod(), getCallOptions(), request); } /** *
     * Acknowledges the message associated with the `receipt_handle` or `offset`
     * in the `AckMessageRequest`, it means the message has been successfully
     * processed. Returns `OK` if the message server remove the relevant message
     * successfully.
     * If the given receipt_handle is illegal or out of date, returns
     * `INVALID_ARGUMENT`.
     * 
*/ public apache.rocketmq.v2.AckMessageResponse ackMessage(apache.rocketmq.v2.AckMessageRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getAckMessageMethod(), getCallOptions(), request); } /** *
     * Forwards one message to dead letter queue if the max delivery attempts is
     * exceeded by this message at client-side, return `OK` if success.
     * 
*/ public apache.rocketmq.v2.ForwardMessageToDeadLetterQueueResponse forwardMessageToDeadLetterQueue(apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getForwardMessageToDeadLetterQueueMethod(), getCallOptions(), request); } /** *
     * Commits or rollback one transactional message.
     * 
*/ public apache.rocketmq.v2.EndTransactionResponse endTransaction(apache.rocketmq.v2.EndTransactionRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEndTransactionMethod(), getCallOptions(), request); } /** *
     * Notify the server that the client is terminated.
     * 
*/ public apache.rocketmq.v2.NotifyClientTerminationResponse notifyClientTermination(apache.rocketmq.v2.NotifyClientTerminationRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getNotifyClientTerminationMethod(), getCallOptions(), request); } /** *
     * Once a message is retrieved from consume queue on behalf of the group, it
     * will be kept invisible to other clients of the same group for a period of
     * time. The message is supposed to be processed within the invisible
     * duration. If the client, which is in charge of the invisible message, is
     * not capable of processing the message timely, it may use
     * ChangeInvisibleDuration to lengthen invisible duration.
     * 
*/ public apache.rocketmq.v2.ChangeInvisibleDurationResponse changeInvisibleDuration(apache.rocketmq.v2.ChangeInvisibleDurationRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getChangeInvisibleDurationMethod(), getCallOptions(), request); } } /** *
   * For all the RPCs in MessagingService, the following error handling policies
   * apply:
   * If the request doesn't bear a valid authentication credential, return a
   * response with common.status.code == `UNAUTHENTICATED`. If the authenticated
   * user is not granted with sufficient permission to execute the requested
   * operation, return a response with common.status.code == `PERMISSION_DENIED`.
   * If the per-user-resource-based quota is exhausted, return a response with
   * common.status.code == `RESOURCE_EXHAUSTED`. If any unexpected server-side
   * errors raise, return a response with common.status.code == `INTERNAL`.
   * 
*/ public static final class MessagingServiceFutureStub extends org.apache.rocketmq.shaded.io.grpc.stub.AbstractFutureStub { private MessagingServiceFutureStub( org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MessagingServiceFutureStub build( org.apache.rocketmq.shaded.io.grpc.Channel channel, org.apache.rocketmq.shaded.io.grpc.CallOptions callOptions) { return new MessagingServiceFutureStub(channel, callOptions); } /** *
     * Queries the route entries of the requested topic in the perspective of the
     * given endpoints. On success, servers should return a collection of
     * addressable message-queues. Note servers may return customized route
     * entries based on endpoints provided.
     * If the requested topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture queryRoute( apache.rocketmq.v2.QueryRouteRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryRouteMethod(), getCallOptions()), request); } /** *
     * Producer or consumer sends HeartbeatRequest to servers periodically to
     * keep-alive. Additionally, it also reports client-side configuration,
     * including topic subscription, load-balancing group name, etc.
     * Returns `OK` if success.
     * If a client specifies a language that is not yet supported by servers,
     * returns `INVALID_ARGUMENT`
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture heartbeat( apache.rocketmq.v2.HeartbeatRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getHeartbeatMethod(), getCallOptions()), request); } /** *
     * Delivers messages to brokers.
     * Clients may further:
     * 1. Refine a message destination to message-queues which fulfills parts of
     * FIFO semantic;
     * 2. Flag a message as transactional, which keeps it invisible to consumers
     * until it commits;
     * 3. Time a message, making it invisible to consumers till specified
     * time-point;
     * 4. And more...
     * Returns message-id or transaction-id with status `OK` on success.
     * If the destination topic doesn't exist, returns `NOT_FOUND`.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture sendMessage( apache.rocketmq.v2.SendMessageRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSendMessageMethod(), getCallOptions()), request); } /** *
     * Queries the assigned route info of a topic for current consumer,
     * the returned assignment result is decided by server-side load balancer.
     * If the corresponding topic doesn't exist, returns `NOT_FOUND`.
     * If the specific endpoints is empty, returns `INVALID_ARGUMENT`.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture queryAssignment( apache.rocketmq.v2.QueryAssignmentRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryAssignmentMethod(), getCallOptions()), request); } /** *
     * Acknowledges the message associated with the `receipt_handle` or `offset`
     * in the `AckMessageRequest`, it means the message has been successfully
     * processed. Returns `OK` if the message server remove the relevant message
     * successfully.
     * If the given receipt_handle is illegal or out of date, returns
     * `INVALID_ARGUMENT`.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture ackMessage( apache.rocketmq.v2.AckMessageRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAckMessageMethod(), getCallOptions()), request); } /** *
     * Forwards one message to dead letter queue if the max delivery attempts is
     * exceeded by this message at client-side, return `OK` if success.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture forwardMessageToDeadLetterQueue( apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getForwardMessageToDeadLetterQueueMethod(), getCallOptions()), request); } /** *
     * Commits or rollback one transactional message.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture endTransaction( apache.rocketmq.v2.EndTransactionRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEndTransactionMethod(), getCallOptions()), request); } /** *
     * Notify the server that the client is terminated.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture notifyClientTermination( apache.rocketmq.v2.NotifyClientTerminationRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getNotifyClientTerminationMethod(), getCallOptions()), request); } /** *
     * Once a message is retrieved from consume queue on behalf of the group, it
     * will be kept invisible to other clients of the same group for a period of
     * time. The message is supposed to be processed within the invisible
     * duration. If the client, which is in charge of the invisible message, is
     * not capable of processing the message timely, it may use
     * ChangeInvisibleDuration to lengthen invisible duration.
     * 
*/ public org.apache.rocketmq.shaded.com.google.common.util.concurrent.ListenableFuture changeInvisibleDuration( apache.rocketmq.v2.ChangeInvisibleDurationRequest request) { return org.apache.rocketmq.shaded.io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getChangeInvisibleDurationMethod(), getCallOptions()), request); } } private static final int METHODID_QUERY_ROUTE = 0; private static final int METHODID_HEARTBEAT = 1; private static final int METHODID_SEND_MESSAGE = 2; private static final int METHODID_QUERY_ASSIGNMENT = 3; private static final int METHODID_RECEIVE_MESSAGE = 4; private static final int METHODID_ACK_MESSAGE = 5; private static final int METHODID_FORWARD_MESSAGE_TO_DEAD_LETTER_QUEUE = 6; private static final int METHODID_END_TRANSACTION = 7; private static final int METHODID_NOTIFY_CLIENT_TERMINATION = 8; private static final int METHODID_CHANGE_INVISIBLE_DURATION = 9; private static final int METHODID_TELEMETRY = 10; private static final class MethodHandlers implements org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.UnaryMethod, org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.ServerStreamingMethod, org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.ClientStreamingMethod, org.apache.rocketmq.shaded.io.grpc.stub.ServerCalls.BidiStreamingMethod { private final MessagingServiceImplBase serviceImpl; private final int methodId; MethodHandlers(MessagingServiceImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_QUERY_ROUTE: serviceImpl.queryRoute((apache.rocketmq.v2.QueryRouteRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_HEARTBEAT: serviceImpl.heartbeat((apache.rocketmq.v2.HeartbeatRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEND_MESSAGE: serviceImpl.sendMessage((apache.rocketmq.v2.SendMessageRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_ASSIGNMENT: serviceImpl.queryAssignment((apache.rocketmq.v2.QueryAssignmentRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RECEIVE_MESSAGE: serviceImpl.receiveMessage((apache.rocketmq.v2.ReceiveMessageRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_ACK_MESSAGE: serviceImpl.ackMessage((apache.rocketmq.v2.AckMessageRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FORWARD_MESSAGE_TO_DEAD_LETTER_QUEUE: serviceImpl.forwardMessageToDeadLetterQueue((apache.rocketmq.v2.ForwardMessageToDeadLetterQueueRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_END_TRANSACTION: serviceImpl.endTransaction((apache.rocketmq.v2.EndTransactionRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_NOTIFY_CLIENT_TERMINATION: serviceImpl.notifyClientTermination((apache.rocketmq.v2.NotifyClientTerminationRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CHANGE_INVISIBLE_DURATION: serviceImpl.changeInvisibleDuration((apache.rocketmq.v2.ChangeInvisibleDurationRequest) request, (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver invoke( org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_TELEMETRY: return (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) serviceImpl.telemetry( (org.apache.rocketmq.shaded.io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class MessagingServiceBaseDescriptorSupplier implements org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoFileDescriptorSupplier, org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoServiceDescriptorSupplier { MessagingServiceBaseDescriptorSupplier() {} @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return apache.rocketmq.v2.MQService.getDescriptor(); } @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MessagingService"); } } private static final class MessagingServiceFileDescriptorSupplier extends MessagingServiceBaseDescriptorSupplier { MessagingServiceFileDescriptorSupplier() {} } private static final class MessagingServiceMethodDescriptorSupplier extends MessagingServiceBaseDescriptorSupplier implements org.apache.rocketmq.shaded.io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MessagingServiceMethodDescriptorSupplier(String methodName) { this.methodName = methodName; } @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile org.apache.rocketmq.shaded.io.grpc.ServiceDescriptor serviceDescriptor; public static org.apache.rocketmq.shaded.io.grpc.ServiceDescriptor getServiceDescriptor() { org.apache.rocketmq.shaded.io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (MessagingServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = org.apache.rocketmq.shaded.io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MessagingServiceFileDescriptorSupplier()) .addMethod(getQueryRouteMethod()) .addMethod(getHeartbeatMethod()) .addMethod(getSendMessageMethod()) .addMethod(getQueryAssignmentMethod()) .addMethod(getReceiveMessageMethod()) .addMethod(getAckMessageMethod()) .addMethod(getForwardMessageToDeadLetterQueueMethod()) .addMethod(getEndTransactionMethod()) .addMethod(getTelemetryMethod()) .addMethod(getNotifyClientTerminationMethod()) .addMethod(getChangeInvisibleDurationMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy