mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-30 14:56:19 +00:00
I've upgraded the version of our Go API in order to allow invalid UTF-8 data in our proto strings. Please review https://github.com/temporalio/temporal/pull/5476/commits/5cf979058d0897638f0cf80efea5dbfd737c4a97 only The version of gogo/protobuf we used allowed invalid UTF-8 in strings which is a violation of the proto3 spec. We were unaware of this until our new google/protobuf based structs began failing to deserialize data we'd used previously I added a new end-to-end test to verify that we can create, describe, and delete a namespace that contains invalid UTF-8 in multiple attributes This is lower risk than commits prior to this as temporal DBs may already contain invalid UTF-8 data I adjusted our docs to mention this behavior and the `protolegacy` tag Yes: this will be going out as part of our 1.23.0 release. In fact, the release is blocked on it! --------- Co-authored-by: David Reiss <[email protected]>
809 lines
41 KiB
Go
809 lines
41 KiB
Go
// The MIT License
|
|
//
|
|
// Copyright (c) 2019 Temporal 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-go-grpc. DO NOT EDIT.
|
|
// plugins:
|
|
// - protoc-gen-go-grpc
|
|
// - protoc
|
|
// source: temporal/server/api/matchingservice/v1/service.proto
|
|
|
|
package matchingservice
|
|
|
|
import (
|
|
context "context"
|
|
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
const (
|
|
MatchingService_PollWorkflowTaskQueue_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/PollWorkflowTaskQueue"
|
|
MatchingService_PollActivityTaskQueue_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/PollActivityTaskQueue"
|
|
MatchingService_AddWorkflowTask_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/AddWorkflowTask"
|
|
MatchingService_AddActivityTask_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/AddActivityTask"
|
|
MatchingService_QueryWorkflow_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/QueryWorkflow"
|
|
MatchingService_RespondQueryTaskCompleted_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/RespondQueryTaskCompleted"
|
|
MatchingService_CancelOutstandingPoll_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/CancelOutstandingPoll"
|
|
MatchingService_DescribeTaskQueue_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/DescribeTaskQueue"
|
|
MatchingService_ListTaskQueuePartitions_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/ListTaskQueuePartitions"
|
|
MatchingService_UpdateWorkerBuildIdCompatibility_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/UpdateWorkerBuildIdCompatibility"
|
|
MatchingService_GetWorkerBuildIdCompatibility_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/GetWorkerBuildIdCompatibility"
|
|
MatchingService_GetTaskQueueUserData_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/GetTaskQueueUserData"
|
|
MatchingService_ApplyTaskQueueUserDataReplicationEvent_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/ApplyTaskQueueUserDataReplicationEvent"
|
|
MatchingService_GetBuildIdTaskQueueMapping_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/GetBuildIdTaskQueueMapping"
|
|
MatchingService_ForceUnloadTaskQueue_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/ForceUnloadTaskQueue"
|
|
MatchingService_UpdateTaskQueueUserData_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/UpdateTaskQueueUserData"
|
|
MatchingService_ReplicateTaskQueueUserData_FullMethodName = "/temporal.server.api.matchingservice.v1.MatchingService/ReplicateTaskQueueUserData"
|
|
)
|
|
|
|
// MatchingServiceClient is the client API for MatchingService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#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: UpdateWorkerBuildIdCompatibility RPC doesn't follow Google API format. --)
|
|
//
|
|
// (-- api-linter: core::0134::method-signature=disabled
|
|
//
|
|
// aip.dev/not-precedent: UpdateWorkerBuildIdCompatibility RPC doesn't follow Google API format. --)
|
|
UpdateWorkerBuildIdCompatibility(ctx context.Context, in *UpdateWorkerBuildIdCompatibilityRequest, opts ...grpc.CallOption) (*UpdateWorkerBuildIdCompatibilityResponse, error)
|
|
GetWorkerBuildIdCompatibility(ctx context.Context, in *GetWorkerBuildIdCompatibilityRequest, opts ...grpc.CallOption) (*GetWorkerBuildIdCompatibilityResponse, error)
|
|
// Fetch user data for a task queue, this request should always be routed to the node holding the root partition of the workflow task queue.
|
|
GetTaskQueueUserData(ctx context.Context, in *GetTaskQueueUserDataRequest, opts ...grpc.CallOption) (*GetTaskQueueUserDataResponse, error)
|
|
// Apply a user data replication event.
|
|
ApplyTaskQueueUserDataReplicationEvent(ctx context.Context, in *ApplyTaskQueueUserDataReplicationEventRequest, opts ...grpc.CallOption) (*ApplyTaskQueueUserDataReplicationEventResponse, error)
|
|
// Gets all task queue names mapped to a given build ID
|
|
GetBuildIdTaskQueueMapping(ctx context.Context, in *GetBuildIdTaskQueueMappingRequest, opts ...grpc.CallOption) (*GetBuildIdTaskQueueMappingResponse, error)
|
|
// Force unloading a task queue. Used for testing only.
|
|
ForceUnloadTaskQueue(ctx context.Context, in *ForceUnloadTaskQueueRequest, opts ...grpc.CallOption) (*ForceUnloadTaskQueueResponse, error)
|
|
// Update task queue user data in owning node for all updates in namespace.
|
|
// All user data updates must first go through the task queue owner using the `UpdateWorkerBuildIdCompatibility`
|
|
// API.
|
|
// (-- api-linter: core::0134::response-message-name=disabled
|
|
//
|
|
// aip.dev/not-precedent: UpdateTaskQueueUserData RPC doesn't follow Google API format. --)
|
|
//
|
|
// (-- api-linter: core::0134::method-signature=disabled
|
|
//
|
|
// aip.dev/not-precedent: UpdateTaskQueueUserData RPC doesn't follow Google API format. --)
|
|
UpdateTaskQueueUserData(ctx context.Context, in *UpdateTaskQueueUserDataRequest, opts ...grpc.CallOption) (*UpdateTaskQueueUserDataResponse, error)
|
|
// Replicate task queue user data across clusters, must be done via the owning node for updates in namespace.
|
|
ReplicateTaskQueueUserData(ctx context.Context, in *ReplicateTaskQueueUserDataRequest, opts ...grpc.CallOption) (*ReplicateTaskQueueUserDataResponse, 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, MatchingService_PollWorkflowTaskQueue_FullMethodName, 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, MatchingService_PollActivityTaskQueue_FullMethodName, 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, MatchingService_AddWorkflowTask_FullMethodName, 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, MatchingService_AddActivityTask_FullMethodName, 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, MatchingService_QueryWorkflow_FullMethodName, 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, MatchingService_RespondQueryTaskCompleted_FullMethodName, 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, MatchingService_CancelOutstandingPoll_FullMethodName, 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, MatchingService_DescribeTaskQueue_FullMethodName, 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, MatchingService_ListTaskQueuePartitions_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) UpdateWorkerBuildIdCompatibility(ctx context.Context, in *UpdateWorkerBuildIdCompatibilityRequest, opts ...grpc.CallOption) (*UpdateWorkerBuildIdCompatibilityResponse, error) {
|
|
out := new(UpdateWorkerBuildIdCompatibilityResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_UpdateWorkerBuildIdCompatibility_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) GetWorkerBuildIdCompatibility(ctx context.Context, in *GetWorkerBuildIdCompatibilityRequest, opts ...grpc.CallOption) (*GetWorkerBuildIdCompatibilityResponse, error) {
|
|
out := new(GetWorkerBuildIdCompatibilityResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_GetWorkerBuildIdCompatibility_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) GetTaskQueueUserData(ctx context.Context, in *GetTaskQueueUserDataRequest, opts ...grpc.CallOption) (*GetTaskQueueUserDataResponse, error) {
|
|
out := new(GetTaskQueueUserDataResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_GetTaskQueueUserData_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) ApplyTaskQueueUserDataReplicationEvent(ctx context.Context, in *ApplyTaskQueueUserDataReplicationEventRequest, opts ...grpc.CallOption) (*ApplyTaskQueueUserDataReplicationEventResponse, error) {
|
|
out := new(ApplyTaskQueueUserDataReplicationEventResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_ApplyTaskQueueUserDataReplicationEvent_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) GetBuildIdTaskQueueMapping(ctx context.Context, in *GetBuildIdTaskQueueMappingRequest, opts ...grpc.CallOption) (*GetBuildIdTaskQueueMappingResponse, error) {
|
|
out := new(GetBuildIdTaskQueueMappingResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_GetBuildIdTaskQueueMapping_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) ForceUnloadTaskQueue(ctx context.Context, in *ForceUnloadTaskQueueRequest, opts ...grpc.CallOption) (*ForceUnloadTaskQueueResponse, error) {
|
|
out := new(ForceUnloadTaskQueueResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_ForceUnloadTaskQueue_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) UpdateTaskQueueUserData(ctx context.Context, in *UpdateTaskQueueUserDataRequest, opts ...grpc.CallOption) (*UpdateTaskQueueUserDataResponse, error) {
|
|
out := new(UpdateTaskQueueUserDataResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_UpdateTaskQueueUserData_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *matchingServiceClient) ReplicateTaskQueueUserData(ctx context.Context, in *ReplicateTaskQueueUserDataRequest, opts ...grpc.CallOption) (*ReplicateTaskQueueUserDataResponse, error) {
|
|
out := new(ReplicateTaskQueueUserDataResponse)
|
|
err := c.cc.Invoke(ctx, MatchingService_ReplicateTaskQueueUserData_FullMethodName, in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// MatchingServiceServer is the server API for MatchingService service.
|
|
// All implementations must embed UnimplementedMatchingServiceServer
|
|
// for forward compatibility
|
|
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: UpdateWorkerBuildIdCompatibility RPC doesn't follow Google API format. --)
|
|
//
|
|
// (-- api-linter: core::0134::method-signature=disabled
|
|
//
|
|
// aip.dev/not-precedent: UpdateWorkerBuildIdCompatibility RPC doesn't follow Google API format. --)
|
|
UpdateWorkerBuildIdCompatibility(context.Context, *UpdateWorkerBuildIdCompatibilityRequest) (*UpdateWorkerBuildIdCompatibilityResponse, error)
|
|
GetWorkerBuildIdCompatibility(context.Context, *GetWorkerBuildIdCompatibilityRequest) (*GetWorkerBuildIdCompatibilityResponse, error)
|
|
// Fetch user data for a task queue, this request should always be routed to the node holding the root partition of the workflow task queue.
|
|
GetTaskQueueUserData(context.Context, *GetTaskQueueUserDataRequest) (*GetTaskQueueUserDataResponse, error)
|
|
// Apply a user data replication event.
|
|
ApplyTaskQueueUserDataReplicationEvent(context.Context, *ApplyTaskQueueUserDataReplicationEventRequest) (*ApplyTaskQueueUserDataReplicationEventResponse, error)
|
|
// Gets all task queue names mapped to a given build ID
|
|
GetBuildIdTaskQueueMapping(context.Context, *GetBuildIdTaskQueueMappingRequest) (*GetBuildIdTaskQueueMappingResponse, error)
|
|
// Force unloading a task queue. Used for testing only.
|
|
ForceUnloadTaskQueue(context.Context, *ForceUnloadTaskQueueRequest) (*ForceUnloadTaskQueueResponse, error)
|
|
// Update task queue user data in owning node for all updates in namespace.
|
|
// All user data updates must first go through the task queue owner using the `UpdateWorkerBuildIdCompatibility`
|
|
// API.
|
|
// (-- api-linter: core::0134::response-message-name=disabled
|
|
//
|
|
// aip.dev/not-precedent: UpdateTaskQueueUserData RPC doesn't follow Google API format. --)
|
|
//
|
|
// (-- api-linter: core::0134::method-signature=disabled
|
|
//
|
|
// aip.dev/not-precedent: UpdateTaskQueueUserData RPC doesn't follow Google API format. --)
|
|
UpdateTaskQueueUserData(context.Context, *UpdateTaskQueueUserDataRequest) (*UpdateTaskQueueUserDataResponse, error)
|
|
// Replicate task queue user data across clusters, must be done via the owning node for updates in namespace.
|
|
ReplicateTaskQueueUserData(context.Context, *ReplicateTaskQueueUserDataRequest) (*ReplicateTaskQueueUserDataResponse, error)
|
|
mustEmbedUnimplementedMatchingServiceServer()
|
|
}
|
|
|
|
// UnimplementedMatchingServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedMatchingServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedMatchingServiceServer) PollWorkflowTaskQueue(context.Context, *PollWorkflowTaskQueueRequest) (*PollWorkflowTaskQueueResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method PollWorkflowTaskQueue not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) PollActivityTaskQueue(context.Context, *PollActivityTaskQueueRequest) (*PollActivityTaskQueueResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method PollActivityTaskQueue not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) AddWorkflowTask(context.Context, *AddWorkflowTaskRequest) (*AddWorkflowTaskResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddWorkflowTask not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) AddActivityTask(context.Context, *AddActivityTaskRequest) (*AddActivityTaskResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddActivityTask not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) QueryWorkflow(context.Context, *QueryWorkflowRequest) (*QueryWorkflowResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method QueryWorkflow not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) RespondQueryTaskCompleted(context.Context, *RespondQueryTaskCompletedRequest) (*RespondQueryTaskCompletedResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RespondQueryTaskCompleted not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) CancelOutstandingPoll(context.Context, *CancelOutstandingPollRequest) (*CancelOutstandingPollResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CancelOutstandingPoll not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) DescribeTaskQueue(context.Context, *DescribeTaskQueueRequest) (*DescribeTaskQueueResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DescribeTaskQueue not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) ListTaskQueuePartitions(context.Context, *ListTaskQueuePartitionsRequest) (*ListTaskQueuePartitionsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListTaskQueuePartitions not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) UpdateWorkerBuildIdCompatibility(context.Context, *UpdateWorkerBuildIdCompatibilityRequest) (*UpdateWorkerBuildIdCompatibilityResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkerBuildIdCompatibility not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) GetWorkerBuildIdCompatibility(context.Context, *GetWorkerBuildIdCompatibilityRequest) (*GetWorkerBuildIdCompatibilityResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetWorkerBuildIdCompatibility not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) GetTaskQueueUserData(context.Context, *GetTaskQueueUserDataRequest) (*GetTaskQueueUserDataResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetTaskQueueUserData not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) ApplyTaskQueueUserDataReplicationEvent(context.Context, *ApplyTaskQueueUserDataReplicationEventRequest) (*ApplyTaskQueueUserDataReplicationEventResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ApplyTaskQueueUserDataReplicationEvent not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) GetBuildIdTaskQueueMapping(context.Context, *GetBuildIdTaskQueueMappingRequest) (*GetBuildIdTaskQueueMappingResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBuildIdTaskQueueMapping not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) ForceUnloadTaskQueue(context.Context, *ForceUnloadTaskQueueRequest) (*ForceUnloadTaskQueueResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ForceUnloadTaskQueue not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) UpdateTaskQueueUserData(context.Context, *UpdateTaskQueueUserDataRequest) (*UpdateTaskQueueUserDataResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateTaskQueueUserData not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) ReplicateTaskQueueUserData(context.Context, *ReplicateTaskQueueUserDataRequest) (*ReplicateTaskQueueUserDataResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReplicateTaskQueueUserData not implemented")
|
|
}
|
|
func (UnimplementedMatchingServiceServer) mustEmbedUnimplementedMatchingServiceServer() {}
|
|
|
|
// UnsafeMatchingServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to MatchingServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeMatchingServiceServer interface {
|
|
mustEmbedUnimplementedMatchingServiceServer()
|
|
}
|
|
|
|
func RegisterMatchingServiceServer(s grpc.ServiceRegistrar, 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: MatchingService_PollWorkflowTaskQueue_FullMethodName,
|
|
}
|
|
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: MatchingService_PollActivityTaskQueue_FullMethodName,
|
|
}
|
|
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: MatchingService_AddWorkflowTask_FullMethodName,
|
|
}
|
|
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: MatchingService_AddActivityTask_FullMethodName,
|
|
}
|
|
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: MatchingService_QueryWorkflow_FullMethodName,
|
|
}
|
|
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: MatchingService_RespondQueryTaskCompleted_FullMethodName,
|
|
}
|
|
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: MatchingService_CancelOutstandingPoll_FullMethodName,
|
|
}
|
|
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: MatchingService_DescribeTaskQueue_FullMethodName,
|
|
}
|
|
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: MatchingService_ListTaskQueuePartitions_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).ListTaskQueuePartitions(ctx, req.(*ListTaskQueuePartitionsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_UpdateWorkerBuildIdCompatibility_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateWorkerBuildIdCompatibilityRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).UpdateWorkerBuildIdCompatibility(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_UpdateWorkerBuildIdCompatibility_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).UpdateWorkerBuildIdCompatibility(ctx, req.(*UpdateWorkerBuildIdCompatibilityRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_GetWorkerBuildIdCompatibility_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetWorkerBuildIdCompatibilityRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).GetWorkerBuildIdCompatibility(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_GetWorkerBuildIdCompatibility_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).GetWorkerBuildIdCompatibility(ctx, req.(*GetWorkerBuildIdCompatibilityRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_GetTaskQueueUserData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetTaskQueueUserDataRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).GetTaskQueueUserData(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_GetTaskQueueUserData_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).GetTaskQueueUserData(ctx, req.(*GetTaskQueueUserDataRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_ApplyTaskQueueUserDataReplicationEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ApplyTaskQueueUserDataReplicationEventRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).ApplyTaskQueueUserDataReplicationEvent(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_ApplyTaskQueueUserDataReplicationEvent_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).ApplyTaskQueueUserDataReplicationEvent(ctx, req.(*ApplyTaskQueueUserDataReplicationEventRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_GetBuildIdTaskQueueMapping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetBuildIdTaskQueueMappingRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).GetBuildIdTaskQueueMapping(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_GetBuildIdTaskQueueMapping_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).GetBuildIdTaskQueueMapping(ctx, req.(*GetBuildIdTaskQueueMappingRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_ForceUnloadTaskQueue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ForceUnloadTaskQueueRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).ForceUnloadTaskQueue(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_ForceUnloadTaskQueue_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).ForceUnloadTaskQueue(ctx, req.(*ForceUnloadTaskQueueRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_UpdateTaskQueueUserData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateTaskQueueUserDataRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).UpdateTaskQueueUserData(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_UpdateTaskQueueUserData_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).UpdateTaskQueueUserData(ctx, req.(*UpdateTaskQueueUserDataRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _MatchingService_ReplicateTaskQueueUserData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReplicateTaskQueueUserDataRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(MatchingServiceServer).ReplicateTaskQueueUserData(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: MatchingService_ReplicateTaskQueueUserData_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(MatchingServiceServer).ReplicateTaskQueueUserData(ctx, req.(*ReplicateTaskQueueUserDataRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// MatchingService_ServiceDesc is the grpc.ServiceDesc for MatchingService service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
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: "UpdateWorkerBuildIdCompatibility",
|
|
Handler: _MatchingService_UpdateWorkerBuildIdCompatibility_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetWorkerBuildIdCompatibility",
|
|
Handler: _MatchingService_GetWorkerBuildIdCompatibility_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetTaskQueueUserData",
|
|
Handler: _MatchingService_GetTaskQueueUserData_Handler,
|
|
},
|
|
{
|
|
MethodName: "ApplyTaskQueueUserDataReplicationEvent",
|
|
Handler: _MatchingService_ApplyTaskQueueUserDataReplicationEvent_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetBuildIdTaskQueueMapping",
|
|
Handler: _MatchingService_GetBuildIdTaskQueueMapping_Handler,
|
|
},
|
|
{
|
|
MethodName: "ForceUnloadTaskQueue",
|
|
Handler: _MatchingService_ForceUnloadTaskQueue_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateTaskQueueUserData",
|
|
Handler: _MatchingService_UpdateTaskQueueUserData_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReplicateTaskQueueUserData",
|
|
Handler: _MatchingService_ReplicateTaskQueueUserData_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "temporal/server/api/matchingservice/v1/service.proto",
|
|
}
|