Files
tasks/api/matchingservice/v1/service.pb.go

658 lines
34 KiB
Go

// The MIT License
//
// Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
//
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: temporal/server/api/matchingservice/v1/service.proto
package matchingservice
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/gogo/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("temporal/server/api/matchingservice/v1/service.proto", fileDescriptor_1a5c83076e651916)
}
var fileDescriptor_1a5c83076e651916 = []byte{
// 558 bytes of a gzip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 0x84, 0x93, 0xb6, 0x09, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MatchingServiceClient is the client API for MatchingService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MatchingServiceClient interface {
// PollWorkflowTaskQueue is called by frontend to process WorkflowTask from a specific task queue. A
// WorkflowTask is dispatched to callers for active workflow executions, with pending workflow tasks.
PollWorkflowTaskQueue(ctx context.Context, in *PollWorkflowTaskQueueRequest, opts ...grpc.CallOption) (*PollWorkflowTaskQueueResponse, error)
// PollActivityTaskQueue is called by frontend to process ActivityTask from a specific task queue. ActivityTask
// is dispatched to callers whenever a ScheduleTask command is made for a workflow execution.
PollActivityTaskQueue(ctx context.Context, in *PollActivityTaskQueueRequest, opts ...grpc.CallOption) (*PollActivityTaskQueueResponse, error)
// AddWorkflowTask is called by the history service when a workflow task is scheduled, so that it can be dispatched
// by the MatchingEngine.
AddWorkflowTask(ctx context.Context, in *AddWorkflowTaskRequest, opts ...grpc.CallOption) (*AddWorkflowTaskResponse, error)
// AddActivityTask is called by the history service when a workflow task is scheduled, so that it can be dispatched
// by the MatchingEngine.
AddActivityTask(ctx context.Context, in *AddActivityTaskRequest, opts ...grpc.CallOption) (*AddActivityTaskResponse, error)
// QueryWorkflow is called by frontend to query a workflow.
QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error)
// RespondQueryTaskCompleted is called by frontend to respond query completed.
RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error)
// CancelOutstandingPoll is called by frontend to unblock long polls on matching for zombie pollers.
// Our rpc stack does not support context propagation, so when a client connection goes away frontend sees
// cancellation of context for that handler, but any corresponding calls (long-poll) to matching service does not
// see the cancellation propagated so it can unblock corresponding long-polls on its end. This results is tasks
// being dispatched to zombie pollers in this situation. This API is added so every time frontend makes a long-poll
// api call to matching it passes in a pollerId and then calls this API when it detects client connection is closed
// to unblock long polls for this poller and prevent tasks being sent to these zombie pollers.
CancelOutstandingPoll(ctx context.Context, in *CancelOutstandingPollRequest, opts ...grpc.CallOption) (*CancelOutstandingPollResponse, error)
// DescribeTaskQueue returns information about the target task queue, right now this API returns the
// pollers which polled this task queue in last few minutes.
DescribeTaskQueue(ctx context.Context, in *DescribeTaskQueueRequest, opts ...grpc.CallOption) (*DescribeTaskQueueResponse, error)
// ListTaskQueuePartitions returns a map of partitionKey and hostAddress for a task queue.
ListTaskQueuePartitions(ctx context.Context, in *ListTaskQueuePartitionsRequest, opts ...grpc.CallOption) (*ListTaskQueuePartitionsResponse, error)
// (-- api-linter: core::0134::response-message-name=disabled
// aip.dev/not-precedent: UpdateWorkerBuildIdOrdering RPC doesn't follow Google API format. --)
// (-- api-linter: core::0134::method-signature=disabled
// aip.dev/not-precedent: UpdateWorkerBuildIdOrdering RPC doesn't follow Google API format. --)
UpdateWorkerBuildIdOrdering(ctx context.Context, in *UpdateWorkerBuildIdOrderingRequest, opts ...grpc.CallOption) (*UpdateWorkerBuildIdOrderingResponse, error)
GetWorkerBuildIdOrdering(ctx context.Context, in *GetWorkerBuildIdOrderingRequest, opts ...grpc.CallOption) (*GetWorkerBuildIdOrderingResponse, error)
// Tell a task queue that some metadata has changed.
InvalidateTaskQueueMetadata(ctx context.Context, in *InvalidateTaskQueueMetadataRequest, opts ...grpc.CallOption) (*InvalidateTaskQueueMetadataResponse, error)
// Fetch some metadata about a task queue.
GetTaskQueueMetadata(ctx context.Context, in *GetTaskQueueMetadataRequest, opts ...grpc.CallOption) (*GetTaskQueueMetadataResponse, error)
}
type matchingServiceClient struct {
cc grpc.ClientConnInterface
}
func NewMatchingServiceClient(cc grpc.ClientConnInterface) MatchingServiceClient {
return &matchingServiceClient{cc}
}
func (c *matchingServiceClient) PollWorkflowTaskQueue(ctx context.Context, in *PollWorkflowTaskQueueRequest, opts ...grpc.CallOption) (*PollWorkflowTaskQueueResponse, error) {
out := new(PollWorkflowTaskQueueResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/PollWorkflowTaskQueue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) PollActivityTaskQueue(ctx context.Context, in *PollActivityTaskQueueRequest, opts ...grpc.CallOption) (*PollActivityTaskQueueResponse, error) {
out := new(PollActivityTaskQueueResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/PollActivityTaskQueue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) AddWorkflowTask(ctx context.Context, in *AddWorkflowTaskRequest, opts ...grpc.CallOption) (*AddWorkflowTaskResponse, error) {
out := new(AddWorkflowTaskResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/AddWorkflowTask", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) AddActivityTask(ctx context.Context, in *AddActivityTaskRequest, opts ...grpc.CallOption) (*AddActivityTaskResponse, error) {
out := new(AddActivityTaskResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/AddActivityTask", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) QueryWorkflow(ctx context.Context, in *QueryWorkflowRequest, opts ...grpc.CallOption) (*QueryWorkflowResponse, error) {
out := new(QueryWorkflowResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/QueryWorkflow", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) RespondQueryTaskCompleted(ctx context.Context, in *RespondQueryTaskCompletedRequest, opts ...grpc.CallOption) (*RespondQueryTaskCompletedResponse, error) {
out := new(RespondQueryTaskCompletedResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/RespondQueryTaskCompleted", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) CancelOutstandingPoll(ctx context.Context, in *CancelOutstandingPollRequest, opts ...grpc.CallOption) (*CancelOutstandingPollResponse, error) {
out := new(CancelOutstandingPollResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/CancelOutstandingPoll", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) DescribeTaskQueue(ctx context.Context, in *DescribeTaskQueueRequest, opts ...grpc.CallOption) (*DescribeTaskQueueResponse, error) {
out := new(DescribeTaskQueueResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/DescribeTaskQueue", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) ListTaskQueuePartitions(ctx context.Context, in *ListTaskQueuePartitionsRequest, opts ...grpc.CallOption) (*ListTaskQueuePartitionsResponse, error) {
out := new(ListTaskQueuePartitionsResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/ListTaskQueuePartitions", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) UpdateWorkerBuildIdOrdering(ctx context.Context, in *UpdateWorkerBuildIdOrderingRequest, opts ...grpc.CallOption) (*UpdateWorkerBuildIdOrderingResponse, error) {
out := new(UpdateWorkerBuildIdOrderingResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/UpdateWorkerBuildIdOrdering", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) GetWorkerBuildIdOrdering(ctx context.Context, in *GetWorkerBuildIdOrderingRequest, opts ...grpc.CallOption) (*GetWorkerBuildIdOrderingResponse, error) {
out := new(GetWorkerBuildIdOrderingResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/GetWorkerBuildIdOrdering", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) InvalidateTaskQueueMetadata(ctx context.Context, in *InvalidateTaskQueueMetadataRequest, opts ...grpc.CallOption) (*InvalidateTaskQueueMetadataResponse, error) {
out := new(InvalidateTaskQueueMetadataResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/InvalidateTaskQueueMetadata", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *matchingServiceClient) GetTaskQueueMetadata(ctx context.Context, in *GetTaskQueueMetadataRequest, opts ...grpc.CallOption) (*GetTaskQueueMetadataResponse, error) {
out := new(GetTaskQueueMetadataResponse)
err := c.cc.Invoke(ctx, "/temporal.server.api.matchingservice.v1.MatchingService/GetTaskQueueMetadata", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MatchingServiceServer is the server API for MatchingService service.
type MatchingServiceServer interface {
// PollWorkflowTaskQueue is called by frontend to process WorkflowTask from a specific task queue. A
// WorkflowTask is dispatched to callers for active workflow executions, with pending workflow tasks.
PollWorkflowTaskQueue(context.Context, *PollWorkflowTaskQueueRequest) (*PollWorkflowTaskQueueResponse, error)
// PollActivityTaskQueue is called by frontend to process ActivityTask from a specific task queue. ActivityTask
// is dispatched to callers whenever a ScheduleTask command is made for a workflow execution.
PollActivityTaskQueue(context.Context, *PollActivityTaskQueueRequest) (*PollActivityTaskQueueResponse, error)
// AddWorkflowTask is called by the history service when a workflow task is scheduled, so that it can be dispatched
// by the MatchingEngine.
AddWorkflowTask(context.Context, *AddWorkflowTaskRequest) (*AddWorkflowTaskResponse, error)
// AddActivityTask is called by the history service when a workflow task is scheduled, so that it can be dispatched
// by the MatchingEngine.
AddActivityTask(context.Context, *AddActivityTaskRequest) (*AddActivityTaskResponse, error)
// QueryWorkflow is called by frontend to query a workflow.
QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error)
// RespondQueryTaskCompleted is called by frontend to respond query completed.
RespondQueryTaskCompleted(context.Context, *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error)
// CancelOutstandingPoll is called by frontend to unblock long polls on matching for zombie pollers.
// Our rpc stack does not support context propagation, so when a client connection goes away frontend sees
// cancellation of context for that handler, but any corresponding calls (long-poll) to matching service does not
// see the cancellation propagated so it can unblock corresponding long-polls on its end. This results is tasks
// being dispatched to zombie pollers in this situation. This API is added so every time frontend makes a long-poll
// api call to matching it passes in a pollerId and then calls this API when it detects client connection is closed
// to unblock long polls for this poller and prevent tasks being sent to these zombie pollers.
CancelOutstandingPoll(context.Context, *CancelOutstandingPollRequest) (*CancelOutstandingPollResponse, error)
// DescribeTaskQueue returns information about the target task queue, right now this API returns the
// pollers which polled this task queue in last few minutes.
DescribeTaskQueue(context.Context, *DescribeTaskQueueRequest) (*DescribeTaskQueueResponse, error)
// ListTaskQueuePartitions returns a map of partitionKey and hostAddress for a task queue.
ListTaskQueuePartitions(context.Context, *ListTaskQueuePartitionsRequest) (*ListTaskQueuePartitionsResponse, error)
// (-- api-linter: core::0134::response-message-name=disabled
// aip.dev/not-precedent: UpdateWorkerBuildIdOrdering RPC doesn't follow Google API format. --)
// (-- api-linter: core::0134::method-signature=disabled
// aip.dev/not-precedent: UpdateWorkerBuildIdOrdering RPC doesn't follow Google API format. --)
UpdateWorkerBuildIdOrdering(context.Context, *UpdateWorkerBuildIdOrderingRequest) (*UpdateWorkerBuildIdOrderingResponse, error)
GetWorkerBuildIdOrdering(context.Context, *GetWorkerBuildIdOrderingRequest) (*GetWorkerBuildIdOrderingResponse, error)
// Tell a task queue that some metadata has changed.
InvalidateTaskQueueMetadata(context.Context, *InvalidateTaskQueueMetadataRequest) (*InvalidateTaskQueueMetadataResponse, error)
// Fetch some metadata about a task queue.
GetTaskQueueMetadata(context.Context, *GetTaskQueueMetadataRequest) (*GetTaskQueueMetadataResponse, error)
}
// UnimplementedMatchingServiceServer can be embedded to have forward compatible implementations.
type UnimplementedMatchingServiceServer struct {
}
func (*UnimplementedMatchingServiceServer) PollWorkflowTaskQueue(ctx context.Context, req *PollWorkflowTaskQueueRequest) (*PollWorkflowTaskQueueResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PollWorkflowTaskQueue not implemented")
}
func (*UnimplementedMatchingServiceServer) PollActivityTaskQueue(ctx context.Context, req *PollActivityTaskQueueRequest) (*PollActivityTaskQueueResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PollActivityTaskQueue not implemented")
}
func (*UnimplementedMatchingServiceServer) AddWorkflowTask(ctx context.Context, req *AddWorkflowTaskRequest) (*AddWorkflowTaskResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddWorkflowTask not implemented")
}
func (*UnimplementedMatchingServiceServer) AddActivityTask(ctx context.Context, req *AddActivityTaskRequest) (*AddActivityTaskResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddActivityTask not implemented")
}
func (*UnimplementedMatchingServiceServer) QueryWorkflow(ctx context.Context, req *QueryWorkflowRequest) (*QueryWorkflowResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented")
}
func (*UnimplementedMatchingServiceServer) RespondQueryTaskCompleted(ctx context.Context, req *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RespondQueryTaskCompleted not implemented")
}
func (*UnimplementedMatchingServiceServer) CancelOutstandingPoll(ctx context.Context, req *CancelOutstandingPollRequest) (*CancelOutstandingPollResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CancelOutstandingPoll not implemented")
}
func (*UnimplementedMatchingServiceServer) DescribeTaskQueue(ctx context.Context, req *DescribeTaskQueueRequest) (*DescribeTaskQueueResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DescribeTaskQueue not implemented")
}
func (*UnimplementedMatchingServiceServer) ListTaskQueuePartitions(ctx context.Context, req *ListTaskQueuePartitionsRequest) (*ListTaskQueuePartitionsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTaskQueuePartitions not implemented")
}
func (*UnimplementedMatchingServiceServer) UpdateWorkerBuildIdOrdering(ctx context.Context, req *UpdateWorkerBuildIdOrderingRequest) (*UpdateWorkerBuildIdOrderingResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkerBuildIdOrdering not implemented")
}
func (*UnimplementedMatchingServiceServer) GetWorkerBuildIdOrdering(ctx context.Context, req *GetWorkerBuildIdOrderingRequest) (*GetWorkerBuildIdOrderingResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWorkerBuildIdOrdering not implemented")
}
func (*UnimplementedMatchingServiceServer) InvalidateTaskQueueMetadata(ctx context.Context, req *InvalidateTaskQueueMetadataRequest) (*InvalidateTaskQueueMetadataResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method InvalidateTaskQueueMetadata not implemented")
}
func (*UnimplementedMatchingServiceServer) GetTaskQueueMetadata(ctx context.Context, req *GetTaskQueueMetadataRequest) (*GetTaskQueueMetadataResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTaskQueueMetadata not implemented")
}
func RegisterMatchingServiceServer(s *grpc.Server, srv MatchingServiceServer) {
s.RegisterService(&_MatchingService_serviceDesc, srv)
}
func _MatchingService_PollWorkflowTaskQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PollWorkflowTaskQueueRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).PollWorkflowTaskQueue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/PollWorkflowTaskQueue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).PollWorkflowTaskQueue(ctx, req.(*PollWorkflowTaskQueueRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_PollActivityTaskQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PollActivityTaskQueueRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).PollActivityTaskQueue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/PollActivityTaskQueue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).PollActivityTaskQueue(ctx, req.(*PollActivityTaskQueueRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_AddWorkflowTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddWorkflowTaskRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).AddWorkflowTask(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/AddWorkflowTask",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).AddWorkflowTask(ctx, req.(*AddWorkflowTaskRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_AddActivityTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddActivityTaskRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).AddActivityTask(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/AddActivityTask",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).AddActivityTask(ctx, req.(*AddActivityTaskRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_QueryWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(QueryWorkflowRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).QueryWorkflow(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/QueryWorkflow",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).QueryWorkflow(ctx, req.(*QueryWorkflowRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_RespondQueryTaskCompleted_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RespondQueryTaskCompletedRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).RespondQueryTaskCompleted(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/RespondQueryTaskCompleted",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).RespondQueryTaskCompleted(ctx, req.(*RespondQueryTaskCompletedRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_CancelOutstandingPoll_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CancelOutstandingPollRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).CancelOutstandingPoll(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/CancelOutstandingPoll",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).CancelOutstandingPoll(ctx, req.(*CancelOutstandingPollRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_DescribeTaskQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DescribeTaskQueueRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).DescribeTaskQueue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/DescribeTaskQueue",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).DescribeTaskQueue(ctx, req.(*DescribeTaskQueueRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_ListTaskQueuePartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListTaskQueuePartitionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).ListTaskQueuePartitions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/ListTaskQueuePartitions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).ListTaskQueuePartitions(ctx, req.(*ListTaskQueuePartitionsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_UpdateWorkerBuildIdOrdering_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateWorkerBuildIdOrderingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).UpdateWorkerBuildIdOrdering(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/UpdateWorkerBuildIdOrdering",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).UpdateWorkerBuildIdOrdering(ctx, req.(*UpdateWorkerBuildIdOrderingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_GetWorkerBuildIdOrdering_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWorkerBuildIdOrderingRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).GetWorkerBuildIdOrdering(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/GetWorkerBuildIdOrdering",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).GetWorkerBuildIdOrdering(ctx, req.(*GetWorkerBuildIdOrderingRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_InvalidateTaskQueueMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InvalidateTaskQueueMetadataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).InvalidateTaskQueueMetadata(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/InvalidateTaskQueueMetadata",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).InvalidateTaskQueueMetadata(ctx, req.(*InvalidateTaskQueueMetadataRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MatchingService_GetTaskQueueMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetTaskQueueMetadataRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MatchingServiceServer).GetTaskQueueMetadata(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/temporal.server.api.matchingservice.v1.MatchingService/GetTaskQueueMetadata",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MatchingServiceServer).GetTaskQueueMetadata(ctx, req.(*GetTaskQueueMetadataRequest))
}
return interceptor(ctx, in, info, handler)
}
var _MatchingService_serviceDesc = grpc.ServiceDesc{
ServiceName: "temporal.server.api.matchingservice.v1.MatchingService",
HandlerType: (*MatchingServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PollWorkflowTaskQueue",
Handler: _MatchingService_PollWorkflowTaskQueue_Handler,
},
{
MethodName: "PollActivityTaskQueue",
Handler: _MatchingService_PollActivityTaskQueue_Handler,
},
{
MethodName: "AddWorkflowTask",
Handler: _MatchingService_AddWorkflowTask_Handler,
},
{
MethodName: "AddActivityTask",
Handler: _MatchingService_AddActivityTask_Handler,
},
{
MethodName: "QueryWorkflow",
Handler: _MatchingService_QueryWorkflow_Handler,
},
{
MethodName: "RespondQueryTaskCompleted",
Handler: _MatchingService_RespondQueryTaskCompleted_Handler,
},
{
MethodName: "CancelOutstandingPoll",
Handler: _MatchingService_CancelOutstandingPoll_Handler,
},
{
MethodName: "DescribeTaskQueue",
Handler: _MatchingService_DescribeTaskQueue_Handler,
},
{
MethodName: "ListTaskQueuePartitions",
Handler: _MatchingService_ListTaskQueuePartitions_Handler,
},
{
MethodName: "UpdateWorkerBuildIdOrdering",
Handler: _MatchingService_UpdateWorkerBuildIdOrdering_Handler,
},
{
MethodName: "GetWorkerBuildIdOrdering",
Handler: _MatchingService_GetWorkerBuildIdOrdering_Handler,
},
{
MethodName: "InvalidateTaskQueueMetadata",
Handler: _MatchingService_InvalidateTaskQueueMetadata_Handler,
},
{
MethodName: "GetTaskQueueMetadata",
Handler: _MatchingService_GetTaskQueueMetadata_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "temporal/server/api/matchingservice/v1/service.proto",
}