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.
* 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`.
*
* 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`.
*
* 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`
*
* 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`.
*
* 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`.
*
* 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.
*
* 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`.
*
* 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.
*
* 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`.
*
* 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`
*
* 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`.
*
* 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`.
*
* 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.
*
* 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`.
*
* 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.
*
* 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.
*
* 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`.
*
* 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`
*
* 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`.
*
* 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`.
*
* 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.
*
* 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`.
*
* 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.
*
* 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`.
*
* 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`
*
* 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`.
*
* 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`.
*
* 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`.
*
* 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;
}
}